v1alpha4

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

+k8s:conversion-gen=github.com/spectrocloud/cluster-api-provider-maas/api/v1beta1

Package v1alpha4 contains API Schema definitions for the infrastructure v1alpha4 API group +kubebuilder:object:generate=true +groupName=infrastructure.cluster.x-k8s.io

Index

Constants

View Source
const (
	MachineDeployedCondition clusterv1.ConditionType = "MachineDeployed"

	// WaitingForClusterInfrastructureReason (Severity=Info) documents a MachineMachine waiting for the cluster
	// infrastructure to be ready before starting to deploy the machine that provides the MachineMachine
	// infrastructure.
	WaitingForClusterInfrastructureReason = "WaitingForClusterInfrastructure"

	// WaitingForBootstrapDataReason (Severity=Info) documents a MachineMachine waiting for the bootstrap
	// script to be ready before starting to create the container that provides the MachineMachine infrastructure.
	WaitingForBootstrapDataReason = "WaitingForBootstrapData"

	// MachineDeployingReason
	MachineDeployingReason = "MachineDeploying"

	// MachineTerminatedReason
	MachineTerminatedReason = "MachineTerminatedReason"

	// MachineDeployingReason
	MachinePoweredOffReason = "MachinePoweredOff"

	// MachineNotFoundReason used when the machine couldn't be retrieved.
	MachineNotFoundReason = "MachineNotFound"

	// MachineDeployFailedReason (Severity=Warning) documents a MachineMachine controller detecting
	// an error while deploying the MaaS machine that provides the MachineMachine infrastructure; those kind of
	// errors are usually transient and failed provisioning are automatically re-tried by the controller.
	MachineDeployFailedReason = "MachineDeployFailed"

	// MachineDeployStartedReason (Severity=Info) documents a MachineMachine controller started deploying
	MachineDeployStartedReason = "MachineDeployStartedReason"
)
View Source
const (
	// Only applicable to control plane machines. DNSAttachedCondition will report true when a control plane is successfully registered with an DNS
	// When set to false, severity can be an Error if the subnet is not found or unavailable in the instance's AZ
	DNSAttachedCondition clusterv1.ConditionType = "DNSAttached"

	DNSDetachPending = "DNSDetachPending"
	DNSAttachPending = "DNSAttachPending"
)
View Source
const (
	// DNSReadyCondition documents the availability of the container that implements the cluster DNS.
	DNSReadyCondition clusterv1.ConditionType = "LoadBalancerReady"

	// LoadBalancerProvisioningFailedReason (Severity=Warning) documents a MAASCluster controller detecting
	// dns reconcile failure will be retried
	DNSFailedReason = "LoadBalancerFailed"

	WaitForDNSNameReason = "WaitForDNSName"
)
View Source
const (
	// APIServerAvailableCondition documents whether API server is reachable
	APIServerAvailableCondition clusterv1.ConditionType = "APIServerAvailable"

	// APIServerNotReadyReason api server isn't responding
	APIServerNotReadyReason = "APIServerNotReady"
)
View Source
const (
	// ClusterFinalizer allows MaasClusterReconciler to clean up resources associated with MaasCluster before
	// removing it from the apiserver.
	ClusterFinalizer = "maascluster.infrastructure.cluster.x-k8s.io"
)
View Source
const (
	// MachineFinalizer allows MaasMachineReconciler to clean up resources associated with MaasMachine before
	// removing it from the apiserver.
	MachineFinalizer = "maasmachine.infrastructure.cluster.x-k8s.io"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "infrastructure.cluster.x-k8s.io", Version: "v1alpha4"}

	// 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
)
View Source
var (
	// MachineStateAllocated is the string representing an instance in a ready (commissioned) state
	MachineStateAllocated = MachineState("Allocated")

	//MachineStateDeploying is the string representing an instance in a deploying state
	MachineStateDeploying = MachineState("Deploying")

	// MachineStateDeployed is the string representing an instance in a pending state
	MachineStateDeployed = MachineState("Deployed")

	// MachineStateReady is the string representing an instance in a ready (commissioned) state
	MachineStateReady = MachineState("Ready")

	// MachineStateDiskErasing is the string representing an instance which is releasing (disk)
	MachineStateDiskErasing = MachineState("Disk erasing")

	// MachineStateDiskErasing is the string representing an instance which is releasing
	MachineStateReleasing = MachineState("Releasing")

	// MachineStateNew is the string representing an instance which is not yet commissioned
	MachineStateNew = MachineState("New")

	// MachineRunningStates defines the set of states in which an MaaS instance is
	// running or going to be running soon
	MachineRunningStates = sets.NewString(
		string(MachineStateDeploying),
		string(MachineStateDeployed),
	)

	// MachineOperationalStates defines the set of states in which an MaaS instance is
	// or can return to running, and supports all MaaS operations
	MachineOperationalStates = MachineRunningStates.Union(
		sets.NewString(
			string(MachineStateAllocated),
		),
	)

	// MachineKnownStates represents all known MaaS instance states
	MachineKnownStates = MachineOperationalStates.Union(
		sets.NewString(
			string(MachineStateDiskErasing),
			string(MachineStateReleasing),
			string(MachineStateReady),
			string(MachineStateNew),
		),
	)
)

