v1alpha1

package
v0.0.6-rc2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the proxmox v1alpha1 API group +kubebuilder:object:generate=true +groupName=proxmox.alperen.cloud

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "proxmox.alperen.cloud", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type CertManagerSpec

type CertManagerSpec struct {
	CommonName string    `json:"commonName,omitempty"`
	DNSNames   []string  `json:"dnsNames,omitempty"`
	IssuerRef  IssuerRef `json:"issuerRef,omitempty"`
	SecretName string    `json:"secretName,omitempty"`
	Usages     []string  `json:"usages,omitempty"`
}

func (*CertManagerSpec) DeepCopy

func (in *CertManagerSpec) DeepCopy() *CertManagerSpec

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

func (*CertManagerSpec) DeepCopyInto

func (in *CertManagerSpec) DeepCopyInto(out *CertManagerSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Container

type Container struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ContainerSpec   `json:"spec,omitempty"`
	Status ContainerStatus `json:"status,omitempty"`
}

Container is the Schema for the containers API

func (*Container) DeepCopy

func (in *Container) DeepCopy() *Container

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

func (*Container) DeepCopyInto

func (in *Container) DeepCopyInto(out *Container)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Container) DeepCopyObject

func (in *Container) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ContainerList

type ContainerList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Container `json:"items"`
}

ContainerList contains a list of Container

func (*ContainerList) DeepCopy

func (in *ContainerList) DeepCopy() *ContainerList

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

func (*ContainerList) DeepCopyInto

func (in *ContainerList) DeepCopyInto(out *ContainerList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ContainerList) DeepCopyObject

