Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the infrastructure v1alpha1 API group +kubebuilder:object:generate=true +groupName=infrastructure.cluster.x-k8s.io
Index ¶
- Variables
- type ProxmoxCluster
- type ProxmoxClusterList
- type ProxmoxClusterSnippetsConfig
- type ProxmoxClusterSpec
- type ProxmoxClusterStatus
- type ProxmoxDisk
- type ProxmoxMachine
- func (in *ProxmoxMachine) DeepCopy() *ProxmoxMachine
- func (in *ProxmoxMachine) DeepCopyInto(out *ProxmoxMachine)
- func (in *ProxmoxMachine) DeepCopyObject() runtime.Object
- func (proxmoxMachine *ProxmoxMachine) GetConditions() clusterv1.Conditions
- func (proxmoxMachine *ProxmoxMachine) GetProviderId() string
- func (proxmoxMachine *ProxmoxMachine) GetVmId() int
- func (proxmoxMachine *ProxmoxMachine) IsReady() bool
- func (proxmoxMachine *ProxmoxMachine) SetConditions(conditions clusterv1.Conditions)
- func (proxmoxMachine *ProxmoxMachine) SetIpAddresses(ifaces []*proxmox.AgentNetworkIface)
- type ProxmoxMachineList
- type ProxmoxMachinePool
- type ProxmoxMachinePoolList
- type ProxmoxMachinePoolSpec
- type ProxmoxMachinePoolStatus
- type ProxmoxMachineResources
- type ProxmoxMachineSpec
- type ProxmoxMachineStatus
- type ProxmoxMachineTemplate
- type ProxmoxMachineTemplateList
- type ProxmoxMachineTemplateResource
- type ProxmoxMachineTemplateSpec
- type ProxmoxMachineTemplateStatus
- type ProxmoxNetwork
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "infrastructure.cluster.x-k8s.io", 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 ProxmoxCluster ¶
type ProxmoxCluster struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ProxmoxClusterSpec `json:"spec,omitempty"`
Status ProxmoxClusterStatus `json:"status,omitempty"`
}
ProxmoxCluster is the Schema for the proxmoxclusters API
func (*ProxmoxCluster) DeepCopy ¶
func (in *ProxmoxCluster) DeepCopy() *ProxmoxCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxmoxCluster.
func (*ProxmoxCluster) DeepCopyInto ¶
func (in *ProxmoxCluster) DeepCopyInto(out *ProxmoxCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProxmoxCluster) DeepCopyObject ¶
func (in *ProxmoxCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProxmoxClusterList ¶
type ProxmoxClusterList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ProxmoxCluster `json:"items"`
}
ProxmoxClusterList contains a list of ProxmoxCluster
func (*ProxmoxClusterList) DeepCopy ¶
func (in *ProxmoxClusterList) DeepCopy() *ProxmoxClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxmoxClusterList.
func (*ProxmoxClusterList) DeepCopyInto ¶
func (in *ProxmoxClusterList) DeepCopyInto(out *ProxmoxClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProxmoxClusterList) DeepCopyObject ¶
func (in *ProxmoxClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProxmoxClusterSnippetsConfig ¶
type ProxmoxClusterSnippetsConfig struct {
// Configure the base URI for mounting the
// snippets storage on VMs
// Example: snippets-storage:/snippets/
StorageUri string `json:"storageUri"`
// Secret containing credentials to write snippets to Proxmox Storage
CredentialsRef v1.SecretReference `json:"credentialsRef"`
}
func (*ProxmoxClusterSnippetsConfig) DeepCopy ¶
func (in *ProxmoxClusterSnippetsConfig) DeepCopy() *ProxmoxClusterSnippetsConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxmoxClusterSnippetsConfig.
func (*ProxmoxClusterSnippetsConfig) DeepCopyInto ¶
func (in *ProxmoxClusterSnippetsConfig) DeepCopyInto(out *ProxmoxClusterSnippetsConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProxmoxClusterSpec ¶
type ProxmoxClusterSpec struct {
ControlPlaneEndpoint clusterv1.APIEndpoint `json:"controlPlaneEndpoint"`
// Secret with credentials for accessing the Proxmox API
CredentialsRef v1.SecretReference `json:"credentialsRef"`
Snippets ProxmoxClusterSnippetsConfig `json:"snippets"`
// The Proxmox resource pool to attach created VMs to.
// If it doesnt exist, operator will create it first
Pool string `json:"pool,omitempty"`
// Global tags applied to all instances for the cluster
Tags []string `json:"tags,omitempty"`
InsecureSkipTlsVerify bool `json:"insecureSkipTlsVerify,omitempty"`
}
ProxmoxClusterSpec defines the desired state of ProxmoxCluster
func (*ProxmoxClusterSpec) DeepCopy ¶
func (in *ProxmoxClusterSpec) DeepCopy() *ProxmoxClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxmoxClusterSpec.
func (*ProxmoxClusterSpec) DeepCopyInto ¶
func (in *ProxmoxClusterSpec) DeepCopyInto(out *ProxmoxClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProxmoxClusterStatus ¶
type ProxmoxClusterStatus struct {
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file
Ready bool `json:"ready"`
Conditions clusterv1.Conditions `json:"conditions,omitempty"`
FailureDomains clusterv1.FailureDomains `json:"failureDomains,omitempty"`
}
ProxmoxClusterStatus defines the observed state of ProxmoxCluster
func (*ProxmoxClusterStatus) DeepCopy ¶
func (in *ProxmoxClusterStatus) DeepCopy() *ProxmoxClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxmoxClusterStatus.
func (*ProxmoxClusterStatus) DeepCopyInto ¶
func (in *ProxmoxClusterStatus) DeepCopyInto(out *ProxmoxClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProxmoxDisk ¶
type ProxmoxDisk struct {
Type string `json:"type,omitempty"`
Storage string `json:"storage,omitempty"`
Size string `json:"size,omitempty"`
StorageType string `json:"storageType,omitempty"`
Backup bool `json:"backup,omitempty"`
}
func (*ProxmoxDisk) DeepCopy ¶
func (in *ProxmoxDisk) DeepCopy() *ProxmoxDisk
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxmoxDisk.
func (*ProxmoxDisk) DeepCopyInto ¶
func (in *ProxmoxDisk) DeepCopyInto(out *ProxmoxDisk)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProxmoxMachine ¶
type ProxmoxMachine struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ProxmoxMachineSpec `json:"spec,omitempty"`
Status ProxmoxMachineStatus `json:"status,omitempty"`
}
ProxmoxMachine is the Schema for the proxmoxmachines API
func (*ProxmoxMachine) DeepCopy ¶
func (in *ProxmoxMachine) DeepCopy() *ProxmoxMachine
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxmoxMachine.
func (*ProxmoxMachine) DeepCopyInto ¶
func (in *ProxmoxMachine) DeepCopyInto(out *ProxmoxMachine)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProxmoxMachine) DeepCopyObject ¶
func (in *ProxmoxMachine) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ProxmoxMachine) GetConditions ¶
func (proxmoxMachine *ProxmoxMachine) GetConditions() clusterv1.Conditions
GetConditions returns the conditions of ProxmoxMachine status
func (*ProxmoxMachine) GetProviderId ¶ added in v0.2.6
func (proxmoxMachine *ProxmoxMachine) GetProviderId() string
func (*ProxmoxMachine) GetVmId ¶ added in v0.2.6
func (proxmoxMachine *ProxmoxMachine) GetVmId() int
func (*ProxmoxMachine) IsReady ¶ added in v0.2.6
func (proxmoxMachine *ProxmoxMachine) IsReady() bool
func (*ProxmoxMachine) SetConditions ¶
func (proxmoxMachine *ProxmoxMachine) SetConditions(conditions clusterv1.Conditions)
SetConditions sets the conditions of ProxmoxMachine status
func (*ProxmoxMachine) SetIpAddresses ¶ added in v0.2.6
func (proxmoxMachine *ProxmoxMachine) SetIpAddresses(ifaces []*proxmox.AgentNetworkIface)
type ProxmoxMachineList ¶
type ProxmoxMachineList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ProxmoxMachine `json:"items"`
}
ProxmoxMachineList contains a list of ProxmoxMachine
func (*ProxmoxMachineList) DeepCopy ¶
func (in *ProxmoxMachineList) DeepCopy() *ProxmoxMachineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxmoxMachineList.
func (*ProxmoxMachineList) DeepCopyInto ¶
func (in *ProxmoxMachineList) DeepCopyInto(out *ProxmoxMachineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProxmoxMachineList) DeepCopyObject ¶
func (in *ProxmoxMachineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProxmoxMachinePool ¶
type ProxmoxMachinePool struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ProxmoxMachinePoolSpec `json:"spec,omitempty"`
Status ProxmoxMachinePoolStatus `json:"status,omitempty"`
}
ProxmoxMachinePool is the Schema for the proxmoxmachinepools API
func (*ProxmoxMachinePool) DeepCopy ¶
func (in *ProxmoxMachinePool) DeepCopy() *ProxmoxMachinePool
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxmoxMachinePool.
func (*ProxmoxMachinePool) DeepCopyInto ¶
func (in *ProxmoxMachinePool) DeepCopyInto(out *ProxmoxMachinePool)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProxmoxMachinePool) DeepCopyObject ¶
func (in *ProxmoxMachinePool) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProxmoxMachinePoolList ¶
type ProxmoxMachinePoolList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ProxmoxMachinePool `json:"items"`
}
ProxmoxMachinePoolList contains a list of ProxmoxMachinePool
func (*ProxmoxMachinePoolList) DeepCopy ¶
func (in *ProxmoxMachinePoolList) DeepCopy() *ProxmoxMachinePoolList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxmoxMachinePoolList.
func (*ProxmoxMachinePoolList) DeepCopyInto ¶
func (in *ProxmoxMachinePoolList) DeepCopyInto(out *ProxmoxMachinePoolList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProxmoxMachinePoolList) DeepCopyObject ¶
func (in *ProxmoxMachinePoolList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProxmoxMachinePoolSpec ¶
type ProxmoxMachinePoolSpec struct {
// The number of instances to deploy in this machine pool
Instances int `json:"instances"`
MachineTemplateRef *corev1.ObjectReference `json:"machineTemplateRef"`
}
ProxmoxMachinePoolSpec defines thed desired state of ProxmoxMachinePool
func (*ProxmoxMachinePoolSpec) DeepCopy ¶
func (in *ProxmoxMachinePoolSpec) DeepCopy() *ProxmoxMachinePoolSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxmoxMachinePoolSpec.
func (*ProxmoxMachinePoolSpec) DeepCopyInto ¶
func (in *ProxmoxMachinePoolSpec) DeepCopyInto(out *ProxmoxMachinePoolSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProxmoxMachinePoolStatus ¶
type ProxmoxMachinePoolStatus struct {
}
ProxmoxMachinePoolStatus defines the observed state of ProxmoxMachinePool
func (*ProxmoxMachinePoolStatus) DeepCopy ¶
func (in *ProxmoxMachinePoolStatus) DeepCopy() *ProxmoxMachinePoolStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxmoxMachinePoolStatus.
func (*ProxmoxMachinePoolStatus) DeepCopyInto ¶
func (in *ProxmoxMachinePoolStatus) DeepCopyInto(out *ProxmoxMachinePoolStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProxmoxMachineResources ¶
type ProxmoxMachineResources struct {
Memory int `json:"memory,omitempty"`
CpuCores int `json:"cpuCores,omitempty"`
CpuSockets int `json:"cpuSockets,omitempty"`
}
func (*ProxmoxMachineResources) DeepCopy ¶
func (in *ProxmoxMachineResources) DeepCopy() *ProxmoxMachineResources
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxmoxMachineResources.
func (*ProxmoxMachineResources) DeepCopyInto ¶
func (in *ProxmoxMachineResources) DeepCopyInto(out *ProxmoxMachineResources)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProxmoxMachineSpec ¶
type ProxmoxMachineSpec struct {
TargetNode string `json:"targetNode,omitempty"`
OnBoot bool `json:"onboot,omitempty"`
Scsihw string `json:"scsihw,omitempty"`
Template string `json:"template"`
Resources ProxmoxMachineResources `json:"resources"`
Networks []ProxmoxNetwork `json:"networks"`
Disks []ProxmoxDisk `json:"disks"`
UserData string `json:"userData,omitempty"`
NetworkUserData string `json:"networkUserData,omitempty"`
SshKeys []string `json:"sshKeys,omitempty"`
ProviderID string `json:"providerID,omitempty"`
Tags []string `json:"tags,omitempty"`
}
ProxmoxMachineSpec defines the desired state of ProxmoxMachine
func (*ProxmoxMachineSpec) DeepCopy ¶
func (in *ProxmoxMachineSpec) DeepCopy() *ProxmoxMachineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxmoxMachineSpec.
func (*ProxmoxMachineSpec) DeepCopyInto ¶
func (in *ProxmoxMachineSpec) DeepCopyInto(out *ProxmoxMachineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProxmoxMachineStatus ¶
type ProxmoxMachineStatus struct {
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
// Important: Run "make" to regenerate code after modifying this file
Vmid int `json:"vmid"`
Ready bool `json:"ready,omitempty"`
Conditions []clusterv1.Condition `json:"conditions,omitempty"`
State string `json:"state,omitempty"`
IpAddresses map[string][]string `json:"ipAddresses,omitempty"`
}
ProxmoxMachineStatus defines the observed state of ProxmoxMachine
func (*ProxmoxMachineStatus) DeepCopy ¶
func (in *ProxmoxMachineStatus) DeepCopy() *ProxmoxMachineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxmoxMachineStatus.
func (*ProxmoxMachineStatus) DeepCopyInto ¶
func (in *ProxmoxMachineStatus) DeepCopyInto(out *ProxmoxMachineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProxmoxMachineTemplate ¶
type ProxmoxMachineTemplate struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ProxmoxMachineTemplateSpec `json:"spec,omitempty"`
Status ProxmoxMachineTemplateStatus `json:"status,omitempty"`
}
ProxmoxMachineTemplate is the Schema for the proxmoxmachinetemplates API
func (*ProxmoxMachineTemplate) DeepCopy ¶
func (in *ProxmoxMachineTemplate) DeepCopy() *ProxmoxMachineTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxmoxMachineTemplate.
func (*ProxmoxMachineTemplate) DeepCopyInto ¶
func (in *ProxmoxMachineTemplate) DeepCopyInto(out *ProxmoxMachineTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProxmoxMachineTemplate) DeepCopyObject ¶
func (in *ProxmoxMachineTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProxmoxMachineTemplateList ¶
type ProxmoxMachineTemplateList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ProxmoxMachineTemplate `json:"items"`
}
ProxmoxMachineTemplateList contains a list of ProxmoxMachineTemplate
func (*ProxmoxMachineTemplateList) DeepCopy ¶
func (in *ProxmoxMachineTemplateList) DeepCopy() *ProxmoxMachineTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxmoxMachineTemplateList.
func (*ProxmoxMachineTemplateList) DeepCopyInto ¶
func (in *ProxmoxMachineTemplateList) DeepCopyInto(out *ProxmoxMachineTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProxmoxMachineTemplateList) DeepCopyObject ¶
func (in *ProxmoxMachineTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProxmoxMachineTemplateResource ¶
type ProxmoxMachineTemplateResource struct {
// Spec is the specification of the desired behavior of the machine.
Spec ProxmoxMachineSpec `json:"spec"`
}
func (*ProxmoxMachineTemplateResource) DeepCopy ¶
func (in *ProxmoxMachineTemplateResource) DeepCopy() *ProxmoxMachineTemplateResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxmoxMachineTemplateResource.
func (*ProxmoxMachineTemplateResource) DeepCopyInto ¶
func (in *ProxmoxMachineTemplateResource) DeepCopyInto(out *ProxmoxMachineTemplateResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProxmoxMachineTemplateSpec ¶
type ProxmoxMachineTemplateSpec struct {
Template ProxmoxMachineTemplateResource `json:"template"`
}
ProxmoxMachineTemplateSpec defines the desired state of ProxmoxMachineTemplate
func (*ProxmoxMachineTemplateSpec) DeepCopy ¶
func (in *ProxmoxMachineTemplateSpec) DeepCopy() *ProxmoxMachineTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxmoxMachineTemplateSpec.
func (*ProxmoxMachineTemplateSpec) DeepCopyInto ¶
func (in *ProxmoxMachineTemplateSpec) DeepCopyInto(out *ProxmoxMachineTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProxmoxMachineTemplateStatus ¶
type ProxmoxMachineTemplateStatus struct {
}
ProxmoxMachineTemplateStatus defines the observed state of ProxmoxMachineTemplate
func (*ProxmoxMachineTemplateStatus) DeepCopy ¶
func (in *ProxmoxMachineTemplateStatus) DeepCopy() *ProxmoxMachineTemplateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxmoxMachineTemplateStatus.
func (*ProxmoxMachineTemplateStatus) DeepCopyInto ¶
func (in *ProxmoxMachineTemplateStatus) DeepCopyInto(out *ProxmoxMachineTemplateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProxmoxNetwork ¶
type ProxmoxNetwork struct {
Model string `json:"model"`
Bridge string `json:"bridge"`
Firewall bool `json:"firewall,omitempty"`
Backup bool `json:"backup,omitempty"`
Tag string `json:"tag,omitempty"`
}
func (*ProxmoxNetwork) DeepCopy ¶
func (in *ProxmoxNetwork) DeepCopy() *ProxmoxNetwork
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProxmoxNetwork.
func (*ProxmoxNetwork) DeepCopyInto ¶
func (in *ProxmoxNetwork) DeepCopyInto(out *ProxmoxNetwork)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.