Functions

func Convert_v1alpha4_APIEndpoint_To_v1beta1_APIEndpoint added in v0.4.0

func Convert_v1alpha4_APIEndpoint_To_v1beta1_APIEndpoint(in *APIEndpoint, out *v1beta1.APIEndpoint, s conversion.Scope) error

Convert_v1alpha4_APIEndpoint_To_v1beta1_APIEndpoint is an autogenerated conversion function.

func Convert_v1alpha4_MaasClusterList_To_v1beta1_MaasClusterList added in v0.4.0

func Convert_v1alpha4_MaasClusterList_To_v1beta1_MaasClusterList(in *MaasClusterList, out *v1beta1.MaasClusterList, s conversion.Scope) error

Convert_v1alpha4_MaasClusterList_To_v1beta1_MaasClusterList is an autogenerated conversion function.

func Convert_v1alpha4_MaasClusterSpec_To_v1beta1_MaasClusterSpec added in v0.4.0

func Convert_v1alpha4_MaasClusterSpec_To_v1beta1_MaasClusterSpec(in *MaasClusterSpec, out *v1beta1.MaasClusterSpec, s conversion.Scope) error

Convert_v1alpha4_MaasClusterSpec_To_v1beta1_MaasClusterSpec is an autogenerated conversion function.

func Convert_v1alpha4_MaasClusterStatus_To_v1beta1_MaasClusterStatus added in v0.4.0

func Convert_v1alpha4_MaasClusterStatus_To_v1beta1_MaasClusterStatus(in *MaasClusterStatus, out *v1beta1.MaasClusterStatus, s conversion.Scope) error

Convert_v1alpha4_MaasClusterStatus_To_v1beta1_MaasClusterStatus is an autogenerated conversion function.

func Convert_v1alpha4_MaasCluster_To_v1beta1_MaasCluster added in v0.4.0

func Convert_v1alpha4_MaasCluster_To_v1beta1_MaasCluster(in *MaasCluster, out *v1beta1.MaasCluster, s conversion.Scope) error

Convert_v1alpha4_MaasCluster_To_v1beta1_MaasCluster is an autogenerated conversion function.

func Convert_v1alpha4_MaasMachineList_To_v1beta1_MaasMachineList added in v0.4.0

func Convert_v1alpha4_MaasMachineList_To_v1beta1_MaasMachineList(in *MaasMachineList, out *v1beta1.MaasMachineList, s conversion.Scope) error

Convert_v1alpha4_MaasMachineList_To_v1beta1_MaasMachineList is an autogenerated conversion function.