func (in *ContainerList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ContainerSpec

type ContainerSpec struct {

	// Name is the name of the Container
	Name string `json:"name"`
	// NodeName is the name of the target node of Proxmox
	NodeName string `json:"nodeName"`
	// TemplateSpec of the source Container
	Template ContainerTemplate `json:"template,omitempty"`
}

ContainerSpec defines the desired state of Container

func (*ContainerSpec) DeepCopy

func (in *ContainerSpec) DeepCopy() *ContainerSpec

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

func (*ContainerSpec) DeepCopyInto

func (in *ContainerSpec) DeepCopyInto(out *ContainerSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ContainerStatus

type ContainerStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` //nolint:lll // This is required by kubebuilder
	Status     QEMUStatus         `json:"status,omitempty"`
}

ContainerStatus defines the observed state of Container

func (*ContainerStatus) DeepCopy

func (in *ContainerStatus) DeepCopy() *ContainerStatus

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

func (*ContainerStatus) DeepCopyInto

func (in *ContainerStatus) DeepCopyInto(out *ContainerStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ContainerTemplate

type ContainerTemplate struct {
	// Name of the template
	Name string `json:"name,omitempty"`
	// Cores is the number of CPU cores
	Cores int `json:"cores,omitempty"`
	// Memory is the amount of memory in MB
	Memory int `json:"memory,omitempty"`
	// Disks is the list of disks
	Disk []ContainerTemplateDisk `json:"disk,omitempty"`
	// Networks is the list of networks
	Network []ContainerTemplateNetwork `json:"network,omitempty"`
}

func (*ContainerTemplate) DeepCopy

func (in *ContainerTemplate) DeepCopy() *ContainerTemplate

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

func (*ContainerTemplate) DeepCopyInto

func (in *ContainerTemplate) DeepCopyInto(out *ContainerTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ContainerTemplateDisk

type ContainerTemplateDisk struct {
	// Storage is the name of the storage
	Storage string `json:"storage,omitempty"`
	// Size is the size of the disk
	Size int `json:"size,omitempty"`
	// Type is the type of the disk
	Type string `json:"type,omitempty"`
}

func (*ContainerTemplateDisk) DeepCopy

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

func (*ContainerTemplateDisk) DeepCopyInto

func (in *ContainerTemplateDisk) DeepCopyInto(out *ContainerTemplateDisk)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ContainerTemplateNetwork

type ContainerTemplateNetwork struct {
	// Name is the name of the network
	Model string `json:"model,omitempty"`
	// Bridge is the name of the bridge
	Bridge string `json:"bridge,omitempty"`
}

func (*ContainerTemplateNetwork) DeepCopy

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

func (*ContainerTemplateNetwork) DeepCopyInto

func (in *ContainerTemplateNetwork) DeepCopyInto(out *ContainerTemplateNetwork)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CustomCertificate

type CustomCertificate struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   CustomCertificateSpec   `json:"spec,omitempty"`
	Status CustomCertificateStatus `json:"status,omitempty"`
}

CustomCertificate is the Schema for the customcertificates API

func (*CustomCertificate) DeepCopy

func (in *CustomCertificate) DeepCopy() *CustomCertificate

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

func (*CustomCertificate) DeepCopyInto

func (in *CustomCertificate) DeepCopyInto(out *CustomCertificate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CustomCertificate) DeepCopyObject

func (in *CustomCertificate) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CustomCertificateList

type CustomCertificateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []CustomCertificate `json:"items"`
}

CustomCertificateList contains a list of CustomCertificate

func (*CustomCertificateList) DeepCopy

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

func (*CustomCertificateList) DeepCopyInto

func (in *CustomCertificateList) DeepCopyInto(out *CustomCertificateList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CustomCertificateList) DeepCopyObject

func (in *CustomCertificateList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CustomCertificateSpec

type CustomCertificateSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	NodeName        string          `json:"nodeName,omitempty"`
	CertManagerSpec CertManagerSpec `json:"certManagerSpec,omitempty"`
	ProxmoxCertSpec ProxmoxCertSpec `json:"proxmoxCertSpec,omitempty"`
}

CustomCertificateSpec defines the desired state of CustomCertificate

func (*CustomCertificateSpec) DeepCopy

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

func (*CustomCertificateSpec) DeepCopyInto

func (in *CustomCertificateSpec) DeepCopyInto(out *CustomCertificateSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CustomCertificateStatus

type CustomCertificateStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` //nolint:lll // This is required by kubebuilder
}

CustomCertificateStatus defines the observed state of CustomCertificate

func (*CustomCertificateStatus) DeepCopy

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

func (*CustomCertificateStatus) DeepCopyInto

func (in *CustomCertificateStatus) DeepCopyInto(out *CustomCertificateStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IssuerRef

type IssuerRef struct {
	Name  string `json:"name,omitempty"`
	Kind  string `json:"kind,omitempty"`
	Group string `json:"group,omitempty"`
}

func (*IssuerRef) DeepCopy

func (in *IssuerRef) DeepCopy() *IssuerRef

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

func (*IssuerRef) DeepCopyInto

func (in *IssuerRef) DeepCopyInto(out *IssuerRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ManagedVirtualMachine

type ManagedVirtualMachine struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ManagedVirtualMachineSpec `json:"spec,omitempty"`
	Status VirtualMachineStatus      `json:"status,omitempty"`
}

ManagedVirtualMachine is the Schema for the managedvirtualmachines API

func (*ManagedVirtualMachine) DeepCopy

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

func (*ManagedVirtualMachine) DeepCopyInto

func (in *ManagedVirtualMachine) DeepCopyInto(out *ManagedVirtualMachine)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ManagedVirtualMachine) DeepCopyObject

func (in *ManagedVirtualMachine) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ManagedVirtualMachineList

type ManagedVirtualMachineList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ManagedVirtualMachine `json:"items"`
}

ManagedVirtualMachineList contains a list of ManagedVirtualMachine

func (*ManagedVirtualMachineList) DeepCopy

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

func (*ManagedVirtualMachineList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ManagedVirtualMachineList) DeepCopyObject

