mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Regenerate everything.
This commit is contained in:
		@@ -111,7 +111,7 @@ kube-apiserver
 | 
				
			|||||||
      --ssh-user="": If non-empty, use secure SSH proxy to the nodes, using this user name
 | 
					      --ssh-user="": If non-empty, use secure SSH proxy to the nodes, using this user name
 | 
				
			||||||
      --storage-backend="": The storage backend for persistence. Options: 'etcd2' (default), 'etcd3'.
 | 
					      --storage-backend="": The storage backend for persistence. Options: 'etcd2' (default), 'etcd3'.
 | 
				
			||||||
      --storage-media-type="application/json": The media type to use to store objects in storage. Defaults to application/json. Some resources may only support a specific media type and will ignore this setting.
 | 
					      --storage-media-type="application/json": The media type to use to store objects in storage. Defaults to application/json. Some resources may only support a specific media type and will ignore this setting.
 | 
				
			||||||
      --storage-versions="apps/v1alpha1,authorization.k8s.io/v1beta1,autoscaling/v1,batch/v1,componentconfig/v1alpha1,extensions/v1beta1,metrics/v1alpha1,v1": The per-group version to store resources in. Specified in the format "group1/version1,group2/version2,...". In the case where objects are moved from one group to the other, you may specify the format "group1=group2/v1beta1,group3/v1beta1,...". You only need to pass the groups you wish to change from the defaults. It defaults to a list of preferred versions of all registered groups, which is derived from the KUBE_API_VERSIONS environment variable.
 | 
					      --storage-versions="apps/v1alpha1,authorization.k8s.io/v1beta1,autoscaling/v1,batch/v1,componentconfig/v1alpha1,extensions/v1beta1,metrics/v1alpha1,policy/v1alpha1,v1": The per-group version to store resources in. Specified in the format "group1/version1,group2/version2,...". In the case where objects are moved from one group to the other, you may specify the format "group1=group2/v1beta1,group3/v1beta1,...". You only need to pass the groups you wish to change from the defaults. It defaults to a list of preferred versions of all registered groups, which is derived from the KUBE_API_VERSIONS environment variable.
 | 
				
			||||||
      --tls-cert-file="": File containing x509 Certificate for HTTPS.  (CA cert, if any, concatenated after server cert). If HTTPS serving is enabled, and --tls-cert-file and --tls-private-key-file are not provided, a self-signed certificate and key are generated for the public address and saved to /var/run/kubernetes.
 | 
					      --tls-cert-file="": File containing x509 Certificate for HTTPS.  (CA cert, if any, concatenated after server cert). If HTTPS serving is enabled, and --tls-cert-file and --tls-private-key-file are not provided, a self-signed certificate and key are generated for the public address and saved to /var/run/kubernetes.
 | 
				
			||||||
      --tls-private-key-file="": File containing x509 private key matching --tls-cert-file.
 | 
					      --tls-private-key-file="": File containing x509 private key matching --tls-cert-file.
 | 
				
			||||||
      --token-auth-file="": If set, the file that will be used to secure the secure port of the API server via token authentication.
 | 
					      --token-auth-file="": If set, the file that will be used to secure the secure port of the API server via token authentication.
 | 
				
			||||||
