Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the clustertemplates v1alpha1 API group. +kubebuilder:object:generate=true +groupName=edge-orchestrator.intel.com
Index ¶
- Constants
- Variables
- type ClusterNetwork
- type ClusterTemplate
- func (in *ClusterTemplate) DeepCopy() *ClusterTemplate
- func (in *ClusterTemplate) DeepCopyInto(out *ClusterTemplate)
- func (in *ClusterTemplate) DeepCopyObject() runtime.Object
- func (c *ClusterTemplate) GetConditions() clusterv1.Conditions
- func (c *ClusterTemplate) GetV1Beta1Conditions() clusterv1beta2.Conditions
- func (c *ClusterTemplate) GetV1Beta2Conditions() []metav1.Condition
- func (c *ClusterTemplate) SetConditions(conditions clusterv1.Conditions)
- func (c *ClusterTemplate) SetV1Beta1Conditions(conditions clusterv1beta2.Conditions)
- func (c *ClusterTemplate) SetV1Beta2Conditions(conditions []metav1.Condition)
- type ClusterTemplateList
- type ClusterTemplateSpec
- type ClusterTemplateStatus
- type ClusterTemplateV1Beta2Status
- type NetworkRanges
Constants ¶
const ( ClusterTemplateFinalizer = "clustertemplates.edge-orchestrator.intel.com/finalizer" // PrerequisitesCondition documents the status of the CAPI Resources prerequisites installation. PrerequisitesCondition clusterv1.ConditionType = "PrerequisitesInstalled" // ControlPlaneTemplateCondition documents the status of the ControlPlaneTemplate creation. ControlPlaneTemplateCondition clusterv1.ConditionType = "ControlPlaneTemplateCreated" // ControlPlaneMachineTemplateCondition documents the status of the ControlPlaneMachineTemplate creation. ControlPlaneMachineTemplateCondition clusterv1.ConditionType = "ControlPlaneMachineTemplateCreated" // ProviderClusterTemplateCondition documents the status of the <infrastructure provider>ClusterTemplate creation. InfraProviderClusterTemplateCondition clusterv1.ConditionType = "InfraProviderClusterTemplateCreated" // ClusterClassCondition documents the status of the ClusterClassCondition creation. ClusterClassCondition clusterv1.ConditionType = "ClusterClassCreated" )
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "edge-orchestrator.intel.com", 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 ClusterNetwork ¶
type ClusterNetwork struct {
// The network ranges from which service VIPs are allocated.
// +optional
Services *NetworkRanges `json:"services,omitempty" yaml:"services,omitempty"`
// The network ranges from which Pod networks are allocated.
// +optional
Pods *NetworkRanges `json:"pods,omitempty" yaml:"pods,omitempty"`
}
ClusterNetwork specifies the different networking parameters for a cluster.
func (*ClusterNetwork) DeepCopy ¶
func (in *ClusterNetwork) DeepCopy() *ClusterNetwork
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterNetwork.
func (*ClusterNetwork) DeepCopyInto ¶
func (in *ClusterNetwork) DeepCopyInto(out *ClusterNetwork)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterTemplate ¶
type ClusterTemplate struct {
metav1.TypeMeta `json:",inline" yaml:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
Spec ClusterTemplateSpec `json:"spec,omitempty" yaml:"spec,omitempty"`
Status ClusterTemplateStatus `json:"status,omitempty" yaml:"status,omitempty"`
}
ClusterTemplate is the Schema for the clustertemplates API.
func (*ClusterTemplate) DeepCopy ¶
func (in *ClusterTemplate) DeepCopy() *ClusterTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTemplate.
func (*ClusterTemplate) DeepCopyInto ¶
func (in *ClusterTemplate) DeepCopyInto(out *ClusterTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterTemplate) DeepCopyObject ¶
func (in *ClusterTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterTemplate) GetConditions ¶
func (c *ClusterTemplate) GetConditions() clusterv1.Conditions
GetConditions returns the set of conditions for this object.
func (*ClusterTemplate) GetV1Beta1Conditions ¶ added in v2.2.11
func (c *ClusterTemplate) GetV1Beta1Conditions() clusterv1beta2.Conditions
GetV1Beta1Conditions returns the v1beta1-style conditions for deprecated CAPI helpers.
func (*ClusterTemplate) GetV1Beta2Conditions ¶
func (c *ClusterTemplate) GetV1Beta2Conditions() []metav1.Condition
GetV1Beta2Conditions returns the set of conditions for this object.
func (*ClusterTemplate) SetConditions ¶
func (c *ClusterTemplate) SetConditions(conditions clusterv1.Conditions)
SetConditions sets the conditions on this object.
func (*ClusterTemplate) SetV1Beta1Conditions ¶ added in v2.2.11
func (c *ClusterTemplate) SetV1Beta1Conditions(conditions clusterv1beta2.Conditions)
SetV1Beta1Conditions stores v1beta1-style conditions emitted by deprecated CAPI helpers.
func (*ClusterTemplate) SetV1Beta2Conditions ¶
func (c *ClusterTemplate) SetV1Beta2Conditions(conditions []metav1.Condition)
SetV1Beta2Conditions sets conditions for an API object.
type ClusterTemplateList ¶
type ClusterTemplateList struct {
metav1.TypeMeta `json:",inline" yaml:",inline"`
metav1.ListMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`
Items []ClusterTemplate `json:"items" yaml:"items"`
}
ClusterTemplateList contains a list of ClusterTemplate.
func (*ClusterTemplateList) DeepCopy ¶
func (in *ClusterTemplateList) DeepCopy() *ClusterTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTemplateList.
func (*ClusterTemplateList) DeepCopyInto ¶
func (in *ClusterTemplateList) DeepCopyInto(out *ClusterTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterTemplateList) DeepCopyObject ¶
func (in *ClusterTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterTemplateSpec ¶
type ClusterTemplateSpec struct {
// +optional
// +kubebuilder:validation:Enum=kubeadm;k3s
// +kubebuilder:default=k3s
ControlPlaneProviderType string `json:"controlPlaneProviderType,omitempty" yaml:"controlPlaneProviderType"`
// +optional
// +kubebuilder:validation:Enum=intel;docker
InfraProviderType string `json:"infraProviderType,omitempty" yaml:"infraProviderType,omitempty"`
// +required
KubernetesVersion string `json:"kubernetesVersion,omitempty" yaml:"kubernetesVersion"`
// +optional
ClusterConfiguration string `json:"clusterConfiguration,omitempty" yaml:"clusterConfiguration,omitempty"`
// +optional
ClusterNetwork ClusterNetwork `json:"clusterNetwork,omitempty" yaml:"clusterNetwork,omitempty"`
// +optional
ClusterLabels map[string]string `json:"clusterLabels,omitempty" yaml:"clusterLabels,omitempty"`
}
ClusterTemplateSpec defines the desired state of ClusterTemplate.
func (*ClusterTemplateSpec) DeepCopy ¶
func (in *ClusterTemplateSpec) DeepCopy() *ClusterTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTemplateSpec.
func (*ClusterTemplateSpec) DeepCopyInto ¶
func (in *ClusterTemplateSpec) DeepCopyInto(out *ClusterTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterTemplateStatus ¶
type ClusterTemplateStatus struct {
// +optional
Ready bool `json:"ready" yaml:"ready"`
ClusterClassRef *corev1.ObjectReference `json:"clusterClassRef,omitempty" yaml:"clusterClassRef,omitempty"`
// v1beta2 groups all the fields that will be added or modified in ClusterTemplate's status with the V1Beta2 version.
// +optional
V1Beta2 *ClusterTemplateV1Beta2Status `json:"v1beta2,omitempty" yaml:"v1beta2,omitempty"`
Conditions clusterv1.Conditions `json:"conditions,omitempty" yaml:"conditions,omitempty"`
}
ClusterTemplateStatus defines the observed state of ClusterTemplate.
func (*ClusterTemplateStatus) DeepCopy ¶
func (in *ClusterTemplateStatus) DeepCopy() *ClusterTemplateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTemplateStatus.
func (*ClusterTemplateStatus) DeepCopyInto ¶
func (in *ClusterTemplateStatus) DeepCopyInto(out *ClusterTemplateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterTemplateV1Beta2Status ¶
type ClusterTemplateV1Beta2Status struct {
// conditions represents the observations of an ClusterTemplate's current state.
// Known condition types are Ready, Provisioned, BootstrapExecSucceeded, Deleting, Paused.
// +optional
// +listType=map
// +listMapKey=type
// +kubebuilder:validation:MaxItems=32
Conditions []metav1.Condition `json:"conditions,omitempty" yaml:"conditions,omitempty"`
}
ClusterTemplateV1Beta2Status groups all the fields that will be added or modified in ClusterTemplate with the V1Beta2 version. See https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20240916-improve-status-in-CAPI-resources.md for more context.
func (*ClusterTemplateV1Beta2Status) DeepCopy ¶
func (in *ClusterTemplateV1Beta2Status) DeepCopy() *ClusterTemplateV1Beta2Status
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTemplateV1Beta2Status.
func (*ClusterTemplateV1Beta2Status) DeepCopyInto ¶
func (in *ClusterTemplateV1Beta2Status) DeepCopyInto(out *ClusterTemplateV1Beta2Status)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkRanges ¶
type NetworkRanges struct {
CIDRBlocks []string `json:"cidrBlocks" yaml:"cidrBlocks"`
}
NetworkRanges represents ranges of network addresses.
func (*NetworkRanges) DeepCopy ¶
func (in *NetworkRanges) DeepCopy() *NetworkRanges
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkRanges.
func (*NetworkRanges) DeepCopyInto ¶
func (in *NetworkRanges) DeepCopyInto(out *NetworkRanges)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NetworkRanges) String ¶
func (n NetworkRanges) String() string