func (in *ManagedVirtualMachineList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ManagedVirtualMachineSpec

type ManagedVirtualMachineSpec struct {

	// Foo is an example field of ManagedVirtualMachine. Edit managedvirtualmachine_types.go to remove/update
	Name     string `json:"name"`
	NodeName string `json:"nodeName"`
	Cores    int    `json:"cores"`
	Memory   int    `json:"memory"`
	Disk     int    `json:"disk"`
}

ManagedVirtualMachineSpec defines the desired state of ManagedVirtualMachine

func (*ManagedVirtualMachineSpec) DeepCopy

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

func (*ManagedVirtualMachineSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NamespaceSelector

type NamespaceSelector struct {
	Namespaces []string `json:"namespaces,omitempty"`
}

func (*NamespaceSelector) DeepCopy

func (in *NamespaceSelector) DeepCopy() *NamespaceSelector

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

func (*NamespaceSelector) DeepCopyInto

func (in *NamespaceSelector) DeepCopyInto(out *NamespaceSelector)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NewVMSpec

type NewVMSpec struct {
	// CPUs
	Cores int `json:"cores,omitempty"`
	// Memory is the amount of memory in MB
	Memory int `json:"memory,omitempty"`
	// Disks is the list of disks
	Disk NewVMSpecDisk `json:"disk,omitempty"`
	// Networks is the list of networks
	Network NewVMSpecNetwork `json:"network,omitempty"`
	// OS Image
	OSImage NewVMSpecOSImage `json:"osImage,omitempty"`
}

func (*NewVMSpec) DeepCopy

func (in *NewVMSpec) DeepCopy() *NewVMSpec

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

func (*NewVMSpec) DeepCopyInto

func (in *NewVMSpec) DeepCopyInto(out *NewVMSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NewVMSpecDisk

type NewVMSpecDisk struct {
	Name  string `json:"name,omitempty"`
	Value string `json:"value,omitempty"`
}

func (*NewVMSpecDisk) DeepCopy

func (in *NewVMSpecDisk) DeepCopy() *NewVMSpecDisk

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

func (*NewVMSpecDisk) DeepCopyInto

func (in *NewVMSpecDisk) DeepCopyInto(out *NewVMSpecDisk)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NewVMSpecNetwork

type NewVMSpecNetwork struct {
	Name  string `json:"name,omitempty"`
	Value string `json:"value,omitempty"`
}

func (*NewVMSpecNetwork) DeepCopy

func (in *NewVMSpecNetwork) DeepCopy() *NewVMSpecNetwork

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

func (*NewVMSpecNetwork) DeepCopyInto

func (in *NewVMSpecNetwork) DeepCopyInto(out *NewVMSpecNetwork)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NewVMSpecOSImage

type NewVMSpecOSImage struct {
	Name  string `json:"name,omitempty"`
	Value string `json:"value,omitempty"`
}

func (*NewVMSpecOSImage) DeepCopy

func (in *NewVMSpecOSImage) DeepCopy() *NewVMSpecOSImage

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

func (*NewVMSpecOSImage) DeepCopyInto

func (in *NewVMSpecOSImage) DeepCopyInto(out *NewVMSpecOSImage)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ProxmoxCertSpec

type ProxmoxCertSpec struct {
	Certificate  string `json:"certificate,omitempty"`
	PrivateKey   string `json:"privateKey,omitempty"`
	NodeName     string `json:"nodeName,omitempty"`
	Force        bool   `json:"force,omitempty"`
	RestartProxy bool   `json:"restartProxy,omitempty"`
}

func (*ProxmoxCertSpec) DeepCopy

func (in *ProxmoxCertSpec) DeepCopy() *ProxmoxCertSpec

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

func (*ProxmoxCertSpec) DeepCopyInto

func (in *ProxmoxCertSpec) DeepCopyInto(out *ProxmoxCertSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type QEMUStatus

type QEMUStatus struct {
	// State is the state of the VM
	State string `json:"state"`
	// Node is the name of the node
	Node string `json:"node"`
	// Uptime is the uptime of the VM
	Uptime string `json:"uptime"`
	// ID is the ID of the VM
	ID int `json:"id"`
	// IPAddress is the IP address of the VM
	IPAddress string `json:"IPAddress"`
	// OSInfo is the OS information of the VM
	OSInfo string `json:"OSInfo"`
}

func (*QEMUStatus) DeepCopy

func (in *QEMUStatus) DeepCopy() *QEMUStatus

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

func (*QEMUStatus) DeepCopyInto

func (in *QEMUStatus) DeepCopyInto(out *QEMUStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StorageDownloadURL

type StorageDownloadURL struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   StorageDownloadURLSpec   `json:"spec,omitempty"`
	Status StorageDownloadURLStatus `json:"status,omitempty"`
}

StorageDownloadURL is the Schema for the storagedownloadurls API

func (*StorageDownloadURL) DeepCopy

func (in *StorageDownloadURL) DeepCopy() *StorageDownloadURL

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

func (*StorageDownloadURL) DeepCopyInto

func (in *StorageDownloadURL) DeepCopyInto(out *StorageDownloadURL)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*StorageDownloadURL) DeepCopyObject

func (in *StorageDownloadURL) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type StorageDownloadURLList

type StorageDownloadURLList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []StorageDownloadURL `json:"items"`
}

StorageDownloadURLList contains a list of StorageDownloadURL

func (*StorageDownloadURLList) DeepCopy

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

func (*StorageDownloadURLList) DeepCopyInto

func (in *StorageDownloadURLList) DeepCopyInto(out *StorageDownloadURLList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*StorageDownloadURLList) DeepCopyObject

func (in *StorageDownloadURLList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type StorageDownloadURLSpec

type StorageDownloadURLSpec struct {

	// +kubebuilder:validation:Pattern=\b(iso|vztmpl)\b
	Content  string `json:"content"`
	Filename string `json:"filename"`
	Node     string `json:"node"`
	Storage  string `json:"storage"`
	URL      string `json:"url"`
	// Optional fields
	Checksum          string `json:"checksum,omitempty"`
	ChecksumAlgorithm string `json:"checksumAlgorithm,omitempty"`
	Compression       string `json:"compression,omitempty"`
	VerifyCertificate bool   `json:"verifyCertificate,omitempty"`
}

StorageDownloadURLSpec defines the desired state of StorageDownloadURL

func (*StorageDownloadURLSpec) DeepCopy

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

func (*StorageDownloadURLSpec) DeepCopyInto

func (in *StorageDownloadURLSpec) DeepCopyInto(out *StorageDownloadURLSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StorageDownloadURLStatus

type StorageDownloadURLStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` //nolint:lll // This is required by kubebuilder
}

StorageDownloadURLStatus defines the observed state of StorageDownloadURL

func (*StorageDownloadURLStatus) DeepCopy

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

func (*StorageDownloadURLStatus) DeepCopyInto

func (in *StorageDownloadURLStatus) DeepCopyInto(out *StorageDownloadURLStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachine

type VirtualMachine struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	OwnerReferences   []metav1.OwnerReference `json:"ownerReferences,omitempty"`

	Spec   VirtualMachineSpec   `json:"spec,omitempty"`
	Status VirtualMachineStatus `json:"status,omitempty"`
}

VirtualMachine is the Schema for the virtualmachines API

func (*VirtualMachine) DeepCopy

func (in *VirtualMachine) DeepCopy() *VirtualMachine

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

func (*VirtualMachine) DeepCopyInto

func (in *VirtualMachine) DeepCopyInto(out *VirtualMachine)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualMachine) DeepCopyObject

func (in *VirtualMachine) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VirtualMachineList

type VirtualMachineList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []VirtualMachine `json:"items"`
}

VirtualMachineList contains a list of VirtualMachine

func (*VirtualMachineList) DeepCopy

func (in *VirtualMachineList) DeepCopy() *VirtualMachineList

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

func (*VirtualMachineList) DeepCopyInto

func (in *VirtualMachineList) DeepCopyInto(out *VirtualMachineList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualMachineList) DeepCopyObject

func (in *VirtualMachineList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VirtualMachineSet

type VirtualMachineSet struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   VirtualMachineSetSpec   `json:"spec,omitempty"`
	Status VirtualMachineSetStatus `json:"status,omitempty"`
}

VirtualMachineSet is the Schema for the virtualmachinesets API

func (*VirtualMachineSet) DeepCopy

func (in *VirtualMachineSet) DeepCopy() *VirtualMachineSet

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

func (*VirtualMachineSet) DeepCopyInto

func (in *VirtualMachineSet) DeepCopyInto(out *VirtualMachineSet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualMachineSet) DeepCopyObject

func (in *VirtualMachineSet) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VirtualMachineSetList

type VirtualMachineSetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []VirtualMachineSet `json:"items"`
}

VirtualMachineSetList contains a list of VirtualMachineSet

func (*VirtualMachineSetList) DeepCopy

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

func (*VirtualMachineSetList) DeepCopyInto

func (in *VirtualMachineSetList) DeepCopyInto(out *VirtualMachineSetList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualMachineSetList) DeepCopyObject

func (in *VirtualMachineSetList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VirtualMachineSetSpec

type VirtualMachineSetSpec struct {

	// Foo is an example field of VirtualMachineSet. Edit virtualmachineset_types.go to remove/update
	Replicas int                        `json:"replicas"`
	NodeName string                     `json:"nodeName"`
	Template VirtualMachineSpecTemplate `json:"template,omitempty"`
}

VirtualMachineSetSpec defines the desired state of VirtualMachineSet

func (*VirtualMachineSetSpec) DeepCopy

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

func (*VirtualMachineSetSpec) DeepCopyInto

func (in *VirtualMachineSetSpec) DeepCopyInto(out *VirtualMachineSetSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineSetStatus

type VirtualMachineSetStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` //nolint:lll // This is required by kubebuilder
}

VirtualMachineSetStatus defines the observed state of VirtualMachineSet

func (*VirtualMachineSetStatus) DeepCopy

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

func (*VirtualMachineSetStatus) DeepCopyInto

func (in *VirtualMachineSetStatus) DeepCopyInto(out *VirtualMachineSetStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineSnapshot

type VirtualMachineSnapshot struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   VirtualMachineSnapshotSpec   `json:"spec,omitempty"`
	Status VirtualMachineSnapshotStatus `json:"status,omitempty"`
}

VirtualMachineSnapshot is the Schema for the virtualmachinesnapshots API

func (*VirtualMachineSnapshot) DeepCopy

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

func (*VirtualMachineSnapshot) DeepCopyInto

func (in *VirtualMachineSnapshot) DeepCopyInto(out *VirtualMachineSnapshot)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualMachineSnapshot) DeepCopyObject

func (in *VirtualMachineSnapshot) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VirtualMachineSnapshotList

type VirtualMachineSnapshotList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []VirtualMachineSnapshot `json:"items"`
}

VirtualMachineSnapshotList contains a list of VirtualMachineSnapshot

func (*VirtualMachineSnapshotList) DeepCopy

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

func (*VirtualMachineSnapshotList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualMachineSnapshotList) DeepCopyObject

func (in *VirtualMachineSnapshotList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VirtualMachineSnapshotPolicy

type VirtualMachineSnapshotPolicy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   VirtualMachineSnapshotPolicySpec   `json:"spec,omitempty"`
	Status VirtualMachineSnapshotPolicyStatus `json:"status,omitempty"`
}

VirtualMachineSnapshotPolicy is the Schema for the virtualmachinesnapshotpolicies API

func (*VirtualMachineSnapshotPolicy) DeepCopy

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

func (*VirtualMachineSnapshotPolicy) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualMachineSnapshotPolicy) DeepCopyObject

func (in *VirtualMachineSnapshotPolicy) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VirtualMachineSnapshotPolicyList

type VirtualMachineSnapshotPolicyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []VirtualMachineSnapshotPolicy `json:"items"`
}

VirtualMachineSnapshotPolicyList contains a list of VirtualMachineSnapshotPolicy

func (*VirtualMachineSnapshotPolicyList) DeepCopy

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

func (*VirtualMachineSnapshotPolicyList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*VirtualMachineSnapshotPolicyList) DeepCopyObject

func (in *VirtualMachineSnapshotPolicyList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type VirtualMachineSnapshotPolicySpec

type VirtualMachineSnapshotPolicySpec struct {
	NamespaceSelector NamespaceSelector `json:"namespaceSelector,omitempty"`

	LabelSelector metav1.LabelSelector `json:"labelSelector,omitempty"`

	SnapshotSchedule string `json:"snapshotSchedule,omitempty"`
}

VirtualMachineSnapshotPolicySpec defines the desired state of VirtualMachineSnapshotPolicy

func (*VirtualMachineSnapshotPolicySpec) DeepCopy

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

func (*VirtualMachineSnapshotPolicySpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineSnapshotPolicyStatus

type VirtualMachineSnapshotPolicyStatus struct {
}

VirtualMachineSnapshotPolicyStatus defines the observed state of VirtualMachineSnapshotPolicy

func (*VirtualMachineSnapshotPolicyStatus) DeepCopy

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

func (*VirtualMachineSnapshotPolicyStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineSnapshotSpec

type VirtualMachineSnapshotSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	// Name of the virtual machine to take snapshot of
	VirtualMachineName string `json:"virtualMachineName"`
	// Name of the snapshot
	SnapshotName string `json:"snapshotName,omitempty"`
	// Description of the snapshot
	Timestamp metav1.Time `json:"timestamp,omitempty"`
}

VirtualMachineSnapshotSpec defines the desired state of VirtualMachineSnapshot

func (*VirtualMachineSnapshotSpec) DeepCopy

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

func (*VirtualMachineSnapshotSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineSnapshotStatus

type VirtualMachineSnapshotStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	// Possible values: "created", "failed"
	Status string `json:"status,omitempty"`

	// Error message if the snapshot creation process failed
	ErrorMessage string `json:"errorMessage,omitempty"`
}

VirtualMachineSnapshotStatus defines the observed state of VirtualMachineSnapshot

func (*VirtualMachineSnapshotStatus) DeepCopy

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

func (*VirtualMachineSnapshotStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineSpec

type VirtualMachineSpec struct {

	// Name is the name of the VM
	Name string `json:"name"`
	// NodeName is the name of the target node of Proxmox
	NodeName string `json:"nodeName"`
	// TemplateSpec of the source VM
	Template VirtualMachineSpecTemplate `json:"template,omitempty"`
	// This field should be modified further
	VMSpec NewVMSpec `json:"vmSpec,omitempty"`
}

VirtualMachineSpec defines the desired state of VirtualMachine

func (*VirtualMachineSpec) DeepCopy

func (in *VirtualMachineSpec) DeepCopy() *VirtualMachineSpec

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

func (*VirtualMachineSpec) DeepCopyInto

func (in *VirtualMachineSpec) DeepCopyInto(out *VirtualMachineSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineSpecTemplate

type VirtualMachineSpecTemplate struct {
	// Name of the template
	Name string `json:"name,omitempty"`
	// Cores is the number of CPU cores
	Cores int `json:"cores,omitempty"`
	// Socket is the number of CPU sockets
	Socket int `json:"socket,omitempty"`
	// Memory is the amount of memory in MB
	Memory int `json:"memory,omitempty"`
	// Disks is the list of disks
	Disk []VirtualMachineSpecTemplateDisk `json:"disk,omitempty"`
	// Networks is the list of networks
	Network []VirtualMachineSpecTemplateNetwork `json:"network,omitempty"`
}

func (*VirtualMachineSpecTemplate) DeepCopy

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

func (*VirtualMachineSpecTemplate) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineSpecTemplateDisk

type VirtualMachineSpecTemplateDisk struct {
	// Storage is the name of the storage
	Storage string `json:"storage"`
	// Size is the size of the disk in GB
	Size int `json:"size"`
	// Type is the type of the disk
	Type string `json:"type"`
}

func (*VirtualMachineSpecTemplateDisk) DeepCopy

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

func (*VirtualMachineSpecTemplateDisk) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineSpecTemplateNetwork

type VirtualMachineSpecTemplateNetwork struct {
	// Model is the model of the network card
	Model string `json:"model"`
	// Bridge is the name of the bridge
	Bridge string `json:"bridge"`
}

func (*VirtualMachineSpecTemplateNetwork) DeepCopy

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

func (*VirtualMachineSpecTemplateNetwork) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type VirtualMachineStatus

type VirtualMachineStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "make" to regenerate code after modifying this file
	Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` //nolint:lll // This is required by kubebuilder
	Status     QEMUStatus         `json:"status,omitempty"`
}

VirtualMachineStatus defines the observed state of VirtualMachine

func (*VirtualMachineStatus) DeepCopy

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

func (*VirtualMachineStatus) DeepCopyInto

func (in *VirtualMachineStatus) DeepCopyInto(out *VirtualMachineStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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