func Convert_v1alpha4_MaasMachineSpec_To_v1beta1_MaasMachineSpec added in v0.4.0

func Convert_v1alpha4_MaasMachineSpec_To_v1beta1_MaasMachineSpec(in *MaasMachineSpec, out *v1beta1.MaasMachineSpec, s conversion.Scope) error

Convert_v1alpha4_MaasMachineSpec_To_v1beta1_MaasMachineSpec is an autogenerated conversion function.

func Convert_v1alpha4_MaasMachineStatus_To_v1beta1_MaasMachineStatus added in v0.4.0

func Convert_v1alpha4_MaasMachineStatus_To_v1beta1_MaasMachineStatus(in *MaasMachineStatus, out *v1beta1.MaasMachineStatus, s conversion.Scope) error

Convert_v1alpha4_MaasMachineStatus_To_v1beta1_MaasMachineStatus is an autogenerated conversion function.

func Convert_v1alpha4_MaasMachineTemplateList_To_v1beta1_MaasMachineTemplateList added in v0.4.0

func Convert_v1alpha4_MaasMachineTemplateList_To_v1beta1_MaasMachineTemplateList(in *MaasMachineTemplateList, out *v1beta1.MaasMachineTemplateList, s conversion.Scope) error

Convert_v1alpha4_MaasMachineTemplateList_To_v1beta1_MaasMachineTemplateList is an autogenerated conversion function.

func Convert_v1alpha4_MaasMachineTemplateResource_To_v1beta1_MaasMachineTemplateResource added in v0.4.0

func Convert_v1alpha4_MaasMachineTemplateResource_To_v1beta1_MaasMachineTemplateResource(in *MaasMachineTemplateResource, out *v1beta1.MaasMachineTemplateResource, s conversion.Scope) error

Convert_v1alpha4_MaasMachineTemplateResource_To_v1beta1_MaasMachineTemplateResource is an autogenerated conversion function.

func Convert_v1alpha4_MaasMachineTemplateSpec_To_v1beta1_MaasMachineTemplateSpec added in v0.4.0

func Convert_v1alpha4_MaasMachineTemplateSpec_To_v1beta1_MaasMachineTemplateSpec(in *MaasMachineTemplateSpec, out *v1beta1.MaasMachineTemplateSpec, s conversion.Scope) error

Convert_v1alpha4_MaasMachineTemplateSpec_To_v1beta1_MaasMachineTemplateSpec is an autogenerated conversion function.

func Convert_v1alpha4_MaasMachineTemplate_To_v1beta1_MaasMachineTemplate added in v0.4.0

func Convert_v1alpha4_MaasMachineTemplate_To_v1beta1_MaasMachineTemplate(in *MaasMachineTemplate, out *v1beta1.MaasMachineTemplate, s conversion.Scope) error

Convert_v1alpha4_MaasMachineTemplate_To_v1beta1_MaasMachineTemplate is an autogenerated conversion function.

func Convert_v1alpha4_MaasMachine_To_v1beta1_MaasMachine added in v0.4.0

func Convert_v1alpha4_MaasMachine_To_v1beta1_MaasMachine(in *MaasMachine, out *v1beta1.MaasMachine, s conversion.Scope) error

Convert_v1alpha4_MaasMachine_To_v1beta1_MaasMachine is an autogenerated conversion function.

func Convert_v1alpha4_Machine_To_v1beta1_Machine added in v0.4.0

func Convert_v1alpha4_Machine_To_v1beta1_Machine(in *Machine, out *v1beta1.Machine, s conversion.Scope) error

Convert_v1alpha4_Machine_To_v1beta1_Machine is an autogenerated conversion function.

func Convert_v1alpha4_Network_To_v1beta1_Network added in v0.4.0

func Convert_v1alpha4_Network_To_v1beta1_Network(in *Network, out *v1beta1.Network, s conversion.Scope) error

Convert_v1alpha4_Network_To_v1beta1_Network is an autogenerated conversion function.

func Convert_v1beta1_APIEndpoint_To_v1alpha4_APIEndpoint added in v0.4.0

func Convert_v1beta1_APIEndpoint_To_v1alpha4_APIEndpoint(in *v1beta1.APIEndpoint, out *APIEndpoint, s conversion.Scope) error

Convert_v1beta1_APIEndpoint_To_v1alpha4_APIEndpoint is an autogenerated conversion function.

func Convert_v1beta1_MaasClusterList_To_v1alpha4_MaasClusterList added in v0.4.0

func Convert_v1beta1_MaasClusterList_To_v1alpha4_MaasClusterList(in *v1beta1.MaasClusterList, out *MaasClusterList, s conversion.Scope) error

Convert_v1beta1_MaasClusterList_To_v1alpha4_MaasClusterList is an autogenerated conversion function.

func Convert_v1beta1_MaasClusterSpec_To_v1alpha4_MaasClusterSpec added in v0.4.0

func Convert_v1beta1_MaasClusterSpec_To_v1alpha4_MaasClusterSpec(in *v1beta1.MaasClusterSpec, out *MaasClusterSpec, s conversion.Scope) error

Convert_v1beta1_MaasClusterSpec_To_v1alpha4_MaasClusterSpec is an autogenerated conversion function.

func Convert_v1beta1_MaasClusterStatus_To_v1alpha4_MaasClusterStatus added in v0.4.0

func Convert_v1beta1_MaasClusterStatus_To_v1alpha4_MaasClusterStatus(in *v1beta1.MaasClusterStatus, out *MaasClusterStatus, s conversion.Scope) error

Convert_v1beta1_MaasClusterStatus_To_v1alpha4_MaasClusterStatus is an autogenerated conversion function.

func Convert_v1beta1_MaasCluster_To_v1alpha4_MaasCluster added in v0.4.0

func Convert_v1beta1_MaasCluster_To_v1alpha4_MaasCluster(in *v1beta1.MaasCluster, out *MaasCluster, s conversion.Scope) error

Convert_v1beta1_MaasCluster_To_v1alpha4_MaasCluster is an autogenerated conversion function.

func Convert_v1beta1_MaasMachineList_To_v1alpha4_MaasMachineList added in v0.4.0

func Convert_v1beta1_MaasMachineList_To_v1alpha4_MaasMachineList(in *v1beta1.MaasMachineList, out *MaasMachineList, s conversion.Scope) error

Convert_v1beta1_MaasMachineList_To_v1alpha4_MaasMachineList is an autogenerated conversion function.

func Convert_v1beta1_MaasMachineSpec_To_v1alpha4_MaasMachineSpec added in v0.4.0

func Convert_v1beta1_MaasMachineSpec_To_v1alpha4_MaasMachineSpec(in *v1beta1.MaasMachineSpec, out *MaasMachineSpec, s conversion.Scope) error

Convert_v1beta1_MaasMachineSpec_To_v1alpha4_MaasMachineSpec is an autogenerated conversion function.

func Convert_v1beta1_MaasMachineStatus_To_v1alpha4_MaasMachineStatus added in v0.4.0

func Convert_v1beta1_MaasMachineStatus_To_v1alpha4_MaasMachineStatus(in *v1beta1.MaasMachineStatus, out *MaasMachineStatus, s conversion.Scope) error

Convert_v1beta1_MaasMachineStatus_To_v1alpha4_MaasMachineStatus is an autogenerated conversion function.

func Convert_v1beta1_MaasMachineTemplateList_To_v1alpha4_MaasMachineTemplateList added in v0.4.0

func Convert_v1beta1_MaasMachineTemplateList_To_v1alpha4_MaasMachineTemplateList(in *v1beta1.MaasMachineTemplateList, out *MaasMachineTemplateList, s conversion.Scope) error

