v1alpha1

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 24

Documentation

Index

Constants

This section is empty.

Variables

View Source
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"}
)
View Source
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 Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func RegisterDefaults

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

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

type LabelSelector map[string]string

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

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

func (in *Selectors) DeepCopy() *Selectors

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Selectors.

func (*Selectors) DeepCopyInto

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

func (Selectors) SwaggerDoc() map[string]string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL