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 ¶
- Constants
- Variables
- type APIEndpoint
- type MetalStackCluster
- func (in *MetalStackCluster) DeepCopy() *MetalStackCluster
- func (in *MetalStackCluster) DeepCopyInto(out *MetalStackCluster)
- func (in *MetalStackCluster) DeepCopyObject() runtime.Object
- func (c *MetalStackCluster) GetClusterID() string
- func (c *MetalStackCluster) GetConditions() clusterv1.Conditions
- func (c *MetalStackCluster) SetConditions(conditions clusterv1.Conditions)
- type MetalStackClusterList
- type MetalStackClusterSpec
- type MetalStackClusterStatus
- type MetalStackMachine
- func (in *MetalStackMachine) DeepCopy() *MetalStackMachine
- func (in *MetalStackMachine) DeepCopyInto(out *MetalStackMachine)
- func (in *MetalStackMachine) DeepCopyObject() runtime.Object
- func (c *MetalStackMachine) GetConditions() clusterv1.Conditions
- func (c *MetalStackMachine) SetConditions(conditions clusterv1.Conditions)
- type MetalStackMachineList
- type MetalStackMachineSpec
- type MetalStackMachineStatus
- type MetalStackMachineTemplate
- type MetalStackMachineTemplateList
- type MetalStackMachineTemplateResource
- type MetalStackMachineTemplateSpec
Constants ¶
const ( // ClusterFinalizer allows to clean up resources associated with before removing it from the apiserver. ClusterFinalizer = "metal-stack.infrastructure.cluster.x-k8s.io/cluster" TagInfraClusterResource = "metal-stack.infrastructure.cluster.x-k8s.io/cluster-resource" ClusterControlPlaneEndpointDefaultPort = 443 ClusterControlPlaneIPEnsured clusterv1.ConditionType = "ClusterControlPlaneIPEnsured" ClusterPaused clusterv1.ConditionType = clusterv1.PausedV1Beta2Condition )
const ( // MachineFinalizer allows to clean up resources associated with before removing it from the apiserver. MachineFinalizer = "metal-stack.infrastructure.cluster.x-k8s.io/machine" TagInfraMachineResource = "metal-stack.infrastructure.cluster.x-k8s.io/machine-resource" ProviderMachineCreated clusterv1.ConditionType = "MachineCreated" ProviderMachineReady clusterv1.ConditionType = "MachineReady" ProviderMachineHealthy clusterv1.ConditionType = "MachineHealthy" ProviderMachinePaused clusterv1.ConditionType = clusterv1.PausedV1Beta2Condition )
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 )
var (
TagControlPlanePurpose = tag.New("metal-stack.infrastructure.cluster.x-k8s.io/purpose", "control-plane")
)
Functions ¶
This section is empty.
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.
type MetalStackCluster ¶
type MetalStackCluster struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec MetalStackClusterSpec `json:"spec,omitempty"`
Status MetalStackClusterStatus `json:"status,omitempty"`
}
MetalStackCluster is the Schema for the metalstackclusters API.
func (*MetalStackCluster) DeepCopy ¶
func (in *MetalStackCluster) DeepCopy() *MetalStackCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetalStackCluster.
func (*MetalStackCluster) DeepCopyInto ¶
func (in *MetalStackCluster) DeepCopyInto(out *MetalStackCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MetalStackCluster) DeepCopyObject ¶
func (in *MetalStackCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MetalStackCluster) GetClusterID ¶ added in v0.3.1
func (c *MetalStackCluster) GetClusterID() string
func (*MetalStackCluster) GetConditions ¶
func (c *MetalStackCluster) GetConditions() clusterv1.Conditions
GetConditions returns the list of conditions.
func (*MetalStackCluster) SetConditions ¶
func (c *MetalStackCluster) SetConditions(conditions clusterv1.Conditions)
SetConditions will set the given conditions.
type MetalStackClusterList ¶
type MetalStackClusterList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []MetalStackCluster `json:"items"`
}
MetalStackClusterList contains a list of MetalStackCluster.
func (*MetalStackClusterList) DeepCopy ¶
func (in *MetalStackClusterList) DeepCopy() *MetalStackClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetalStackClusterList.
func (*MetalStackClusterList) DeepCopyInto ¶
func (in *MetalStackClusterList) DeepCopyInto(out *MetalStackClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MetalStackClusterList) DeepCopyObject ¶
func (in *MetalStackClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MetalStackClusterSpec ¶
type MetalStackClusterSpec struct {
// ControlPlaneEndpoint represents the endpoint used to communicate with the control plane.
// +optional
ControlPlaneEndpoint APIEndpoint `json:"controlPlaneEndpoint,omitempty"`
// ProjectID is the project id of the project in metal-stack in which the associated metal-stack resources are created.
ProjectID string `json:"projectID"`
// NodeNetworkID is the network ID in metal-stack in which the worker nodes and the firewall of the cluster are placed.
NodeNetworkID string `json:"nodeNetworkID"`
// ControlPlaneIP is the ip address in metal-stack on which the control plane will be exposed.
// If this ip and the control plane endpoint are not provided, an ephemeral ip will automatically be acquired during reconcile.
// Static ip addresses will not be deleted.
// +optional
ControlPlaneIP *string `json:"controlPlaneIP,omitempty"`
// Partition is the data center partition in which the resources are created.
Partition string `json:"partition"`
}
MetalStackClusterSpec defines the desired state of MetalStackCluster.
func (*MetalStackClusterSpec) DeepCopy ¶
func (in *MetalStackClusterSpec) DeepCopy() *MetalStackClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetalStackClusterSpec.
func (*MetalStackClusterSpec) DeepCopyInto ¶
func (in *MetalStackClusterSpec) DeepCopyInto(out *MetalStackClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetalStackClusterStatus ¶
type MetalStackClusterStatus struct {
// Ready denotes that the cluster is ready.
// +kubebuilder:default=false
Ready bool `json:"ready"`
// FailureReason indicates that there is a fatal problem reconciling the
// state, and will be set to a token value suitable for
// programmatic interpretation.
// +optional
FailureReason *capierrors.ClusterStatusError `json:"failureReason,omitempty"`
// FailureMessage indicates that there is a fatal problem reconciling the
// state, and will be set to a descriptive error message.
// +optional
FailureMessage *string `json:"failureMessage,omitempty"`
// Conditions defines current service state of the MetalStackCluster.
// +optional
Conditions clusterv1.Conditions `json:"conditions,omitempty"`
}
MetalStackClusterStatus defines the observed state of MetalStackCluster.
func (*MetalStackClusterStatus) DeepCopy ¶
func (in *MetalStackClusterStatus) DeepCopy() *MetalStackClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetalStackClusterStatus.
func (*MetalStackClusterStatus) DeepCopyInto ¶
func (in *MetalStackClusterStatus) DeepCopyInto(out *MetalStackClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetalStackMachine ¶
type MetalStackMachine struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec MetalStackMachineSpec `json:"spec,omitempty"`
Status MetalStackMachineStatus `json:"status,omitempty"`
}
MetalStackMachine is the Schema for the metalstackmachines API.
func (*MetalStackMachine) DeepCopy ¶
func (in *MetalStackMachine) DeepCopy() *MetalStackMachine
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetalStackMachine.
func (*MetalStackMachine) DeepCopyInto ¶
func (in *MetalStackMachine) DeepCopyInto(out *MetalStackMachine)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MetalStackMachine) DeepCopyObject ¶
func (in *MetalStackMachine) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*MetalStackMachine) GetConditions ¶
func (c *MetalStackMachine) GetConditions() clusterv1.Conditions
GetConditions returns the list of conditions.
func (*MetalStackMachine) SetConditions ¶
func (c *MetalStackMachine) SetConditions(conditions clusterv1.Conditions)
SetConditions will set the given conditions.
type MetalStackMachineList ¶
type MetalStackMachineList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []MetalStackMachine `json:"items"`
}
MetalStackMachineList contains a list of MetalStackMachine.
func (*MetalStackMachineList) DeepCopy ¶
func (in *MetalStackMachineList) DeepCopy() *MetalStackMachineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetalStackMachineList.
func (*MetalStackMachineList) DeepCopyInto ¶
func (in *MetalStackMachineList) DeepCopyInto(out *MetalStackMachineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MetalStackMachineList) DeepCopyObject ¶
func (in *MetalStackMachineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MetalStackMachineSpec ¶
type MetalStackMachineSpec struct {
// ProviderID points to the metal-stack machine ID.
// +optional
ProviderID string `json:"providerID"`
// Image is the operating system to deploy on the machine
Image string `json:"image"`
// Size is the size of the machine
Size string `json:"size"`
}
MetalStackMachineSpec defines the desired state of MetalStackMachine.
func (*MetalStackMachineSpec) DeepCopy ¶
func (in *MetalStackMachineSpec) DeepCopy() *MetalStackMachineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetalStackMachineSpec.
func (*MetalStackMachineSpec) DeepCopyInto ¶
func (in *MetalStackMachineSpec) DeepCopyInto(out *MetalStackMachineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetalStackMachineStatus ¶
type MetalStackMachineStatus struct {
// Ready denotes that the machine is ready.
// +kubebuilder:default=false
Ready bool `json:"ready"`
// FailureReason indicates that there is a fatal problem reconciling the
// state, and will be set to a token value suitable for
// programmatic interpretation.
// +optional
FailureReason *capierrors.MachineStatusError `json:"failureReason,omitempty"`
// FailureMessage indicates that there is a fatal problem reconciling the
// state, and will be set to a descriptive error message.
// +optional
FailureMessage *string `json:"failureMessage,omitempty"`
// Conditions defines current service state of the MetalStackMachine.
// +optional
Conditions clusterv1.Conditions `json:"conditions,omitempty"`
// MachineAddresses contains all host names, external or internal IP addresses and external or internal DNS names.
Addresses clusterv1.MachineAddresses `json:"addresses,omitempty"`
}
MetalStackMachineStatus defines the observed state of MetalStackMachine.
func (*MetalStackMachineStatus) DeepCopy ¶
func (in *MetalStackMachineStatus) DeepCopy() *MetalStackMachineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetalStackMachineStatus.
func (*MetalStackMachineStatus) DeepCopyInto ¶
func (in *MetalStackMachineStatus) DeepCopyInto(out *MetalStackMachineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetalStackMachineTemplate ¶
type MetalStackMachineTemplate struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec MetalStackMachineTemplateSpec `json:"spec,omitempty"`
}
MetalStackMachineTemplate is the Schema for the inframachinetemplates API.
func (*MetalStackMachineTemplate) DeepCopy ¶
func (in *MetalStackMachineTemplate) DeepCopy() *MetalStackMachineTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetalStackMachineTemplate.
func (*MetalStackMachineTemplate) DeepCopyInto ¶
func (in *MetalStackMachineTemplate) DeepCopyInto(out *MetalStackMachineTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MetalStackMachineTemplate) DeepCopyObject ¶
func (in *MetalStackMachineTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MetalStackMachineTemplateList ¶
type MetalStackMachineTemplateList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []MetalStackMachineTemplate `json:"items"`
}
MetalStackMachineTemplateList contains a list of MetalStackMachineTemplate.
func (*MetalStackMachineTemplateList) DeepCopy ¶
func (in *MetalStackMachineTemplateList) DeepCopy() *MetalStackMachineTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetalStackMachineTemplateList.
func (*MetalStackMachineTemplateList) DeepCopyInto ¶
func (in *MetalStackMachineTemplateList) DeepCopyInto(out *MetalStackMachineTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MetalStackMachineTemplateList) DeepCopyObject ¶
func (in *MetalStackMachineTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MetalStackMachineTemplateResource ¶
type MetalStackMachineTemplateResource struct {
Spec MetalStackMachineSpec `json:"spec"`
}
MetalStackMachineTemplateResource describes the data needed to create a metal-stack machine from a template.
func (*MetalStackMachineTemplateResource) DeepCopy ¶
func (in *MetalStackMachineTemplateResource) DeepCopy() *MetalStackMachineTemplateResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetalStackMachineTemplateResource.
func (*MetalStackMachineTemplateResource) DeepCopyInto ¶
func (in *MetalStackMachineTemplateResource) DeepCopyInto(out *MetalStackMachineTemplateResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetalStackMachineTemplateSpec ¶
type MetalStackMachineTemplateSpec struct {
Template MetalStackMachine `json:"template"`
}
MetalStackMachineTemplateSpec defines the desired state of MetalStackMachineTemplateSpec.
func (*MetalStackMachineTemplateSpec) DeepCopy ¶
func (in *MetalStackMachineTemplateSpec) DeepCopy() *MetalStackMachineTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetalStackMachineTemplateSpec.
func (*MetalStackMachineTemplateSpec) DeepCopyInto ¶
func (in *MetalStackMachineTemplateSpec) DeepCopyInto(out *MetalStackMachineTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.