Convert_v1beta1_MaasMachineTemplateList_To_v1alpha4_MaasMachineTemplateList is an autogenerated conversion function.

func Convert_v1beta1_MaasMachineTemplateResource_To_v1alpha4_MaasMachineTemplateResource added in v0.4.0

func Convert_v1beta1_MaasMachineTemplateResource_To_v1alpha4_MaasMachineTemplateResource(in *v1beta1.MaasMachineTemplateResource, out *MaasMachineTemplateResource, s conversion.Scope) error

Convert_v1beta1_MaasMachineTemplateResource_To_v1alpha4_MaasMachineTemplateResource is an autogenerated conversion function.

func Convert_v1beta1_MaasMachineTemplateSpec_To_v1alpha4_MaasMachineTemplateSpec added in v0.4.0

func Convert_v1beta1_MaasMachineTemplateSpec_To_v1alpha4_MaasMachineTemplateSpec(in *v1beta1.MaasMachineTemplateSpec, out *MaasMachineTemplateSpec, s conversion.Scope) error

Convert_v1beta1_MaasMachineTemplateSpec_To_v1alpha4_MaasMachineTemplateSpec is an autogenerated conversion function.

func Convert_v1beta1_MaasMachineTemplate_To_v1alpha4_MaasMachineTemplate added in v0.4.0

func Convert_v1beta1_MaasMachineTemplate_To_v1alpha4_MaasMachineTemplate(in *v1beta1.MaasMachineTemplate, out *MaasMachineTemplate, s conversion.Scope) error

Convert_v1beta1_MaasMachineTemplate_To_v1alpha4_MaasMachineTemplate is an autogenerated conversion function.

func Convert_v1beta1_MaasMachine_To_v1alpha4_MaasMachine added in v0.4.0

func Convert_v1beta1_MaasMachine_To_v1alpha4_MaasMachine(in *v1beta1.MaasMachine, out *MaasMachine, s conversion.Scope) error

Convert_v1beta1_MaasMachine_To_v1alpha4_MaasMachine is an autogenerated conversion function.

func Convert_v1beta1_Machine_To_v1alpha4_Machine added in v0.4.0

func Convert_v1beta1_Machine_To_v1alpha4_Machine(in *v1beta1.Machine, out *Machine, s conversion.Scope) error

Convert_v1beta1_Machine_To_v1alpha4_Machine is an autogenerated conversion function.

func Convert_v1beta1_Network_To_v1alpha4_Network added in v0.4.0

func Convert_v1beta1_Network_To_v1alpha4_Network(in *v1beta1.Network, out *Network, s conversion.Scope) error

Convert_v1beta1_Network_To_v1alpha4_Network is an autogenerated conversion function.

func RegisterConversions added in v0.4.0

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

Types

type APIEndpoint

type APIEndpoint struct {

	// Host is the hostname on which the API server is serving.
	Host string `json:"host"`

	// Port is the port on which the API server is serving.
	Port int `json:"port"`
}

APIEndpoint represents a reachable Kubernetes API endpoint.

func (*APIEndpoint) DeepCopy

func (in *APIEndpoint) DeepCopy() *APIEndpoint

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

func (*APIEndpoint) DeepCopyInto

func (in *APIEndpoint) DeepCopyInto(out *APIEndpoint)

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

func (APIEndpoint) IsZero

func (in APIEndpoint) IsZero() bool

IsZero returns true if both host and port are zero values.

type MaasCluster

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

	Spec   MaasClusterSpec   `json:"spec,omitempty"`
	Status MaasClusterStatus `json:"status,omitempty"`
}

MaasCluster is the Schema for the maasclusters API

func (*MaasCluster) ConvertFrom added in v0.4.0

func (in *MaasCluster) ConvertFrom(srcRaw conversion.Hub) error

func (*MaasCluster) ConvertTo added in v0.4.0

func (in *MaasCluster) ConvertTo(dstRaw conversion.Hub) error

