Documentation
¶
Overview ¶
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:defaulter-gen=TypeMeta +groupName=karpenter.sh
Index ¶
- Constants
- Variables
- type Machine
- func (in *Machine) DeepCopy() *Machine
- func (in *Machine) DeepCopyInto(out *Machine)
- func (in *Machine) DeepCopyObject() runtime.Object
- func (in *Machine) GetConditions() apis.Conditions
- func (in *Machine) SetConditions(conditions apis.Conditions)
- func (in *Machine) StatusConditions() apis.ConditionManager
- type MachineList
- type MachineSpec
- type MachineStatus
- type ResourceRequirements
Constants ¶
const (
Group = "karpenter.sh"
)
Variables ¶
var ( MachineCreated apis.ConditionType MachineRegistered apis.ConditionType MachineInitialized apis.ConditionType MachineHealthy apis.ConditionType )
var ( SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: "v1alpha1"} SchemeBuilder = runtime.NewSchemeBuilder(func(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Machine{}, &MachineList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil }) )
Functions ¶
This section is empty.
Types ¶
type Machine ¶
type Machine struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec MachineSpec `json:"spec,omitempty"`
Status MachineStatus `json:"status,omitempty"`
}
Machine is the Schema for the Machines API +kubebuilder:object:root=true +kubebuilder:resource:path=machines,scope=Cluster,categories=karpenter +kubebuilder:subresource:status
func (*Machine) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Machine.
func (*Machine) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Machine) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Machine) GetConditions ¶
func (in *Machine) GetConditions() apis.Conditions
func (*Machine) SetConditions ¶
func (in *Machine) SetConditions(conditions apis.Conditions)
func (*Machine) StatusConditions ¶
func (in *Machine) StatusConditions() apis.ConditionManager
type MachineList ¶
type MachineList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Machine `json:"items"`
}
MachineList contains a list of Provisioner +kubebuilder:object:root=true
func (*MachineList) DeepCopy ¶
func (in *MachineList) DeepCopy() *MachineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineList.
func (*MachineList) DeepCopyInto ¶
func (in *MachineList) DeepCopyInto(out *MachineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineList) DeepCopyObject ¶
func (in *MachineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineSpec ¶
type MachineSpec struct {
// Taints will be applied to the machine's node.
// +optional
Taints []v1.Taint `json:"taints,omitempty"`
// StartupTaints are taints that are applied to nodes upon startup which are expected to be removed automatically
// within a short period of time, typically by a DaemonSet that tolerates the taint. These are commonly used by
// daemonsets to allow initialization and enforce startup ordering. StartupTaints are ignored for provisioning
// purposes in that pods are not required to tolerate a StartupTaint in order to have nodes provisioned for them.
// +optional
StartupTaints []v1.Taint `json:"startupTaints,omitempty"`
// Requirements are layered with Labels and applied to every node.
Requirements []v1.NodeSelectorRequirement `json:"requirements,omitempty"`
// Resources models the resource requirements for the Machine to launch
Resources ResourceRequirements `json:"resources,omitempty"`
// Kubelet are options passed to the kubelet when provisioning nodes
// +optional
Kubelet *v1alpha5.KubeletConfiguration `json:"kubelet,omitempty"`
// MachineTemplateRef is a reference to an object that defines provider specific configuration
MachineTemplateRef *v1.ObjectReference `json:"machineTemplateRef,omitempty"`
}
MachineSpec describes the desired state of the Machine
func (*MachineSpec) DeepCopy ¶
func (in *MachineSpec) DeepCopy() *MachineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineSpec.
func (*MachineSpec) DeepCopyInto ¶
func (in *MachineSpec) DeepCopyInto(out *MachineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineStatus ¶
type MachineStatus struct {
// ProviderID of the corresponding node object
// +optional
ProviderID string `json:"providerID,omitempty"`
// Allocatable is the allocatable capacity of the machine. This value resolves
// to the inflight capacity until the node is launched, at which point, it becomes the
// node object's allocatable
// +optional
Allocatable v1.ResourceList `json:"allocatable,omitempty"`
// Conditions contains signals for health and readiness
// +optional
Conditions apis.Conditions `json:"conditions,omitempty"`
}
MachineStatus defines the observed state of Machine
func (*MachineStatus) DeepCopy ¶
func (in *MachineStatus) DeepCopy() *MachineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineStatus.
func (*MachineStatus) DeepCopyInto ¶
func (in *MachineStatus) DeepCopyInto(out *MachineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceRequirements ¶
type ResourceRequirements struct {
// Requests describes the minimum required resources for the Machine to launch
// +optional
Requests v1.ResourceList `json:"requests,omitempty"`
}
ResourceRequirements models the required resources for the Machine to launch Ths will eventually be transformed into v1.ResourceRequirements when we support resources.limits
func (*ResourceRequirements) DeepCopy ¶
func (in *ResourceRequirements) DeepCopy() *ResourceRequirements
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceRequirements.
func (*ResourceRequirements) DeepCopyInto ¶
func (in *ResourceRequirements) DeepCopyInto(out *ResourceRequirements)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.