@@ -119,7 +119,7 @@ kube-apiserver
 | 
				
			|||||||
      --watch-cache-sizes=[]: List of watch cache sizes for every resource (pods, nodes, etc.), comma separated. The individual override format: resource#size, where size is a number. It takes effect when watch-cache is enabled.
 | 
					      --watch-cache-sizes=[]: List of watch cache sizes for every resource (pods, nodes, etc.), comma separated. The individual override format: resource#size, where size is a number. It takes effect when watch-cache is enabled.
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
###### Auto generated by spf13/cobra on 30-Apr-2016
 | 
					###### Auto generated by spf13/cobra on 5-May-2016
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
 | 
					<!-- BEGIN MUNGE: GENERATED_ANALYTICS -->
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										79
									
								
								pkg/apis/policy/deep_copy_generated.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										79
									
								
								pkg/apis/policy/deep_copy_generated.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,79 @@
 | 
				
			|||||||
 | 
					// +build !ignore_autogenerated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 2016 The Kubernetes Authors All rights reserved.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Licensed under the Apache License, Version 2.0 (the "License");
 | 
				
			||||||
 | 
					you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					You may obtain a copy of the License at
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||||
 | 
					WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					limitations under the License.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// This file was autogenerated by deepcopy-gen. Do not edit it manually!
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package policy
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						api "k8s.io/kubernetes/pkg/api"
 | 
				
			||||||
 | 
						unversioned "k8s.io/kubernetes/pkg/api/unversioned"
 | 
				
			||||||
 | 
						conversion "k8s.io/kubernetes/pkg/conversion"
 | 
				
			||||||
 | 
						intstr "k8s.io/kubernetes/pkg/util/intstr"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func init() {
 | 
				
			||||||
 | 
						if err := api.Scheme.AddGeneratedDeepCopyFuncs(
 | 
				
			||||||
 | 
							DeepCopy_policy_PodDisruptionBudget,
 | 
				
			||||||
 | 
							DeepCopy_policy_PodDisruptionBudgetSpec,
 | 
				
			||||||
 | 
							DeepCopy_policy_PodDisruptionBudgetStatus,
 | 
				
			||||||
 | 
						); err != nil {
 | 
				
			||||||
 | 
							// if one of the deep copy functions is malformed, detect it immediately.
 | 
				
			||||||
 | 
							panic(err)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func DeepCopy_policy_PodDisruptionBudget(in PodDisruptionBudget, out *PodDisruptionBudget, c *conversion.Cloner) error {
 | 
				
			||||||
 | 
						if err := unversioned.DeepCopy_unversioned_TypeMeta(in.TypeMeta, &out.TypeMeta, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if err := api.DeepCopy_api_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if err := DeepCopy_policy_PodDisruptionBudgetSpec(in.Spec, &out.Spec, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if err := DeepCopy_policy_PodDisruptionBudgetStatus(in.Status, &out.Status, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func DeepCopy_policy_PodDisruptionBudgetSpec(in PodDisruptionBudgetSpec, out *PodDisruptionBudgetSpec, c *conversion.Cloner) error {
 | 
				
			||||||
 | 
						if err := intstr.DeepCopy_intstr_IntOrString(in.MinAvailable, &out.MinAvailable, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if in.Selector != nil {
 | 
				
			||||||
 | 
							in, out := in.Selector, &out.Selector
 | 
				
			||||||
 | 
							*out = new(unversioned.LabelSelector)
 | 
				
			||||||
 | 
							if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil {
 | 
				
			||||||
 | 
								return err
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							out.Selector = nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func DeepCopy_policy_PodDisruptionBudgetStatus(in PodDisruptionBudgetStatus, out *PodDisruptionBudgetStatus, c *conversion.Cloner) error {
 | 
				
			||||||
 | 
						out.PodDisruptionAllowed = in.PodDisruptionAllowed
 | 
				
			||||||
 | 
						out.CurrentHealthy = in.CurrentHealthy
 | 
				
			||||||
 | 
						out.DesiredHealthy = in.DesiredHealthy
 | 
				
			||||||
 | 
						out.ExpectedPods = in.ExpectedPods
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										169
									
								
								pkg/apis/policy/v1alpha1/conversion_generated.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										169
									
								
								pkg/apis/policy/v1alpha1/conversion_generated.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,169 @@
 | 
				
			|||||||
 | 
					// +build !ignore_autogenerated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 2016 The Kubernetes Authors All rights reserved.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Licensed under the Apache License, Version 2.0 (the "License");
 | 
				
			||||||
 | 
					you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					You may obtain a copy of the License at
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||||
 | 
					WITHOUT 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 conversion-gen. Do not edit it manually!
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1alpha1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						api "k8s.io/kubernetes/pkg/api"
 | 
				
			||||||
 | 
						unversioned "k8s.io/kubernetes/pkg/api/unversioned"
 | 
				
			||||||
 | 
						policy "k8s.io/kubernetes/pkg/apis/policy"
 | 
				
			||||||
 | 
						conversion "k8s.io/kubernetes/pkg/conversion"
 | 
				
			||||||
 | 
						reflect "reflect"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func init() {
 | 
				
			||||||
 | 
						if err := api.Scheme.AddGeneratedConversionFuncs(
 | 
				
			||||||
 | 
							Convert_v1alpha1_PodDisruptionBudget_To_policy_PodDisruptionBudget,
 | 
				
			||||||
 | 
							Convert_policy_PodDisruptionBudget_To_v1alpha1_PodDisruptionBudget,
 | 
				
			||||||
 | 
							Convert_v1alpha1_PodDisruptionBudgetSpec_To_policy_PodDisruptionBudgetSpec,
 | 
				
			||||||
 | 
							Convert_policy_PodDisruptionBudgetSpec_To_v1alpha1_PodDisruptionBudgetSpec,
 | 
				
			||||||
 | 
							Convert_v1alpha1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus,
 | 
				
			||||||
 | 
							Convert_policy_PodDisruptionBudgetStatus_To_v1alpha1_PodDisruptionBudgetStatus,
 | 
				
			||||||
 | 
						); err != nil {
 | 
				
			||||||
 | 
							// if one of the conversion functions is malformed, detect it immediately.
 | 
				
			||||||
 | 
							panic(err)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func autoConvert_v1alpha1_PodDisruptionBudget_To_policy_PodDisruptionBudget(in *PodDisruptionBudget, out *policy.PodDisruptionBudget, s conversion.Scope) error {
 | 
				
			||||||
 | 
						if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
 | 
				
			||||||
 | 
							defaulting.(func(*PodDisruptionBudget))(in)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						// TODO: Inefficient conversion - can we improve it?
 | 
				
			||||||
 | 
						if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if err := Convert_v1alpha1_PodDisruptionBudgetSpec_To_policy_PodDisruptionBudgetSpec(&in.Spec, &out.Spec, s); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if err := Convert_v1alpha1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus(&in.Status, &out.Status, s); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func Convert_v1alpha1_PodDisruptionBudget_To_policy_PodDisruptionBudget(in *PodDisruptionBudget, out *policy.PodDisruptionBudget, s conversion.Scope) error {
 | 
				
			||||||
 | 
						return autoConvert_v1alpha1_PodDisruptionBudget_To_policy_PodDisruptionBudget(in, out, s)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func autoConvert_policy_PodDisruptionBudget_To_v1alpha1_PodDisruptionBudget(in *policy.PodDisruptionBudget, out *PodDisruptionBudget, s conversion.Scope) error {
 | 
				
			||||||
 | 
						if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
 | 
				
			||||||
 | 
							defaulting.(func(*policy.PodDisruptionBudget))(in)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if err := api.Convert_unversioned_TypeMeta_To_unversioned_TypeMeta(&in.TypeMeta, &out.TypeMeta, s); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						// TODO: Inefficient conversion - can we improve it?
 | 
				
			||||||
 | 
						if err := s.Convert(&in.ObjectMeta, &out.ObjectMeta, 0); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if err := Convert_policy_PodDisruptionBudgetSpec_To_v1alpha1_PodDisruptionBudgetSpec(&in.Spec, &out.Spec, s); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if err := Convert_policy_PodDisruptionBudgetStatus_To_v1alpha1_PodDisruptionBudgetStatus(&in.Status, &out.Status, s); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func Convert_policy_PodDisruptionBudget_To_v1alpha1_PodDisruptionBudget(in *policy.PodDisruptionBudget, out *PodDisruptionBudget, s conversion.Scope) error {
 | 
				
			||||||
 | 
						return autoConvert_policy_PodDisruptionBudget_To_v1alpha1_PodDisruptionBudget(in, out, s)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func autoConvert_v1alpha1_PodDisruptionBudgetSpec_To_policy_PodDisruptionBudgetSpec(in *PodDisruptionBudgetSpec, out *policy.PodDisruptionBudgetSpec, s conversion.Scope) error {
 | 
				
			||||||
 | 
						if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
 | 
				
			||||||
 | 
							defaulting.(func(*PodDisruptionBudgetSpec))(in)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if err := api.Convert_intstr_IntOrString_To_intstr_IntOrString(&in.MinAvailable, &out.MinAvailable, s); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if in.Selector != nil {
 | 
				
			||||||
 | 
							in, out := &in.Selector, &out.Selector
 | 
				
			||||||
 | 
							*out = new(unversioned.LabelSelector)
 | 
				
			||||||
 | 
							// TODO: Inefficient conversion - can we improve it?
 | 
				
			||||||
 | 
							if err := s.Convert(*in, *out, 0); err != nil {
 | 
				
			||||||
 | 
								return err
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							out.Selector = nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func Convert_v1alpha1_PodDisruptionBudgetSpec_To_policy_PodDisruptionBudgetSpec(in *PodDisruptionBudgetSpec, out *policy.PodDisruptionBudgetSpec, s conversion.Scope) error {
 | 
				
			||||||
 | 
						return autoConvert_v1alpha1_PodDisruptionBudgetSpec_To_policy_PodDisruptionBudgetSpec(in, out, s)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func autoConvert_policy_PodDisruptionBudgetSpec_To_v1alpha1_PodDisruptionBudgetSpec(in *policy.PodDisruptionBudgetSpec, out *PodDisruptionBudgetSpec, s conversion.Scope) error {
 | 
				
			||||||
 | 
						if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
 | 
				
			||||||
 | 
							defaulting.(func(*policy.PodDisruptionBudgetSpec))(in)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if err := api.Convert_intstr_IntOrString_To_intstr_IntOrString(&in.MinAvailable, &out.MinAvailable, s); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if in.Selector != nil {
 | 
				
			||||||
 | 
							in, out := &in.Selector, &out.Selector
 | 
				
			||||||
 | 
							*out = new(unversioned.LabelSelector)
 | 
				
			||||||
 | 
							// TODO: Inefficient conversion - can we improve it?
 | 
				
			||||||
 | 
							if err := s.Convert(*in, *out, 0); err != nil {
 | 
				
			||||||
 | 
								return err
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							out.Selector = nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func Convert_policy_PodDisruptionBudgetSpec_To_v1alpha1_PodDisruptionBudgetSpec(in *policy.PodDisruptionBudgetSpec, out *PodDisruptionBudgetSpec, s conversion.Scope) error {
 | 
				
			||||||
 | 
						return autoConvert_policy_PodDisruptionBudgetSpec_To_v1alpha1_PodDisruptionBudgetSpec(in, out, s)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func autoConvert_v1alpha1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus(in *PodDisruptionBudgetStatus, out *policy.PodDisruptionBudgetStatus, s conversion.Scope) error {
 | 
				
			||||||
 | 
						if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
 | 
				
			||||||
 | 
							defaulting.(func(*PodDisruptionBudgetStatus))(in)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						out.PodDisruptionAllowed = in.PodDisruptionAllowed
 | 
				
			||||||
 | 
						out.CurrentHealthy = in.CurrentHealthy
 | 
				
			||||||
 | 
						out.DesiredHealthy = in.DesiredHealthy
 | 
				
			||||||
 | 
						out.ExpectedPods = in.ExpectedPods
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func Convert_v1alpha1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus(in *PodDisruptionBudgetStatus, out *policy.PodDisruptionBudgetStatus, s conversion.Scope) error {
 | 
				
			||||||
 | 
						return autoConvert_v1alpha1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus(in, out, s)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func autoConvert_policy_PodDisruptionBudgetStatus_To_v1alpha1_PodDisruptionBudgetStatus(in *policy.PodDisruptionBudgetStatus, out *PodDisruptionBudgetStatus, s conversion.Scope) error {
 | 
				
			||||||
 | 
						if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
 | 
				
			||||||
 | 
							defaulting.(func(*policy.PodDisruptionBudgetStatus))(in)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						out.PodDisruptionAllowed = in.PodDisruptionAllowed
 | 
				
			||||||
 | 
						out.CurrentHealthy = in.CurrentHealthy
 | 
				
			||||||
 | 
						out.DesiredHealthy = in.DesiredHealthy
 | 
				
			||||||
 | 
						out.ExpectedPods = in.ExpectedPods
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func Convert_policy_PodDisruptionBudgetStatus_To_v1alpha1_PodDisruptionBudgetStatus(in *policy.PodDisruptionBudgetStatus, out *PodDisruptionBudgetStatus, s conversion.Scope) error {
 | 
				
			||||||
 | 
						return autoConvert_policy_PodDisruptionBudgetStatus_To_v1alpha1_PodDisruptionBudgetStatus(in, out, s)
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										80
									
								
								pkg/apis/policy/v1alpha1/deep_copy_generated.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										80
									
								
								pkg/apis/policy/v1alpha1/deep_copy_generated.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,80 @@
 | 
				
			|||||||
 | 
					// +build !ignore_autogenerated
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 2016 The Kubernetes Authors All rights reserved.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Licensed under the Apache License, Version 2.0 (the "License");
 | 
				
			||||||
 | 
					you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					You may obtain a copy of the License at
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||||
 | 
					WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 | 
				
			||||||
 | 
					See the License for the specific language governing permissions and
 | 
				
			||||||
 | 
					limitations under the License.
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// This file was autogenerated by deepcopy-gen. Do not edit it manually!
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					package v1alpha1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import (
 | 
				
			||||||
 | 
						api "k8s.io/kubernetes/pkg/api"
 | 
				
			||||||
 | 
						unversioned "k8s.io/kubernetes/pkg/api/unversioned"
 | 
				
			||||||
 | 
						v1 "k8s.io/kubernetes/pkg/api/v1"
 | 
				
			||||||
 | 
						conversion "k8s.io/kubernetes/pkg/conversion"
 | 
				
			||||||
 | 
						intstr "k8s.io/kubernetes/pkg/util/intstr"
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func init() {
 | 
				
			||||||
 | 
						if err := api.Scheme.AddGeneratedDeepCopyFuncs(
 | 
				
			||||||
 | 
							DeepCopy_v1alpha1_PodDisruptionBudget,
 | 
				
			||||||
 | 
							DeepCopy_v1alpha1_PodDisruptionBudgetSpec,
 | 
				
			||||||
 | 
							DeepCopy_v1alpha1_PodDisruptionBudgetStatus,
 | 
				
			||||||
 | 
						); err != nil {
 | 
				
			||||||
 | 
							// if one of the deep copy functions is malformed, detect it immediately.
 | 
				
			||||||
 | 
							panic(err)
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func DeepCopy_v1alpha1_PodDisruptionBudget(in PodDisruptionBudget, out *PodDisruptionBudget, c *conversion.Cloner) error {
 | 
				
			||||||
 | 
						if err := unversioned.DeepCopy_unversioned_TypeMeta(in.TypeMeta, &out.TypeMeta, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if err := v1.DeepCopy_v1_ObjectMeta(in.ObjectMeta, &out.ObjectMeta, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if err := DeepCopy_v1alpha1_PodDisruptionBudgetSpec(in.Spec, &out.Spec, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if err := DeepCopy_v1alpha1_PodDisruptionBudgetStatus(in.Status, &out.Status, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func DeepCopy_v1alpha1_PodDisruptionBudgetSpec(in PodDisruptionBudgetSpec, out *PodDisruptionBudgetSpec, c *conversion.Cloner) error {
 | 
				
			||||||
 | 
						if err := intstr.DeepCopy_intstr_IntOrString(in.MinAvailable, &out.MinAvailable, c); err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if in.Selector != nil {
 | 
				
			||||||
 | 
							in, out := in.Selector, &out.Selector
 | 
				
			||||||
 | 
							*out = new(unversioned.LabelSelector)
 | 
				
			||||||
 | 
							if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil {
 | 
				
			||||||
 | 
								return err
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							out.Selector = nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func DeepCopy_v1alpha1_PodDisruptionBudgetStatus(in PodDisruptionBudgetStatus, out *PodDisruptionBudgetStatus, c *conversion.Cloner) error {
 | 
				
			||||||
 | 
						out.PodDisruptionAllowed = in.PodDisruptionAllowed
 | 
				
			||||||
 | 
						out.CurrentHealthy = in.CurrentHealthy
 | 
				
			||||||
 | 
						out.DesiredHealthy = in.DesiredHealthy
 | 
				
			||||||
 | 
						out.ExpectedPods = in.ExpectedPods
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										734
									
								
								pkg/apis/policy/v1alpha1/generated.pb.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										734
									
								
								pkg/apis/policy/v1alpha1/generated.pb.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,734 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 2016 The Kubernetes Authors All rights reserved.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Licensed under the Apache License, Version 2.0 (the "License");
 | 
				
			||||||
 | 
					you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					You may obtain a copy of the License at
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||||
 | 
					WITHOUT 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.
 | 
				
			||||||
 | 
					// source: k8s.io/kubernetes/pkg/apis/policy/v1alpha1/generated.proto
 | 
				
			||||||
 | 
					// DO NOT EDIT!
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
						Package v1alpha1 is a generated protocol buffer package.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						It is generated from these files:
 | 
				
			||||||
 | 
							k8s.io/kubernetes/pkg/apis/policy/v1alpha1/generated.proto
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						It has these top-level messages:
 | 
				
			||||||
 | 
							PodDisruptionBudget
 | 
				
			||||||
 | 
							PodDisruptionBudgetSpec
 | 
				
			||||||
 | 
							PodDisruptionBudgetStatus
 | 
				
			||||||
 | 
					*/
 | 
				
			||||||
 | 
					package v1alpha1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import proto "github.com/gogo/protobuf/proto"
 | 
				
			||||||
 | 
					import fmt "fmt"
 | 
				
			||||||
 | 
					import math "math"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import k8s_io_kubernetes_pkg_api_unversioned "k8s.io/kubernetes/pkg/api/unversioned"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import io "io"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Reference imports to suppress errors if they are not otherwise used.
 | 
				
			||||||
 | 
					var _ = proto.Marshal
 | 
				
			||||||
 | 
					var _ = fmt.Errorf
 | 
				
			||||||
 | 
					var _ = math.Inf
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *PodDisruptionBudget) Reset()         { *m = PodDisruptionBudget{} }
 | 
				
			||||||
 | 
					func (m *PodDisruptionBudget) String() string { return proto.CompactTextString(m) }
 | 
				
			||||||
 | 
					func (*PodDisruptionBudget) ProtoMessage()    {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *PodDisruptionBudgetSpec) Reset()         { *m = PodDisruptionBudgetSpec{} }
 | 
				
			||||||
 | 
					func (m *PodDisruptionBudgetSpec) String() string { return proto.CompactTextString(m) }
 | 
				
			||||||
 | 
					func (*PodDisruptionBudgetSpec) ProtoMessage()    {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *PodDisruptionBudgetStatus) Reset()         { *m = PodDisruptionBudgetStatus{} }
 | 
				
			||||||
 | 
					func (m *PodDisruptionBudgetStatus) String() string { return proto.CompactTextString(m) }
 | 
				
			||||||
 | 
					func (*PodDisruptionBudgetStatus) ProtoMessage()    {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func init() {
 | 
				
			||||||
 | 
						proto.RegisterType((*PodDisruptionBudget)(nil), "k8s.io.kubernetes.pkg.apis.policy.v1alpha1.PodDisruptionBudget")
 | 
				
			||||||
 | 
						proto.RegisterType((*PodDisruptionBudgetSpec)(nil), "k8s.io.kubernetes.pkg.apis.policy.v1alpha1.PodDisruptionBudgetSpec")
 | 
				
			||||||
 | 
						proto.RegisterType((*PodDisruptionBudgetStatus)(nil), "k8s.io.kubernetes.pkg.apis.policy.v1alpha1.PodDisruptionBudgetStatus")
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					func (m *PodDisruptionBudget) Marshal() (data []byte, err error) {
 | 
				
			||||||
 | 
						size := m.Size()
 | 
				
			||||||
 | 
						data = make([]byte, size)
 | 
				
			||||||
 | 
						n, err := m.MarshalTo(data)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return data[:n], nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *PodDisruptionBudget) MarshalTo(data []byte) (int, error) {
 | 
				
			||||||
 | 
						var i int
 | 
				
			||||||
 | 
						_ = i
 | 
				
			||||||
 | 
						var l int
 | 
				
			||||||
 | 
						_ = l
 | 
				
			||||||
 | 
						data[i] = 0xa
 | 
				
			||||||
 | 
						i++
 | 
				
			||||||
 | 
						i = encodeVarintGenerated(data, i, uint64(m.ObjectMeta.Size()))
 | 
				
			||||||
 | 
						n1, err := m.ObjectMeta.MarshalTo(data[i:])
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return 0, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						i += n1
 | 
				
			||||||
 | 
						data[i] = 0x12
 | 
				
			||||||
 | 
						i++
 | 
				
			||||||
 | 
						i = encodeVarintGenerated(data, i, uint64(m.Spec.Size()))
 | 
				
			||||||
 | 
						n2, err := m.Spec.MarshalTo(data[i:])
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return 0, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						i += n2
 | 
				
			||||||
 | 
						data[i] = 0x1a
 | 
				
			||||||
 | 
						i++
 | 
				
			||||||
 | 
						i = encodeVarintGenerated(data, i, uint64(m.Status.Size()))
 | 
				
			||||||
 | 
						n3, err := m.Status.MarshalTo(data[i:])
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return 0, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						i += n3
 | 
				
			||||||
 | 
						return i, nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *PodDisruptionBudgetSpec) Marshal() (data []byte, err error) {
 | 
				
			||||||
 | 
						size := m.Size()
 | 
				
			||||||
 | 
						data = make([]byte, size)
 | 
				
			||||||
 | 
						n, err := m.MarshalTo(data)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return data[:n], nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *PodDisruptionBudgetSpec) MarshalTo(data []byte) (int, error) {
 | 
				
			||||||
 | 
						var i int
 | 
				
			||||||
 | 
						_ = i
 | 
				
			||||||
 | 
						var l int
 | 
				
			||||||
 | 
						_ = l
 | 
				
			||||||
 | 
						data[i] = 0xa
 | 
				
			||||||
 | 
						i++
 | 
				
			||||||
 | 
						i = encodeVarintGenerated(data, i, uint64(m.MinAvailable.Size()))
 | 
				
			||||||
 | 
						n4, err := m.MinAvailable.MarshalTo(data[i:])
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return 0, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						i += n4
 | 
				
			||||||
 | 
						if m.Selector != nil {
 | 
				
			||||||
 | 
							data[i] = 0x12
 | 
				
			||||||
 | 
							i++
 | 
				
			||||||
 | 
							i = encodeVarintGenerated(data, i, uint64(m.Selector.Size()))
 | 
				
			||||||
 | 
							n5, err := m.Selector.MarshalTo(data[i:])
 | 
				
			||||||
 | 
							if err != nil {
 | 
				
			||||||
 | 
								return 0, err
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							i += n5
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return i, nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *PodDisruptionBudgetStatus) Marshal() (data []byte, err error) {
 | 
				
			||||||
 | 
						size := m.Size()
 | 
				
			||||||
 | 
						data = make([]byte, size)
 | 
				
			||||||
 | 
						n, err := m.MarshalTo(data)
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return nil, err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return data[:n], nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func (m *PodDisruptionBudgetStatus) MarshalTo(data []byte) (int, error) {
 | 
				
			||||||
 | 
						var i int
 | 
				
			||||||
 | 
						_ = i
 | 
				
			||||||
 | 
						var l int
 | 
				
			||||||
 | 
						_ = l
 | 
				
			||||||
 | 
						data[i] = 0x8
 | 
				
			||||||
 | 
						i++
 | 
				
			||||||
 | 
						if m.PodDisruptionAllowed {
 | 
				
			||||||
 | 
							data[i] = 1
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
 | 
							data[i] = 0
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						i++
 | 
				
			||||||
 | 
						data[i] = 0x10
 | 
				
			||||||
 | 
						i++
 | 
				
			||||||
 | 
						i = encodeVarintGenerated(data, i, uint64(m.CurrentHealthy))
 | 
				
			||||||
 | 
						data[i] = 0x18
 | 
				
			||||||
 | 
						i++
 | 
				
			||||||
 | 
						i = encodeVarintGenerated(data, i, uint64(m.DesiredHealthy))
 | 
				
			||||||
 | 
						data[i] = 0x20
 | 
				
			||||||
 | 
						i++
 | 
				
			||||||
 | 
						i = encodeVarintGenerated(data, i, uint64(m.ExpectedPods))
 | 
				
			||||||
 | 
						return i, nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func encodeFixed64Generated(data []byte, offset int, v uint64) int {
 | 
				
			||||||
 | 
						data[offset] = uint8(v)
 | 
				
			||||||
 | 
						data[offset+1] = uint8(v >> 8)
 | 
				
			||||||
 | 
						data[offset+2] = uint8(v >> 16)
 | 
				
			||||||
 | 
						data[offset+3] = uint8(v >> 24)
 | 
				
			||||||
 | 
						data[offset+4] = uint8(v >> 32)
 | 
				
			||||||
 | 
						data[offset+5] = uint8(v >> 40)
 | 
				
			||||||
 | 
						data[offset+6] = uint8(v >> 48)
 | 
				
			||||||
 | 
						data[offset+7] = uint8(v >> 56)
 | 
				
			||||||
 | 
						return offset + 8
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					func encodeFixed32Generated(data []byte, offset int, v uint32) int {
 | 
				
			||||||
 | 
						data[offset] = uint8(v)
 | 
				
			||||||
 | 
						data[offset+1] = uint8(v >> 8)
 | 
				
			||||||
 | 
						data[offset+2] = uint8(v >> 16)
 | 
				
			||||||
 | 
						data[offset+3] = uint8(v >> 24)
 | 
				
			||||||
 | 
						return offset + 4
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					func encodeVarintGenerated(data []byte, offset int, v uint64) int {
 | 
				
			||||||
 | 
						for v >= 1<<7 {
 | 
				
			||||||
 | 
							data[offset] = uint8(v&0x7f | 0x80)
 | 
				
			||||||
 | 
							v >>= 7
 | 
				
			||||||
 | 
							offset++
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						data[offset] = uint8(v)
 | 
				
			||||||
 | 
						return offset + 1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					func (m *PodDisruptionBudget) Size() (n int) {
 | 
				
			||||||
 | 
						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 *PodDisruptionBudgetSpec) Size() (n int) {
 | 
				
			||||||
 | 
						var l int
 | 
				
			||||||
 | 
						_ = l
 | 
				
			||||||
 | 
						l = m.MinAvailable.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 *PodDisruptionBudgetStatus) Size() (n int) {
 | 
				
			||||||
 | 
						var l int
 | 
				
			||||||
 | 
						_ = l
 | 
				
			||||||
 | 
						n += 2
 | 
				
			||||||
 | 
						n += 1 + sovGenerated(uint64(m.CurrentHealthy))
 | 
				
			||||||
 | 
						n += 1 + sovGenerated(uint64(m.DesiredHealthy))
 | 
				
			||||||
 | 
						n += 1 + sovGenerated(uint64(m.ExpectedPods))
 | 
				
			||||||
 | 
						return n
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func sovGenerated(x uint64) (n int) {
 | 
				
			||||||
 | 
						for {
 | 
				
			||||||
 | 
							n++
 | 
				
			||||||
 | 
							x >>= 7
 | 
				
			||||||
 | 
							if x == 0 {
 | 
				
			||||||
 | 
								break
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return n
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					func sozGenerated(x uint64) (n int) {
 | 
				
			||||||
 | 
						return sovGenerated(uint64((x << 1) ^ uint64((int64(x) >> 63))))
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					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 > 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 > 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 > l {
 | 
				
			||||||
 | 
									return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if err := m.Status.Unmarshal(data[iNdEx:postIndex]); err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								iNdEx = postIndex
 | 
				
			||||||
 | 
							default:
 | 
				
			||||||
 | 
								iNdEx = preIndex
 | 
				
			||||||
 | 
								skippy, err := skipGenerated(data[iNdEx:])
 | 
				
			||||||
 | 
								if err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if skippy < 0 {
 | 
				
			||||||
 | 
									return ErrInvalidLengthGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if (iNdEx + skippy) > 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 > l {
 | 
				
			||||||
 | 
									return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								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 > l {
 | 
				
			||||||
 | 
									return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if m.Selector == nil {
 | 
				
			||||||
 | 
									m.Selector = &k8s_io_kubernetes_pkg_api_unversioned.LabelSelector{}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if err := m.Selector.Unmarshal(data[iNdEx:postIndex]); err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								iNdEx = postIndex
 | 
				
			||||||
 | 
							default:
 | 
				
			||||||
 | 
								iNdEx = preIndex
 | 
				
			||||||
 | 
								skippy, err := skipGenerated(data[iNdEx:])
 | 
				
			||||||
 | 
								if err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if skippy < 0 {
 | 
				
			||||||
 | 
									return ErrInvalidLengthGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if (iNdEx + skippy) > 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 PodDisruptionAllowed", wireType)
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								var v int
 | 
				
			||||||
 | 
								for shift := uint(0); ; shift += 7 {
 | 
				
			||||||
 | 
									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.PodDisruptionAllowed = bool(v != 0)
 | 
				
			||||||
 | 
							case 2:
 | 
				
			||||||
 | 
								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 3:
 | 
				
			||||||
 | 
								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 4:
 | 
				
			||||||
 | 
								if wireType != 0 {
 | 
				
			||||||
 | 
									return fmt.Errorf("proto: wrong wireType = %d for field ExpectedPods", wireType)
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								m.ExpectedPods = 0
 | 
				
			||||||
 | 
								for shift := uint(0); ; shift += 7 {
 | 
				
			||||||
 | 
									if shift >= 64 {
 | 
				
			||||||
 | 
										return ErrIntOverflowGenerated
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									if iNdEx >= l {
 | 
				
			||||||
 | 
										return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									b := data[iNdEx]
 | 
				
			||||||
 | 
									iNdEx++
 | 
				
			||||||
 | 
									m.ExpectedPods |= (int32(b) & 0x7F) << shift
 | 
				
			||||||
 | 
									if b < 0x80 {
 | 
				
			||||||
 | 
										break
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							default:
 | 
				
			||||||
 | 
								iNdEx = preIndex
 | 
				
			||||||
 | 
								skippy, err := skipGenerated(data[iNdEx:])
 | 
				
			||||||
 | 
								if err != nil {
 | 
				
			||||||
 | 
									return err
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if skippy < 0 {
 | 
				
			||||||
 | 
									return ErrInvalidLengthGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if (iNdEx + skippy) > l {
 | 
				
			||||||
 | 
									return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								iNdEx += skippy
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if iNdEx > l {
 | 
				
			||||||
 | 
							return io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						return nil
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					func skipGenerated(data []byte) (n int, err error) {
 | 
				
			||||||
 | 
						l := len(data)
 | 
				
			||||||
 | 
						iNdEx := 0
 | 
				
			||||||
 | 
						for iNdEx < l {
 | 
				
			||||||
 | 
							var wire uint64
 | 
				
			||||||
 | 
							for shift := uint(0); ; shift += 7 {
 | 
				
			||||||
 | 
								if shift >= 64 {
 | 
				
			||||||
 | 
									return 0, ErrIntOverflowGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								if iNdEx >= l {
 | 
				
			||||||
 | 
									return 0, io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								b := data[iNdEx]
 | 
				
			||||||
 | 
								iNdEx++
 | 
				
			||||||
 | 
								wire |= (uint64(b) & 0x7F) << shift
 | 
				
			||||||
 | 
								if b < 0x80 {
 | 
				
			||||||
 | 
									break
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							wireType := int(wire & 0x7)
 | 
				
			||||||
 | 
							switch wireType {
 | 
				
			||||||
 | 
							case 0:
 | 
				
			||||||
 | 
								for shift := uint(0); ; shift += 7 {
 | 
				
			||||||
 | 
									if shift >= 64 {
 | 
				
			||||||
 | 
										return 0, ErrIntOverflowGenerated
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									if iNdEx >= l {
 | 
				
			||||||
 | 
										return 0, io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									iNdEx++
 | 
				
			||||||
 | 
									if data[iNdEx-1] < 0x80 {
 | 
				
			||||||
 | 
										break
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								return iNdEx, nil
 | 
				
			||||||
 | 
							case 1:
 | 
				
			||||||
 | 
								iNdEx += 8
 | 
				
			||||||
 | 
								return iNdEx, nil
 | 
				
			||||||
 | 
							case 2:
 | 
				
			||||||
 | 
								var length int
 | 
				
			||||||
 | 
								for shift := uint(0); ; shift += 7 {
 | 
				
			||||||
 | 
									if shift >= 64 {
 | 
				
			||||||
 | 
										return 0, ErrIntOverflowGenerated
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									if iNdEx >= l {
 | 
				
			||||||
 | 
										return 0, io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									b := data[iNdEx]
 | 
				
			||||||
 | 
									iNdEx++
 | 
				
			||||||
 | 
									length |= (int(b) & 0x7F) << shift
 | 
				
			||||||
 | 
									if b < 0x80 {
 | 
				
			||||||
 | 
										break
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								iNdEx += length
 | 
				
			||||||
 | 
								if length < 0 {
 | 
				
			||||||
 | 
									return 0, ErrInvalidLengthGenerated
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								return iNdEx, nil
 | 
				
			||||||
 | 
							case 3:
 | 
				
			||||||
 | 
								for {
 | 
				
			||||||
 | 
									var innerWire uint64
 | 
				
			||||||
 | 
									var start int = iNdEx
 | 
				
			||||||
 | 
									for shift := uint(0); ; shift += 7 {
 | 
				
			||||||
 | 
										if shift >= 64 {
 | 
				
			||||||
 | 
											return 0, ErrIntOverflowGenerated
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
 | 
										if iNdEx >= l {
 | 
				
			||||||
 | 
											return 0, io.ErrUnexpectedEOF
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
 | 
										b := data[iNdEx]
 | 
				
			||||||
 | 
										iNdEx++
 | 
				
			||||||
 | 
										innerWire |= (uint64(b) & 0x7F) << shift
 | 
				
			||||||
 | 
										if b < 0x80 {
 | 
				
			||||||
 | 
											break
 | 
				
			||||||
 | 
										}
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									innerWireType := int(innerWire & 0x7)
 | 
				
			||||||
 | 
									if innerWireType == 4 {
 | 
				
			||||||
 | 
										break
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									next, err := skipGenerated(data[start:])
 | 
				
			||||||
 | 
									if err != nil {
 | 
				
			||||||
 | 
										return 0, err
 | 
				
			||||||
 | 
									}
 | 
				
			||||||
 | 
									iNdEx = start + next
 | 
				
			||||||
 | 
								}
 | 
				
			||||||
 | 
								return iNdEx, nil
 | 
				
			||||||
 | 
							case 4:
 | 
				
			||||||
 | 
								return iNdEx, nil
 | 
				
			||||||
 | 
							case 5:
 | 
				
			||||||
 | 
								iNdEx += 4
 | 
				
			||||||
 | 
								return iNdEx, nil
 | 
				
			||||||
 | 
							default:
 | 
				
			||||||
 | 
								return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						panic("unreachable")
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					var (
 | 
				
			||||||
 | 
						ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
 | 
				
			||||||
 | 
						ErrIntOverflowGenerated   = fmt.Errorf("proto: integer overflow")
 | 
				
			||||||
 | 
					)
 | 
				
			||||||
							
								
								
									
										69
									
								
								pkg/apis/policy/v1alpha1/generated.proto
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										69
									
								
								pkg/apis/policy/v1alpha1/generated.proto
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,69 @@
 | 
				
			|||||||
 | 
					/*
 | 
				
			||||||
 | 
					Copyright 2016 The Kubernetes Authors All rights reserved.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Licensed under the Apache License, Version 2.0 (the "License");
 | 
				
			||||||
 | 
					you may not use this file except in compliance with the License.
 | 
				
			||||||
 | 
					You may obtain a copy of the License at
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    http://www.apache.org/licenses/LICENSE-2.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Unless required by applicable law or agreed to in writing, software
 | 
				
			||||||
 | 
					distributed under the License is distributed on an "AS IS" BASIS,
 | 
				
			||||||
 | 
					WITHOUT 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.kubernetes.pkg.apis.policy.v1alpha1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import "k8s.io/kubernetes/pkg/api/unversioned/generated.proto";
 | 
				
			||||||
 | 
					import "k8s.io/kubernetes/pkg/api/v1/generated.proto";
 | 
				
			||||||
 | 
					import "k8s.io/kubernetes/pkg/runtime/generated.proto";
 | 
				
			||||||
 | 
					import "k8s.io/kubernetes/pkg/util/intstr/generated.proto";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Package-wide variables from generator "generated".
 | 
				
			||||||
 | 
					option go_package = "v1alpha1";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods
 | 
				
			||||||
 | 
					message PodDisruptionBudget {
 | 
				
			||||||
 | 
					  optional k8s.io.kubernetes.pkg.api.v1.ObjectMeta metadata = 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  // Specification of the desired behavior of the PodDisruptionBudget.
 | 
				
			||||||
 | 
					  optional PodDisruptionBudgetSpec spec = 2;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  // Most recently observed status of the PodDisruptionBudget.
 | 
				
			||||||
 | 
					  optional PodDisruptionBudgetStatus status = 3;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.
 | 
				
			||||||
 | 
					message PodDisruptionBudgetSpec {
 | 
				
			||||||
 | 
					  // The minimum number of pods that must be available simultaneously.  This
 | 
				
			||||||
 | 
					  // can be either an integer or a string specifying a percentage, e.g. "28%".
 | 
				
			||||||
 | 
					  optional k8s.io.kubernetes.pkg.util.intstr.IntOrString minAvailable = 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  // Selector is a label query over pods whose evictions are managed by the
 | 
				
			||||||
 | 
					  // disruption budget.
 | 
				
			||||||
 | 
					  optional k8s.io.kubernetes.pkg.api.unversioned.LabelSelector selector = 2;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// PodDisruptionBudgetStatus represents information about the status of a
 | 
				
			||||||
 | 
					// PodDisruptionBudget. Status may trail the actual state of a system.
 | 
				
			||||||
 | 
					message PodDisruptionBudgetStatus {
 | 
				
			||||||
 | 
					  // Whether or not a disruption is currently allowed.
 | 
				
			||||||
 | 
					  optional bool disruptionAllowed = 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  // current number of healthy pods
 | 
				
			||||||
 | 
					  optional int32 currentHealthy = 2;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  // minimum desired number of healthy pods
 | 
				
			||||||
 | 
					  optional int32 desiredHealthy = 3;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  // total number of pods counted by this disruption budget
 | 
				
			||||||
 | 
					  optional int32 expectedPods = 4;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -27,27 +27,27 @@ import (
 | 
				
			|||||||
type PodDisruptionBudgetSpec struct {
 | 
					type PodDisruptionBudgetSpec struct {
 | 
				
			||||||
	// The minimum number of pods that must be available simultaneously.  This
 | 
						// The minimum number of pods that must be available simultaneously.  This
 | 
				
			||||||
	// can be either an integer or a string specifying a percentage, e.g. "28%".
 | 
						// can be either an integer or a string specifying a percentage, e.g. "28%".
 | 
				
			||||||
	MinAvailable intstr.IntOrString `json:"minAvailable,omitempty"`
 | 
						MinAvailable intstr.IntOrString `json:"minAvailable,omitempty" protobuf:"bytes,1,opt,name=minAvailable"`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Selector is a label query over pods whose evictions are managed by the
 | 
						// Selector is a label query over pods whose evictions are managed by the
 | 
				
			||||||
	// disruption budget.
 | 
						// disruption budget.
 | 
				
			||||||
	Selector *unversioned.LabelSelector `json:"selector,omitempty"`
 | 
						Selector *unversioned.LabelSelector `json:"selector,omitempty" protobuf:"bytes,2,opt,name=selector"`
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// PodDisruptionBudgetStatus represents information about the status of a
 | 
					// PodDisruptionBudgetStatus represents information about the status of a
 | 
				
			||||||
// PodDisruptionBudget. Status may trail the actual state of a system.
 | 
					// PodDisruptionBudget. Status may trail the actual state of a system.
 | 
				
			||||||
type PodDisruptionBudgetStatus struct {
 | 
					type PodDisruptionBudgetStatus struct {
 | 
				
			||||||
	// Whether or not a disruption is currently allowed.
 | 
						// Whether or not a disruption is currently allowed.
 | 
				
			||||||
	PodDisruptionAllowed bool `json:"disruptionAllowed"`
 | 
						PodDisruptionAllowed bool `json:"disruptionAllowed" protobuf:"varint,1,opt,name=disruptionAllowed"`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// current number of healthy pods
 | 
						// current number of healthy pods
 | 
				
			||||||
	CurrentHealthy int32 `json:"currentHealthy"`
 | 
						CurrentHealthy int32 `json:"currentHealthy" protobuf:"varint,2,opt,name=currentHealthy"`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// minimum desired number of healthy pods
 | 
						// minimum desired number of healthy pods
 | 
				
			||||||
	DesiredHealthy int32 `json:"desiredHealthy"`
 | 
						DesiredHealthy int32 `json:"desiredHealthy" protobuf:"varint,3,opt,name=desiredHealthy"`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// total number of pods counted by this disruption budget
 | 
						// total number of pods counted by this disruption budget
 | 
				
			||||||
	ExpectedPods int32 `json:"expectedPods"`
 | 
						ExpectedPods int32 `json:"expectedPods" protobuf:"varint,4,opt,name=expectedPods"`
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// +genclient=true,noMethods=true
 | 
					// +genclient=true,noMethods=true
 | 
				
			||||||
@@ -55,10 +55,10 @@ type PodDisruptionBudgetStatus struct {
 | 
				
			|||||||
// PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods
 | 
					// PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods
 | 
				
			||||||
type PodDisruptionBudget struct {
 | 
					type PodDisruptionBudget struct {
 | 
				
			||||||
	unversioned.TypeMeta `json:",inline"`
 | 
						unversioned.TypeMeta `json:",inline"`
 | 
				
			||||||
	v1.ObjectMeta        `json:"metadata,omitempty"`
 | 
						v1.ObjectMeta        `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Specification of the desired behavior of the PodDisruptionBudget.
 | 
						// Specification of the desired behavior of the PodDisruptionBudget.
 | 
				
			||||||
	Spec PodDisruptionBudgetSpec `json:"spec,omitempty"`
 | 
						Spec PodDisruptionBudgetSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
 | 
				
			||||||
	// Most recently observed status of the PodDisruptionBudget.
 | 
						// Most recently observed status of the PodDisruptionBudget.
 | 
				
			||||||
	Status PodDisruptionBudgetStatus `json:"status,omitempty"`
 | 
						Status PodDisruptionBudgetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user