func (*MaasCluster) DeepCopy

func (in *MaasCluster) DeepCopy() *MaasCluster

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

func (*MaasCluster) DeepCopyInto

func (in *MaasCluster) DeepCopyInto(out *MaasCluster)

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

func (*MaasCluster) DeepCopyObject

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

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

func (*MaasCluster) GetConditions

func (in *MaasCluster) GetConditions() clusterv1.Conditions

func (*MaasCluster) SetConditions

func (in *MaasCluster) SetConditions(conditions clusterv1.Conditions)

type MaasClusterList

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

MaasClusterList contains a list of MaasCluster

func (*MaasClusterList) ConvertFrom added in v0.4.0

func (in *MaasClusterList) ConvertFrom(srcRaw conversion.Hub) error

func (*MaasClusterList) ConvertTo added in v0.4.0

func (in *MaasClusterList) ConvertTo(dstRaw conversion.Hub) error

func (*MaasClusterList) DeepCopy

func (in *MaasClusterList) DeepCopy() *MaasClusterList

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

func (*MaasClusterList) DeepCopyInto

func (in *MaasClusterList) DeepCopyInto(out *MaasClusterList)

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

func (*MaasClusterList) DeepCopyObject

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

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

type MaasClusterSpec

type MaasClusterSpec struct {
	// DNSDomain configures the MaaS domain to create the cluster on (e.g maas)
	// +kubebuilder:validation:MinLength=1
	DNSDomain string `json:"dnsDomain"`

	// ControlPlaneEndpoint represents the endpoint used to communicate with the control plane.
	// +optional
	ControlPlaneEndpoint APIEndpoint `json:"controlPlaneEndpoint"`

	// FailureDomains are not usually defined on the spec.
	// but useful for MaaS since we can limit the domains to these
	// +optional
	FailureDomains []string `json:"failureDomains,omitempty"`
}

MaasClusterSpec defines the desired state of MaasCluster

func (*MaasClusterSpec) DeepCopy

func (in *MaasClusterSpec) DeepCopy() *MaasClusterSpec

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

func (*MaasClusterSpec) DeepCopyInto

func (in *MaasClusterSpec) DeepCopyInto(out *MaasClusterSpec)

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

type MaasClusterStatus

type MaasClusterStatus struct {
	// Ready denotes that the maas cluster (infrastructure) is ready.
	// +kubebuilder:default=false
	Ready bool `json:"ready"`

	// Network represents the network
	Network Network `json:"network,omitempty"`

	// FailureDomains don't mean much in CAPMAAS since it's all local, but we can see how the rest of cluster API
	// will use this if we populate it.
	FailureDomains clusterv1.FailureDomains `json:"failureDomains,omitempty"`

	// Conditions defines current service state of the MaasCluster.
	// +optional
	Conditions clusterv1.Conditions `json:"conditions,omitempty"`
}

MaasClusterStatus defines the observed state of MaasCluster

func (*MaasClusterStatus) DeepCopy

func (in *MaasClusterStatus) DeepCopy() *MaasClusterStatus

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

func (*MaasClusterStatus) DeepCopyInto

func (in *MaasClusterStatus) DeepCopyInto(out *MaasClusterStatus)

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

type MaasMachine

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

	Spec   MaasMachineSpec   `json:"spec,omitempty"`
	Status MaasMachineStatus `json:"status,omitempty"`
}

MaasMachine is the Schema for the maasmachines API

func (*MaasMachine) ConvertFrom added in v0.4.0

func (in *MaasMachine) ConvertFrom(srcRaw conversion.Hub) error

func (*MaasMachine) ConvertTo added in v0.4.0

func (in *MaasMachine) ConvertTo(dstRaw conversion.Hub) error

func (*MaasMachine) DeepCopy

func (in *MaasMachine) DeepCopy() *MaasMachine

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

func (*MaasMachine) DeepCopyInto

