Documentation ¶
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- type LabelSelector
- type MigrationPolicy
- func (in *MigrationPolicy) DeepCopy() *MigrationPolicy
- func (in *MigrationPolicy) DeepCopyInto(out *MigrationPolicy)
- func (in *MigrationPolicy) DeepCopyObject() runtime.Object
- func (m *MigrationPolicy) GetMigrationConfByPolicy(clusterMigrationConfigurations *k6tv1.MigrationConfiguration) (changed bool, err error)
- func (MigrationPolicy) SwaggerDoc() map[string]string
- type MigrationPolicyList
- type MigrationPolicySpec
- type MigrationPolicyStatus
- type Selectors
Constants ¶
This section is empty.
Variables ¶
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 )
Functions ¶
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 LabelSelector ¶ added in v0.55.0
func (LabelSelector) DeepCopy ¶ added in v0.55.0
func (in LabelSelector) DeepCopy() LabelSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LabelSelector.
func (LabelSelector) DeepCopyInto ¶ added in v0.55.0
func (in LabelSelector) DeepCopyInto(out *LabelSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MigrationPolicy ¶
type MigrationPolicy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MigrationPolicySpec `json:"spec" valid:"required"` // +nullable Status MigrationPolicyStatus `json:"status,omitempty"` }
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
func (*MigrationPolicy) DeepCopy ¶
func (in *MigrationPolicy) DeepCopy() *MigrationPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationPolicy.
func (*MigrationPolicy) DeepCopyInto ¶
func (in *MigrationPolicy) DeepCopyInto(out *MigrationPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MigrationPolicy) DeepCopyObject ¶
func (in *MigrationPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MigrationPolicy) GetMigrationConfByPolicy ¶
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 ¶
func (MigrationPolicy) SwaggerDoc() map[string]string
type MigrationPolicyList ¶
type MigrationPolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // +listType=atomic Items []MigrationPolicy `json:"items"` }
MigrationPolicyList is a list of MigrationPolicy
+k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*MigrationPolicyList) DeepCopy ¶
func (in *MigrationPolicyList) DeepCopy() *MigrationPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationPolicyList.
func (*MigrationPolicyList) DeepCopyInto ¶
func (in *MigrationPolicyList) DeepCopyInto(out *MigrationPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MigrationPolicyList) DeepCopyObject ¶
func (in *MigrationPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (MigrationPolicyList) SwaggerDoc ¶
func (MigrationPolicyList) SwaggerDoc() map[string]string
type MigrationPolicySpec ¶
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 (*MigrationPolicySpec) DeepCopy ¶
func (in *MigrationPolicySpec) DeepCopy() *MigrationPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationPolicySpec.
func (*MigrationPolicySpec) DeepCopyInto ¶
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 ¶
func (MigrationPolicySpec) SwaggerDoc() map[string]string
type MigrationPolicyStatus ¶
type MigrationPolicyStatus struct { }
func (*MigrationPolicyStatus) DeepCopy ¶
func (in *MigrationPolicyStatus) DeepCopy() *MigrationPolicyStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationPolicyStatus.
func (*MigrationPolicyStatus) DeepCopyInto ¶
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 ¶
func (MigrationPolicyStatus) SwaggerDoc() map[string]string
type Selectors ¶
type Selectors struct { //+optional NamespaceSelector LabelSelector `json:"namespaceSelector,omitempty"` //+optional VirtualMachineInstanceSelector LabelSelector `json:"virtualMachineInstanceSelector,omitempty"` }
func (*Selectors) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Selectors.
func (*Selectors) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.