Documentation ¶
Index ¶
- Constants
- Variables
- func Convert_componentconfig_DeschedulerConfiguration_To_v1alpha1_DeschedulerConfiguration(in *componentconfig.DeschedulerConfiguration, out *DeschedulerConfiguration, ...) error
- func Convert_v1alpha1_DeschedulerConfiguration_To_componentconfig_DeschedulerConfiguration(in *DeschedulerConfiguration, out *componentconfig.DeschedulerConfiguration, ...) error
- func Kind(kind string) schema.GroupKind
- func RegisterConversions(scheme *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- type DeschedulerConfiguration
- func (x *DeschedulerConfiguration) CodecDecodeSelf(d *codec1978.Decoder)
- func (x *DeschedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder)
- func (in *DeschedulerConfiguration) DeepCopy() *DeschedulerConfiguration
- func (in *DeschedulerConfiguration) DeepCopyInto(out *DeschedulerConfiguration)
- func (in *DeschedulerConfiguration) DeepCopyObject() runtime.Object
Constants ¶
const GroupName = "deschedulercomponentconfig"
GroupName is the group name use in this package
const GroupVersion = "v1alpha1"
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: GroupVersion}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Convert_componentconfig_DeschedulerConfiguration_To_v1alpha1_DeschedulerConfiguration ¶
func Convert_componentconfig_DeschedulerConfiguration_To_v1alpha1_DeschedulerConfiguration(in *componentconfig.DeschedulerConfiguration, out *DeschedulerConfiguration, s conversion.Scope) error
Convert_componentconfig_DeschedulerConfiguration_To_v1alpha1_DeschedulerConfiguration is an autogenerated conversion function.
func Convert_v1alpha1_DeschedulerConfiguration_To_componentconfig_DeschedulerConfiguration ¶
func Convert_v1alpha1_DeschedulerConfiguration_To_componentconfig_DeschedulerConfiguration(in *DeschedulerConfiguration, out *componentconfig.DeschedulerConfiguration, s conversion.Scope) error
Convert_v1alpha1_DeschedulerConfiguration_To_componentconfig_DeschedulerConfiguration is an autogenerated conversion function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type DeschedulerConfiguration ¶
type DeschedulerConfiguration struct { metav1.TypeMeta `json:",inline"` // Time interval for descheduler to run DeschedulingInterval time.Duration `json:"deschedulingInterval,omitempty"` // KubeconfigFile is path to kubeconfig file with authorization and master // location information. KubeconfigFile string `json:"kubeconfigFile"` // PolicyConfigFile is the filepath to the descheduler policy configuration. PolicyConfigFile string `json:"policyConfigFile,omitempty"` // Dry run DryRun bool `json:"dryRun,omitempty"` // Node selectors NodeSelector string `json:"nodeSelector,omitempty"` // MaxNoOfPodsToEvictPerNode restricts maximum of pods to be evicted per node. MaxNoOfPodsToEvictPerNode int `json:"maxNoOfPodsToEvictPerNode,omitempty"` }
func (*DeschedulerConfiguration) CodecDecodeSelf ¶
func (x *DeschedulerConfiguration) CodecDecodeSelf(d *codec1978.Decoder)
func (*DeschedulerConfiguration) CodecEncodeSelf ¶
func (x *DeschedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder)
func (*DeschedulerConfiguration) DeepCopy ¶ added in v0.4.0
func (in *DeschedulerConfiguration) DeepCopy() *DeschedulerConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeschedulerConfiguration.
func (*DeschedulerConfiguration) DeepCopyInto ¶ added in v0.4.0
func (in *DeschedulerConfiguration) DeepCopyInto(out *DeschedulerConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DeschedulerConfiguration) DeepCopyObject ¶ added in v0.4.0
func (in *DeschedulerConfiguration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.