func (in *MaasMachine) DeepCopyInto(out *MaasMachine)

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

func (*MaasMachine) DeepCopyObject

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

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

func (*MaasMachine) GetConditions

func (c *MaasMachine) GetConditions() clusterv1.Conditions

func (*MaasMachine) SetConditions

func (c *MaasMachine) SetConditions(conditions clusterv1.Conditions)

type MaasMachineList

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

MaasMachineList contains a list of MaasMachine

func (*MaasMachineList) ConvertFrom added in v0.4.0

func (in *MaasMachineList) ConvertFrom(srcRaw conversion.Hub) error

func (*MaasMachineList) ConvertTo added in v0.4.0

func (in *MaasMachineList) ConvertTo(dstRaw conversion.Hub) error

func (*MaasMachineList) DeepCopy

func (in *MaasMachineList) DeepCopy() *MaasMachineList

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

func (*MaasMachineList) DeepCopyInto

func (in *MaasMachineList) DeepCopyInto(out *MaasMachineList)

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

func (*MaasMachineList) DeepCopyObject

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

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

type MaasMachineSpec

type MaasMachineSpec struct {

	// FailureDomain is the failure domain the machine will be created in.
	// Must match a key in the FailureDomains map stored on the cluster object.
	// +optional
	FailureDomain *string `json:"failureDomain,omitempty"`

	// SystemID will be the MaaS machine ID
	// +optional
	SystemID *string `json:"systemID,omitempty"`

	// ProviderID will be the name in ProviderID format (maas://<zone>/system_id)
	// +optional
	ProviderID *string `json:"providerID,omitempty"`

	// ResourcePool will be the MAAS Machine resourcepool
	// +optional
	ResourcePool *string `json:"resourcePool,omitempty"`

	// MinCPU minimum number of CPUs
	// +kubebuilder:validation:Minimum=0
	MinCPU *int `json:"minCPU"`

	// MinMemoryInMB minimum memory in MB
	// +kubebuilder:validation:Minimum=0
	MinMemoryInMB *int `json:"minMemory"`

	// Image will be the MaaS image id
	// +kubebuilder:validation:MinLength=1
	Image string `json:"image"`
}

MaasMachineSpec defines the desired state of MaasMachine

func (*MaasMachineSpec) DeepCopy

func (in *MaasMachineSpec) DeepCopy() *MaasMachineSpec

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

func (*MaasMachineSpec) DeepCopyInto

func (in *MaasMachineSpec) DeepCopyInto(out *MaasMachineSpec)

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

type MaasMachineStatus

type MaasMachineStatus struct {

	// Ready denotes that the machine (maas container) is ready
	// +kubebuilder:default=false
	Ready bool `json:"ready"`

	// MachineState is the state of this MAAS machine.
	MachineState *MachineState `json:"machineState,omitempty"`

	// MachinePowered is if the machine is "Powered" on
	MachinePowered bool `json:"machinePowered,omitempty"`

	// Hostname is the actual MaaS hostname
	Hostname *string `json:"hostname,omitempty"`

	// DNSAttached specifies whether the DNS record contains the IP of this machine
	DNSAttached bool `json:"dnsAttached,omitempty"`

	// Addresses contains the associated addresses for the maas machine.
	Addresses []clusterv1.MachineAddress `json:"addresses,omitempty"`

	// Conditions defines current service state of the MaasMachine.
	Conditions clusterv1.Conditions `json:"conditions,omitempty"`

	// FailureReason will be set in the event that there is a terminal problem
	// reconciling the Machine and will contain a succinct value suitable
	// for machine interpretation.
	FailureReason *errors.MachineStatusError `json:"failureReason,omitempty"`

	// FailureMessage will be set in the event that there is a terminal problem
	// reconciling the Machine and will contain a more verbose string suitable
	// for logging and human consumption.
	FailureMessage *string `json:"failureMessage,omitempty"`
}

