var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: migrations.GroupName, Version: migrations.Version} // Group Version GroupVersion = schema.GroupVersion{Group: migrations.GroupName, Version: migrations.Version} // GroupVersionKind MigrationPolicyKind = schema.GroupVersionKind{Group: migrations.GroupName, Version: migrations.Version, Kind: "MigrationPolicy"} MigrationPolicyListKind = schema.GroupVersionKind{Group: migrations.GroupName, Version: migrations.Version, Kind: "MigrationPolicyList"} )
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
func Kind(kind string) schema.GroupKind
Kind takes an unqualified kind and returns back a Group qualified GroupKind
func RegisterDefaults(scheme *runtime.Scheme) error
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(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
type LabelSelector map[string]string
func (in LabelSelector) DeepCopy() LabelSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelSelector.
func (in LabelSelector) DeepCopyInto(out *LabelSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
MigrationPolicy holds migration policy (i.e. configurations) to apply to a VM or group of VMs
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true +genclient +genclient:nonNamespaced
type MigrationPolicy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MigrationPolicySpec `json:"spec" valid:"required"` // +nullable Status MigrationPolicyStatus `json:"status,omitempty"` }
func (in *MigrationPolicy) DeepCopy() *MigrationPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationPolicy.
func (in *MigrationPolicy) DeepCopyInto(out *MigrationPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *MigrationPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (m *MigrationPolicy) GetMigrationConfByPolicy(clusterMigrationConfigurations *k6tv1.MigrationConfiguration) (changed bool, err error)
GetMigrationConfByPolicy returns a new migration configuration. The new configuration attributes will be overridden by the migration policy if the specified attributes were defined for this policy. Otherwise they wouldn't change. The boolean returned value indicates if any changes were made to the configurations.
func (MigrationPolicy) SwaggerDoc() map[string]string
MigrationPolicyList is a list of MigrationPolicy
+k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type MigrationPolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // +listType=atomic Items []MigrationPolicy `json:"items"` }
func (in *MigrationPolicyList) DeepCopy() *MigrationPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationPolicyList.
func (in *MigrationPolicyList) DeepCopyInto(out *MigrationPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *MigrationPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (MigrationPolicyList) SwaggerDoc() map[string]string
type MigrationPolicySpec struct { Selectors *Selectors `json:"selectors"` //+optional AllowAutoConverge *bool `json:"allowAutoConverge,omitempty"` //+optional BandwidthPerMigration *resource.Quantity `json:"bandwidthPerMigration,omitempty"` //+optional CompletionTimeoutPerGiB *int64 `json:"completionTimeoutPerGiB,omitempty"` //+optional AllowPostCopy *bool `json:"allowPostCopy,omitempty"` }
func (in *MigrationPolicySpec) DeepCopy() *MigrationPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationPolicySpec.
func (in *MigrationPolicySpec) DeepCopyInto(out *MigrationPolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (MigrationPolicySpec) SwaggerDoc() map[string]string
type MigrationPolicyStatus struct { }
func (in *MigrationPolicyStatus) DeepCopy() *MigrationPolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationPolicyStatus.
func (in *MigrationPolicyStatus) DeepCopyInto(out *MigrationPolicyStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (MigrationPolicyStatus) SwaggerDoc() map[string]string
type Selectors struct { //+optional NamespaceSelector LabelSelector `json:"namespaceSelector,omitempty"` //+optional VirtualMachineInstanceSelector LabelSelector `json:"virtualMachineInstanceSelector,omitempty"` }
func (in *Selectors) DeepCopy() *Selectors
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Selectors.
func (in *Selectors) DeepCopyInto(out *Selectors)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Selectors) SwaggerDoc() map[string]string