Documentation ¶
Overview ¶
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:defaulter-gen=TypeMeta +groupName=karpenter.sh
Index ¶
- Constants
- Variables
- func IsRestrictedLabel(key string) error
- func IsRestrictedNodeLabel(key string) bool
- func ProviderAnnotation(p *Provider) map[string]string
- func ValidateRequirement(requirement v1.NodeSelectorRequirement) error
- type Consolidation
- type KubeletConfiguration
- type Limits
- 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) SetDefaults(_ context.Context)
- func (in *Machine) StatusConditions() apis.ConditionManager
- func (in *Machine) Validate(_ context.Context) *apis.FieldError
- type MachineList
- type MachineSpec
- type MachineStatus
- type Provider
- type ProviderRef
- type Provisioner
- func (in *Provisioner) DeepCopy() *Provisioner
- func (in *Provisioner) DeepCopyInto(out *Provisioner)
- func (in *Provisioner) DeepCopyObject() runtime.Object
- func (p *Provisioner) GetConditions() apis.Conditions
- func (p *Provisioner) SetConditions(conditions apis.Conditions)
- func (p *Provisioner) SetDefaults(ctx context.Context)
- func (p *Provisioner) StatusConditions() apis.ConditionManager
- func (p *Provisioner) SupportedVerbs() []admissionregistrationv1.OperationType
- func (p *Provisioner) Validate(ctx context.Context) (errs *apis.FieldError)
- type ProvisionerList
- type ProvisionerSpec
- type ProvisionerStatus
- type ResourceRequirements
Constants ¶
const ( ArchitectureAmd64 = "amd64" ArchitectureArm64 = "arm64" CapacityTypeSpot = "spot" CapacityTypeOnDemand = "on-demand" )
Well known labels and resources
const ( ProvisionerNameLabelKey = Group + "/provisioner-name" MachineNameLabelKey = Group + "/machine-name" ManagedByLabelKey = Group + "/managed-by" LabelNodeInitialized = Group + "/initialized" LabelCapacityType = Group + "/capacity-type" )
Karpenter specific domains and labels
const ( DoNotEvictPodAnnotationKey = Group + "/do-not-evict" DoNotConsolidateNodeAnnotationKey = Group + "/do-not-consolidate" EmptinessTimestampAnnotationKey = Group + "/emptiness-timestamp" VoluntaryDisruptionAnnotationKey = Group + "/voluntary-disruption" MachineLinkedAnnotationKey = Group + "/linked" ProviderCompatabilityAnnotationKey = CompatabilityGroup + "/provider" // Karpenter specific annotation values VoluntaryDisruptionDriftedAnnotationValue = "drifted" )
Karpenter specific annotations
const ( Group = "karpenter.sh" ExtensionsGroup = "extensions." + Group CompatabilityGroup = "compatibility." + Group TestingGroup = "testing." + Group // Exclusively used for labeling/discovery in testing )
const ( // Active is a condition implemented by all resources. It indicates that the // controller is able to take actions: it's correctly configured, can make // necessary API calls, and isn't disabled. Active apis.ConditionType = "Active" )
const (
TerminationFinalizer = Group + "/termination"
)
Karpenter specific finalizers
Variables ¶
var ( // RestrictedLabelDomains are either prohibited by the kubelet or reserved by karpenter RestrictedLabelDomains = sets.NewString( "kubernetes.io", "k8s.io", Group, ) // LabelDomainExceptions are sub-domains of the RestrictedLabelDomains but allowed because // they are not used in a context where they may be passed as argument to kubelet. LabelDomainExceptions = sets.NewString( "kops.k8s.io", v1.LabelNamespaceSuffixNode, TestingGroup, ) // WellKnownLabels are labels that belong to the RestrictedLabelDomains but allowed. // Karpenter is aware of these labels, and they can be used to further narrow down // the range of the corresponding values by either provisioner or pods. WellKnownLabels = sets.NewString( ProvisionerNameLabelKey, v1.LabelTopologyZone, v1.LabelTopologyRegion, v1.LabelInstanceTypeStable, v1.LabelArchStable, v1.LabelOSStable, LabelCapacityType, ) // RestrictedLabels are labels that should not be used // because they may interfere with the internal provisioning logic. RestrictedLabels = sets.NewString( EmptinessTimestampAnnotationKey, v1.LabelHostname, ) // NormalizedLabels translate aliased concepts into the controller's // WellKnownLabels. Pod requirements are translated for compatibility. NormalizedLabels = map[string]string{ v1.LabelFailureDomainBetaZone: v1.LabelTopologyZone, "beta.kubernetes.io/arch": v1.LabelArchStable, "beta.kubernetes.io/os": v1.LabelOSStable, v1.LabelInstanceType: v1.LabelInstanceTypeStable, v1.LabelFailureDomainBetaRegion: v1.LabelTopologyRegion, } )
var ( MachineCreated apis.ConditionType = "MachineCreated" MachineRegistered apis.ConditionType = "MachineRegistered" MachineInitialized apis.ConditionType = "MachineInitialized" )
var ( SupportedNodeSelectorOps = sets.NewString( string(v1.NodeSelectorOpIn), string(v1.NodeSelectorOpNotIn), string(v1.NodeSelectorOpGt), string(v1.NodeSelectorOpLt), string(v1.NodeSelectorOpExists), string(v1.NodeSelectorOpDoesNotExist), ) SupportedReservedResources = sets.NewString( v1.ResourceCPU.String(), v1.ResourceMemory.String(), v1.ResourceEphemeralStorage.String(), "pid", ) SupportedEvictionSignals = sets.NewString( "memory.available", "nodefs.available", "nodefs.inodesFree", "imagefs.available", "imagefs.inodesFree", "pid.available", ) )
var ( SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: "v1alpha5"} SchemeBuilder = runtime.NewSchemeBuilder(func(scheme *runtime.Scheme) error { scheme.AddKnownTypes(SchemeGroupVersion, &Provisioner{}, &ProvisionerList{}, &Machine{}, &MachineList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil }) )
Functions ¶
func IsRestrictedLabel ¶
IsRestrictedLabel returns an error if the label is restricted.
func IsRestrictedNodeLabel ¶
IsRestrictedNodeLabel returns true if a node label should not be injected by Karpenter. They are either known labels that will be injected by cloud providers, or label domain managed by other software (e.g., kops.k8s.io managed by kOps).
func ProviderAnnotation ¶
func ValidateRequirement ¶
func ValidateRequirement(requirement v1.NodeSelectorRequirement) error
Types ¶
type Consolidation ¶
type Consolidation struct { // Enabled enables consolidation if it has been set Enabled *bool `json:"enabled,omitempty"` }
func (*Consolidation) DeepCopy ¶
func (in *Consolidation) DeepCopy() *Consolidation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Consolidation.
func (*Consolidation) DeepCopyInto ¶
func (in *Consolidation) DeepCopyInto(out *Consolidation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeletConfiguration ¶
type KubeletConfiguration struct { // clusterDNS is a list of IP addresses for the cluster DNS server. // Note that not all providers may use all addresses. //+optional ClusterDNS []string `json:"clusterDNS,omitempty"` // ContainerRuntime is the container runtime to be used with your worker nodes. // +optional ContainerRuntime *string `json:"containerRuntime,omitempty"` // MaxPods is an override for the maximum number of pods that can run on // a worker node instance. // +kubebuilder:validation:Minimum:=0 // +optional MaxPods *int32 `json:"maxPods,omitempty"` // PodsPerCore is an override for the number of pods that can run on a worker node // instance based on the number of cpu cores. This value cannot exceed MaxPods, so, if // MaxPods is a lower value, that value will be used. // +kubebuilder:validation:Minimum:=0 // +optional PodsPerCore *int32 `json:"podsPerCore,omitempty"` // SystemReserved contains resources reserved for OS system daemons and kernel memory. // +optional SystemReserved v1.ResourceList `json:"systemReserved,omitempty"` // KubeReserved contains resources reserved for Kubernetes system components. // +optional KubeReserved v1.ResourceList `json:"kubeReserved,omitempty"` // EvictionHard is the map of signal names to quantities that define hard eviction thresholds // +optional EvictionHard map[string]string `json:"evictionHard,omitempty"` // EvictionSoft is the map of signal names to quantities that define soft eviction thresholds // +optional EvictionSoft map[string]string `json:"evictionSoft,omitempty"` // EvictionSoftGracePeriod is the map of signal names to quantities that define grace periods for each eviction signal // +optional EvictionSoftGracePeriod map[string]metav1.Duration `json:"evictionSoftGracePeriod,omitempty"` // EvictionMaxPodGracePeriod is the maximum allowed grace period (in seconds) to use when terminating pods in // response to soft eviction thresholds being met. // +optional EvictionMaxPodGracePeriod *int32 `json:"evictionMaxPodGracePeriod,omitempty"` // ImageGCHighThresholdPercent is the percent of disk usage after which image // garbage collection is always run. The percent is calculated by dividing this // field value by 100, so this field must be between 0 and 100, inclusive. // When specified, the value must be greater than ImageGCLowThresholdPercent. // +kubebuilder:validation:Minimum:=0 // +kubebuilder:validation:Maximum:=100 // +optional ImageGCHighThresholdPercent *int32 `json:"imageGCHighThresholdPercent,omitempty"` // ImageGCLowThresholdPercent is the percent of disk usage before which image // garbage collection is never run. Lowest disk usage to garbage collect to. // The percent is calculated by dividing this field value by 100, // so the field value must be between 0 and 100, inclusive. // When specified, the value must be less than imageGCHighThresholdPercent // +kubebuilder:validation:Minimum:=0 // +kubebuilder:validation:Maximum:=100 // +optional ImageGCLowThresholdPercent *int32 `json:"imageGCLowThresholdPercent,omitempty"` // CPUCFSQuota enables CPU CFS quota enforcement for containers that specify CPU limits. // +optional CPUCFSQuota bool `json:"cpuCFSQuota,omitempty"` }
KubeletConfiguration defines args to be used when configuring kubelet on provisioned nodes. They are a subset of the upstream types, recognizing not all options may be supported. Wherever possible, the types and names should reflect the upstream kubelet types. https://pkg.go.dev/k8s.io/kubelet/config/v1beta1#KubeletConfiguration https://github.com/kubernetes/kubernetes/blob/9f82d81e55cafdedab619ea25cabf5d42736dacf/cmd/kubelet/app/options/options.go#L53
func (*KubeletConfiguration) DeepCopy ¶
func (in *KubeletConfiguration) DeepCopy() *KubeletConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeletConfiguration.
func (*KubeletConfiguration) DeepCopyInto ¶
func (in *KubeletConfiguration) DeepCopyInto(out *KubeletConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Limits ¶
type Limits struct { // Resources contains all the allocatable resources that Karpenter supports for limiting. Resources v1.ResourceList `json:"resources,omitempty"` }
Limits define bounds on the resources being provisioned by Karpenter
func (*Limits) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Limits.
func (*Limits) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Limits) ExceededBy ¶
func (l *Limits) ExceededBy(resources v1.ResourceList) error
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 +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description="" +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description=""
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) SetDefaults ¶
SetDefaults for the machine
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 *KubeletConfiguration `json:"kubelet,omitempty"` // MachineTemplateRef is a reference to an object that defines provider specific configuration MachineTemplateRef *ProviderRef `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"` // Capacity is the estimated full capacity of the machine // +optional Capacity v1.ResourceList `json:"capacity,omitempty"` // Allocatable is the estimated allocatable capacity of the machine // +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 ProviderRef ¶
type ProviderRef struct { // Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" Kind string `json:"kind,omitempty"` // Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names // +required Name string `json:"name"` // API version of the referent // +optional APIVersion string `json:"apiVersion,omitempty"` }
func (*ProviderRef) DeepCopy ¶
func (in *ProviderRef) DeepCopy() *ProviderRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderRef.
func (*ProviderRef) DeepCopyInto ¶
func (in *ProviderRef) DeepCopyInto(out *ProviderRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Provisioner ¶
type Provisioner struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ProvisionerSpec `json:"spec,omitempty"` Status ProvisionerStatus `json:"status,omitempty"` }
Provisioner is the Schema for the Provisioners API +kubebuilder:object:root=true +kubebuilder:resource:path=provisioners,scope=Cluster,categories=karpenter +kubebuilder:subresource:status
func (*Provisioner) DeepCopy ¶
func (in *Provisioner) DeepCopy() *Provisioner
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Provisioner.
func (*Provisioner) DeepCopyInto ¶
func (in *Provisioner) DeepCopyInto(out *Provisioner)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Provisioner) DeepCopyObject ¶
func (in *Provisioner) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Provisioner) GetConditions ¶
func (p *Provisioner) GetConditions() apis.Conditions
func (*Provisioner) SetConditions ¶
func (p *Provisioner) SetConditions(conditions apis.Conditions)
func (*Provisioner) SetDefaults ¶
func (p *Provisioner) SetDefaults(ctx context.Context)
SetDefaults for the provisioner
func (*Provisioner) StatusConditions ¶
func (p *Provisioner) StatusConditions() apis.ConditionManager
func (*Provisioner) SupportedVerbs ¶
func (p *Provisioner) SupportedVerbs() []admissionregistrationv1.OperationType
func (*Provisioner) Validate ¶
func (p *Provisioner) Validate(ctx context.Context) (errs *apis.FieldError)
type ProvisionerList ¶
type ProvisionerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Provisioner `json:"items"` }
ProvisionerList contains a list of Provisioner +kubebuilder:object:root=true
func (*ProvisionerList) DeepCopy ¶
func (in *ProvisionerList) DeepCopy() *ProvisionerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProvisionerList.
func (*ProvisionerList) DeepCopyInto ¶
func (in *ProvisionerList) DeepCopyInto(out *ProvisionerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProvisionerList) DeepCopyObject ¶
func (in *ProvisionerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ProvisionerList) OrderByWeight ¶
func (pl *ProvisionerList) OrderByWeight()
OrderByWeight orders the provisioners in the ProvisionerList by their priority weight in-place
type ProvisionerSpec ¶
type ProvisionerSpec struct { // Annotations are applied to every node. //+optional Annotations map[string]string `json:"annotations,omitempty"` // Labels are layered with Requirements and applied to every node. //+optional Labels map[string]string `json:"labels,omitempty"` // Taints will be applied to every node launched by the Provisioner. If // specified, the provisioner will not provision nodes for pods that do not // have matching tolerations. Additional taints will be created that match // pod tolerations on a per-node basis. // +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"` // KubeletConfiguration are options passed to the kubelet when provisioning nodes //+optional KubeletConfiguration *KubeletConfiguration `json:"kubeletConfiguration,omitempty"` // Provider contains fields specific to your cloudprovider. // +kubebuilder:pruning:PreserveUnknownFields Provider *Provider `json:"provider,omitempty"` // ProviderRef is a reference to a dedicated CRD for the chosen provider, that holds // additional configuration options // +optional ProviderRef *ProviderRef `json:"providerRef,omitempty"` // TTLSecondsAfterEmpty is the number of seconds the controller will wait // before attempting to delete a node, measured from when the node is // detected to be empty. A Node is considered to be empty when it does not // have pods scheduled to it, excluding daemonsets. // // Termination due to no utilization is disabled if this field is not set. // +optional TTLSecondsAfterEmpty *int64 `json:"ttlSecondsAfterEmpty,omitempty"` // TTLSecondsUntilExpired is the number of seconds the controller will wait // before terminating a node, measured from when the node is created. This // is useful to implement features like eventually consistent node upgrade, // memory leak protection, and disruption testing. // // Termination due to expiration is disabled if this field is not set. // +optional TTLSecondsUntilExpired *int64 `json:"ttlSecondsUntilExpired,omitempty"` // Limits define a set of bounds for provisioning capacity. Limits *Limits `json:"limits,omitempty"` // Weight is the priority given to the provisioner during scheduling. A higher // numerical weight indicates that this provisioner will be ordered // ahead of other provisioners with lower weights. A provisioner with no weight // will be treated as if it is a provisioner with a weight of 0. // +kubebuilder:validation:Minimum:=1 // +kubebuilder:validation:Maximum:=100 // +optional Weight *int32 `json:"weight,omitempty"` // Consolidation are the consolidation parameters // +optional Consolidation *Consolidation `json:"consolidation,omitempty"` }
ProvisionerSpec is the top level provisioner specification. Provisioners launch nodes in response to pods that are unschedulable. A single provisioner is capable of managing a diverse set of nodes. Node properties are determined from a combination of provisioner and pod scheduling constraints.
func (*ProvisionerSpec) DeepCopy ¶
func (in *ProvisionerSpec) DeepCopy() *ProvisionerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProvisionerSpec.
func (*ProvisionerSpec) DeepCopyInto ¶
func (in *ProvisionerSpec) DeepCopyInto(out *ProvisionerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProvisionerSpec) Validate ¶
func (s *ProvisionerSpec) Validate(ctx context.Context) (errs *apis.FieldError)
Validate the constraints
type ProvisionerStatus ¶
type ProvisionerStatus struct { // LastScaleTime is the last time the Provisioner scaled the number // of nodes // +optional // +kubebuilder:validation:Format="date-time" LastScaleTime *apis.VolatileTime `json:"lastScaleTime,omitempty"` // Conditions is the set of conditions required for this provisioner to scale // its target, and indicates whether or not those conditions are met. // +optional Conditions apis.Conditions `json:"conditions,omitempty"` // Resources is the list of resources that have been provisioned. Resources v1.ResourceList `json:"resources,omitempty"` }
ProvisionerStatus defines the observed state of Provisioner
func (*ProvisionerStatus) DeepCopy ¶
func (in *ProvisionerStatus) DeepCopy() *ProvisionerStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProvisionerStatus.
func (*ProvisionerStatus) DeepCopyInto ¶
func (in *ProvisionerStatus) DeepCopyInto(out *ProvisionerStatus)
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.