MaasMachineStatus defines the observed state of MaasMachine

func (*MaasMachineStatus) DeepCopy

func (in *MaasMachineStatus) DeepCopy() *MaasMachineStatus

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

func (*MaasMachineStatus) DeepCopyInto

func (in *MaasMachineStatus) DeepCopyInto(out *MaasMachineStatus)

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

type MaasMachineTemplate

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

	Spec MaasMachineTemplateSpec `json:"spec,omitempty"`
}

MaasMachineTemplate is the Schema for the maasmachinetemplates API

func (*MaasMachineTemplate) ConvertFrom added in v0.4.0

func (in *MaasMachineTemplate) ConvertFrom(srcRaw conversion.Hub) error

func (*MaasMachineTemplate) ConvertTo added in v0.4.0

func (in *MaasMachineTemplate) ConvertTo(dstRaw conversion.Hub) error

func (*MaasMachineTemplate) DeepCopy

func (in *MaasMachineTemplate) DeepCopy() *MaasMachineTemplate

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

func (*MaasMachineTemplate) DeepCopyInto

func (in *MaasMachineTemplate) DeepCopyInto(out *MaasMachineTemplate)

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

func (*MaasMachineTemplate) DeepCopyObject

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

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

type MaasMachineTemplateList

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

MaasMachineTemplateList contains a list of MaasMachineTemplate

func (*MaasMachineTemplateList) ConvertFrom added in v0.4.0

func (in *MaasMachineTemplateList) ConvertFrom(srcRaw conversion.Hub) error

func (*MaasMachineTemplateList) ConvertTo added in v0.4.0

func (in *MaasMachineTemplateList) ConvertTo(dstRaw conversion.Hub) error

func (*MaasMachineTemplateList) DeepCopy

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

func (*MaasMachineTemplateList) DeepCopyInto

func (in *MaasMachineTemplateList) DeepCopyInto(out *MaasMachineTemplateList)

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

func (*MaasMachineTemplateList) DeepCopyObject

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

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

type MaasMachineTemplateResource

type MaasMachineTemplateResource struct {
	// Spec is the specification of the desired behavior of the machine.
	Spec MaasMachineSpec `json:"spec"`
}

MaasMachineTemplateResource describes the data needed to create a MaasMachine from a template

func (*MaasMachineTemplateResource) DeepCopy

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

func (*MaasMachineTemplateResource) DeepCopyInto

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

type MaasMachineTemplateSpec

type MaasMachineTemplateSpec struct {
	Template MaasMachineTemplateResource `json:"template"`
}

MaasMachineTemplateSpec defines the desired state of MaasMachineTemplate

func (*MaasMachineTemplateSpec) DeepCopy

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

func (*MaasMachineTemplateSpec) DeepCopyInto

func (in *MaasMachineTemplateSpec) DeepCopyInto(out *MaasMachineTemplateSpec)

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

type Machine

type Machine struct {
	ID string

	// Hostname is the hostname
	Hostname string

	// The current state of the machine.
	State MachineState

	// The current state of the machine.
	Powered bool

	// The AZ of the machine
	AvailabilityZone string

	// Addresses contains the MAAS Machine associated addresses.
	Addresses []clusterv1.MachineAddress
}

Instance describes an MAAS Machine.

func (*Machine) DeepCopy

func (in *Machine) DeepCopy() *Machine

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

func (*Machine) DeepCopyInto

func (in *Machine) DeepCopyInto(out *Machine)

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

type MachineState

type MachineState string

MachineState describes the state of an MAAS Machine.

type Network

type Network struct {
	// DNSName is the Kubernetes api server name
	DNSName string `json:"dnsName,omitempty"`
}

Network encapsulates the Cluster Network

func (*Network) DeepCopy

func (in *Network) DeepCopy() *Network

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

func (*Network) DeepCopyInto

func (in *Network) DeepCopyInto(out *Network)

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