const (
VirtualMachinePoolKind = "VirtualMachinePool"
)
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 )
SchemeGroupVersion is group version used to register these objects
var SchemeGroupVersion = schema.GroupVersion{Group: pool.GroupName, Version: "v1alpha1"}
func Kind(kind string) schema.GroupKind
Kind takes an unqualified kind and returns back a Group qualified GroupKind
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
VirtualMachinePool resource contains a VirtualMachine configuration that can be used to replicate multiple VirtualMachine resources.
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true +genclient
type VirtualMachinePool struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec VirtualMachinePoolSpec `json:"spec" valid:"required"` Status VirtualMachinePoolStatus `json:"status,omitempty"` }
func (in *VirtualMachinePool) DeepCopy() *VirtualMachinePool
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachinePool.
func (in *VirtualMachinePool) DeepCopyInto(out *VirtualMachinePool)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *VirtualMachinePool) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (VirtualMachinePool) SwaggerDoc() map[string]string
+k8s:openapi-gen=true
type VirtualMachinePoolCondition struct { Type VirtualMachinePoolConditionType `json:"type"` Status k8sv1.ConditionStatus `json:"status"` // +nullable LastProbeTime metav1.Time `json:"lastProbeTime,omitempty"` // +nullable LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` Reason string `json:"reason,omitempty"` Message string `json:"message,omitempty"` }
func (in *VirtualMachinePoolCondition) DeepCopy() *VirtualMachinePoolCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachinePoolCondition.
func (in *VirtualMachinePoolCondition) DeepCopyInto(out *VirtualMachinePoolCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VirtualMachinePoolCondition) SwaggerDoc() map[string]string
+k8s:openapi-gen=true
type VirtualMachinePoolConditionType string
const ( // VirtualMachinePoolReplicaFailure is added in a pool when one of its vms // fails to be created. VirtualMachinePoolReplicaFailure VirtualMachinePoolConditionType = "ReplicaFailure" // VirtualMachinePoolReplicaPaused is added in a pool when the pool got paused by the controller. // After this condition was added, it is safe to remove or add vms by hand and adjust the replica count manually VirtualMachinePoolReplicaPaused VirtualMachinePoolConditionType = "ReplicaPaused" )
VirtualMachinePoolList is a list of VirtualMachinePool resources.
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true
type VirtualMachinePoolList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []VirtualMachinePool `json:"items"` }
func (in *VirtualMachinePoolList) DeepCopy() *VirtualMachinePoolList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachinePoolList.
func (in *VirtualMachinePoolList) DeepCopyInto(out *VirtualMachinePoolList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *VirtualMachinePoolList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (VirtualMachinePoolList) SwaggerDoc() map[string]string
+k8s:openapi-gen=true
type VirtualMachinePoolSpec struct { // Number of desired pods. This is a pointer to distinguish between explicit // zero and not specified. Defaults to 1. // +optional Replicas *int32 `json:"replicas,omitempty"` // Label selector for pods. Existing Poolss whose pods are // selected by this will be the ones affected by this deployment. Selector *metav1.LabelSelector `json:"selector" valid:"required"` // Template describes the VM that will be created. VirtualMachineTemplate *VirtualMachineTemplateSpec `json:"virtualMachineTemplate" valid:"required"` // Indicates that the pool is paused. // +optional Paused bool `json:"paused,omitempty" protobuf:"varint,7,opt,name=paused"` }
func (in *VirtualMachinePoolSpec) DeepCopy() *VirtualMachinePoolSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachinePoolSpec.
func (in *VirtualMachinePoolSpec) DeepCopyInto(out *VirtualMachinePoolSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VirtualMachinePoolSpec) SwaggerDoc() map[string]string
+k8s:openapi-gen=true
type VirtualMachinePoolStatus struct { Replicas int32 `json:"replicas,omitempty" optional:"true"` ReadyReplicas int32 `json:"readyReplicas,omitempty" optional:"true"` // +listType=atomic Conditions []VirtualMachinePoolCondition `json:"conditions,omitempty" optional:"true"` // Canonical form of the label selector for HPA which consumes it through the scale subresource. LabelSelector string `json:"labelSelector,omitempty"` }
func (in *VirtualMachinePoolStatus) DeepCopy() *VirtualMachinePoolStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachinePoolStatus.
func (in *VirtualMachinePoolStatus) DeepCopyInto(out *VirtualMachinePoolStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VirtualMachinePoolStatus) SwaggerDoc() map[string]string
+k8s:openapi-gen=true
type VirtualMachineTemplateSpec struct { // +kubebuilder:pruning:PreserveUnknownFields // +nullable ObjectMeta metav1.ObjectMeta `json:"metadata,omitempty"` // VirtualMachineSpec contains the VirtualMachine specification. Spec virtv1.VirtualMachineSpec `json:"spec,omitempty" valid:"required"` }
func (in *VirtualMachineTemplateSpec) DeepCopy() *VirtualMachineTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VirtualMachineTemplateSpec.
func (in *VirtualMachineTemplateSpec) DeepCopyInto(out *VirtualMachineTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (VirtualMachineTemplateSpec) SwaggerDoc() map[string]string