 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package v1alpha4 contains API Schema definitions for the infrastructure v1alpha4 API group +kubebuilder:object:generate=true +groupName=infrastructure.cluster.x-k8s.io
Index ¶
- Constants
- Variables
- type KubemarkExtendedResourceList
- type KubemarkExtendedResourceName
- type KubemarkMachine
- func (in *KubemarkMachine) DeepCopy() *KubemarkMachine
- func (in *KubemarkMachine) DeepCopyInto(out *KubemarkMachine)
- func (in *KubemarkMachine) DeepCopyObject() runtime.Object
- func (c *KubemarkMachine) GetConditions() clusterv1.Conditions
- func (c *KubemarkMachine) SetConditions(conditions clusterv1.Conditions)
 
- type KubemarkMachineList
- type KubemarkMachineSpec
- type KubemarkMachineStatus
- type KubemarkMachineTemplate
- type KubemarkMachineTemplateList
- type KubemarkMachineTemplateResource
- type KubemarkMachineTemplateSpec
- type KubemarkMachineTemplateStatus
- type KubemarkProcessOptions
- type Mount
Constants ¶
const ( // InstanceReadyCondition reports on current status of the EC2 instance. Ready indicates the instance is in a Running state. InstanceReadyCondition clusterv1.ConditionType = "InstanceReady" // InstanceNotFoundReason used when the instance couldn't be retrieved. InstanceNotFoundReason = "InstanceNotFound" // InstanceTerminatedReason instance is in a terminated state. InstanceTerminatedReason = "InstanceTerminated" // InstanceStoppedReason instance is in a stopped state. InstanceStoppedReason = "InstanceStopped" // InstanceNotReadyReason used when the instance is in a pending state. InstanceNotReadyReason = "InstanceNotReady" // InstanceProvisionStartedReason set when the provisioning of an instance started. InstanceProvisionStartedReason = "InstanceProvisionStarted" // InstanceProvisionFailedReason used for failures during instance provisioning. InstanceProvisionFailedReason = "InstanceProvisionFailed" // WaitingForClusterInfrastructureReason used when machine is waiting for cluster infrastructure to be ready before proceeding. WaitingForClusterInfrastructureReason = "WaitingForClusterInfrastructure" // WaitingForBootstrapDataReason used when machine is waiting for bootstrap data to be ready before proceeding. WaitingForBootstrapDataReason = "WaitingForBootstrapData" )
Variables ¶
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 )
Functions ¶
This section is empty.
Types ¶
type KubemarkExtendedResourceList ¶ added in v0.3.0
type KubemarkExtendedResourceList map[KubemarkExtendedResourceName]resource.Quantity
func (KubemarkExtendedResourceList) DeepCopy ¶ added in v0.3.0
func (in KubemarkExtendedResourceList) DeepCopy() KubemarkExtendedResourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubemarkExtendedResourceList.
func (KubemarkExtendedResourceList) DeepCopyInto ¶ added in v0.3.0
func (in KubemarkExtendedResourceList) DeepCopyInto(out *KubemarkExtendedResourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubemarkExtendedResourceName ¶ added in v0.3.0
type KubemarkExtendedResourceName string
const ( // MachineFinalizer allows the controller to clean up resources associated with KubemarkMachine before // removing it from the apiserver. MachineFinalizer = "kubemarkmachine.infrastructure.cluster.x-k8s.io" // ExtendedResource types for KubemarkMachines KubemarkExtendedResourceCPU KubemarkExtendedResourceName = "cpu" KubemarkExtendedResourceMemory KubemarkExtendedResourceName = "memory" )
type KubemarkMachine ¶
type KubemarkMachine struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec   KubemarkMachineSpec   `json:"spec,omitempty"`
	Status KubemarkMachineStatus `json:"status,omitempty"`
}
    KubemarkMachine is the Schema for the kubemarkmachines API
func (*KubemarkMachine) DeepCopy ¶
func (in *KubemarkMachine) DeepCopy() *KubemarkMachine
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubemarkMachine.
func (*KubemarkMachine) DeepCopyInto ¶
func (in *KubemarkMachine) DeepCopyInto(out *KubemarkMachine)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubemarkMachine) DeepCopyObject ¶
func (in *KubemarkMachine) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*KubemarkMachine) GetConditions ¶
func (c *KubemarkMachine) GetConditions() clusterv1.Conditions
func (*KubemarkMachine) SetConditions ¶
func (c *KubemarkMachine) SetConditions(conditions clusterv1.Conditions)
type KubemarkMachineList ¶
type KubemarkMachineList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []KubemarkMachine `json:"items"`
}
    KubemarkMachineList contains a list of KubemarkMachine
func (*KubemarkMachineList) DeepCopy ¶
func (in *KubemarkMachineList) DeepCopy() *KubemarkMachineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubemarkMachineList.
func (*KubemarkMachineList) DeepCopyInto ¶
func (in *KubemarkMachineList) DeepCopyInto(out *KubemarkMachineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubemarkMachineList) DeepCopyObject ¶
func (in *KubemarkMachineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KubemarkMachineSpec ¶
type KubemarkMachineSpec struct {
	// ProviderID will be the kubemark pod name in ProviderID format (kubemark:////<podname>)
	// +optional
	ProviderID *string `json:"providerID,omitempty"`
	// ExtraMounts describes additional mount points for the node container
	// These may be used to bind a hostPath
	// +optional
	ExtraMounts []Mount `json:"extraMounts,omitempty"`
	// KubemarkOptions are API representations of command line flags that
	// will be passed to the `kubemark` binary.
	// +optional
	KubemarkOptions KubemarkProcessOptions `json:"kubemarkOptions,omitempty"`
	// KubemarkHollowPodClusterSecretRef is a reference to a secret with a kubeconfig for an external cluster used for kubemark pods.
	KubemarkHollowPodClusterSecretRef *corev1.ObjectReference `json:"kubemarkHollowPodClusterSecretRef,omitempty"`
}
    KubemarkMachineSpec defines the desired state of KubemarkMachine
func (*KubemarkMachineSpec) DeepCopy ¶
func (in *KubemarkMachineSpec) DeepCopy() *KubemarkMachineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubemarkMachineSpec.
func (*KubemarkMachineSpec) DeepCopyInto ¶
func (in *KubemarkMachineSpec) DeepCopyInto(out *KubemarkMachineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubemarkMachineStatus ¶
type KubemarkMachineStatus struct {
	// Ready is true when the provider resource is ready.
	// +optional
	Ready bool `json:"ready"`
	// Conditions defines current service state of the DockerMachine.
	// +optional
	Conditions clusterv1.Conditions `json:"conditions,omitempty"`
}
    KubemarkMachineStatus defines the observed state of KubemarkMachine
func (*KubemarkMachineStatus) DeepCopy ¶
func (in *KubemarkMachineStatus) DeepCopy() *KubemarkMachineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubemarkMachineStatus.
func (*KubemarkMachineStatus) DeepCopyInto ¶
func (in *KubemarkMachineStatus) DeepCopyInto(out *KubemarkMachineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubemarkMachineTemplate ¶
type KubemarkMachineTemplate struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec   KubemarkMachineTemplateSpec   `json:"spec,omitempty"`
	Status KubemarkMachineTemplateStatus `json:"status,omitempty"`
}
    KubemarkMachineTemplate is the Schema for the kubemarkmachinetemplates API
func (*KubemarkMachineTemplate) DeepCopy ¶
func (in *KubemarkMachineTemplate) DeepCopy() *KubemarkMachineTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubemarkMachineTemplate.
func (*KubemarkMachineTemplate) DeepCopyInto ¶
func (in *KubemarkMachineTemplate) DeepCopyInto(out *KubemarkMachineTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubemarkMachineTemplate) DeepCopyObject ¶
func (in *KubemarkMachineTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KubemarkMachineTemplateList ¶
type KubemarkMachineTemplateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []KubemarkMachineTemplate `json:"items"`
}
    KubemarkMachineTemplateList contains a list of KubemarkMachineTemplate
func (*KubemarkMachineTemplateList) DeepCopy ¶
func (in *KubemarkMachineTemplateList) DeepCopy() *KubemarkMachineTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubemarkMachineTemplateList.
func (*KubemarkMachineTemplateList) DeepCopyInto ¶
func (in *KubemarkMachineTemplateList) DeepCopyInto(out *KubemarkMachineTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubemarkMachineTemplateList) DeepCopyObject ¶
func (in *KubemarkMachineTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KubemarkMachineTemplateResource ¶
type KubemarkMachineTemplateResource struct {
	// Spec is the specification of the desired behavior of the machine.
	Spec KubemarkMachineSpec `json:"spec"`
}
    KubemarkMachineTemplateResource describes the data needed to create am KubemarkMachine from a template
func (*KubemarkMachineTemplateResource) DeepCopy ¶
func (in *KubemarkMachineTemplateResource) DeepCopy() *KubemarkMachineTemplateResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubemarkMachineTemplateResource.
func (*KubemarkMachineTemplateResource) DeepCopyInto ¶
func (in *KubemarkMachineTemplateResource) DeepCopyInto(out *KubemarkMachineTemplateResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubemarkMachineTemplateSpec ¶
type KubemarkMachineTemplateSpec struct {
	Template KubemarkMachineTemplateResource `json:"template"`
}
    KubemarkMachineTemplateSpec defines the desired state of KubemarkMachineTemplate
func (*KubemarkMachineTemplateSpec) DeepCopy ¶
func (in *KubemarkMachineTemplateSpec) DeepCopy() *KubemarkMachineTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubemarkMachineTemplateSpec.
func (*KubemarkMachineTemplateSpec) DeepCopyInto ¶
func (in *KubemarkMachineTemplateSpec) DeepCopyInto(out *KubemarkMachineTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubemarkMachineTemplateStatus ¶ added in v0.3.0
type KubemarkMachineTemplateStatus struct {
	// Capacity defines the resource capacity for this machine.
	// This value is used for autoscaling from zero operations as defined in:
	// https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20210310-opt-in-autoscaling-from-zero.md
	// +optional
	Capacity corev1.ResourceList `json:"capacity,omitempty"`
}
    KubemarkMachineTemplateStatus defines the observed state of KubemarkMachineTemplate
func (*KubemarkMachineTemplateStatus) DeepCopy ¶ added in v0.3.0
func (in *KubemarkMachineTemplateStatus) DeepCopy() *KubemarkMachineTemplateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubemarkMachineTemplateStatus.
func (*KubemarkMachineTemplateStatus) DeepCopyInto ¶ added in v0.3.0
func (in *KubemarkMachineTemplateStatus) DeepCopyInto(out *KubemarkMachineTemplateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubemarkProcessOptions ¶ added in v0.3.0
type KubemarkProcessOptions struct {
	// ExtendedResources is a map of resource-type:value pairs that describe
	// resources which the result machine and node will advertise as capacity.
	// These will only be used with Kubernetes v1.22+.
	// Defaults to {"cpu": "1", "memory": "4G"}
	ExtendedResources KubemarkExtendedResourceList `json:"extendedResources,omitempty"`
}
    KubemarkProcessOptions contain fields that are converted to command line flags when running the kubemark container for a hollow node.
func (*KubemarkProcessOptions) DeepCopy ¶ added in v0.3.0
func (in *KubemarkProcessOptions) DeepCopy() *KubemarkProcessOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubemarkProcessOptions.
func (*KubemarkProcessOptions) DeepCopyInto ¶ added in v0.3.0
func (in *KubemarkProcessOptions) DeepCopyInto(out *KubemarkProcessOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Mount ¶ added in v0.3.0
type Mount struct {
	// Name of the mount.
	Name string `json:"name"`
	// Path of the mount within the container.
	ContainerPath string `json:"containerPath"`
	// Path of the mount on the host. If the hostPath doesn't exist, then runtimes
	// should report error. If the hostpath is a symbolic link, runtimes should
	// follow the symlink and mount the real destination to container.
	HostPath string `json:"hostPath"`
	// Type for HostPath Volume
	// Defaults to ""
	// More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
	// validations taken from https://github.com/kubernetes/api/blob/master/core/v1/types.go#L664
	// +kubebuilder:validation:Enum:="";"DirectoryOrCreate";"Directory";"FileOrCreate";"File";"Socket";"CharDevice";"BlockDevice"
	// +optional
	Type *corev1.HostPathType `json:"type,omitempty"`
}
    Mount specifies a host volume to mount into a container. This is a simplified version of kind v1alpha4.Mount types.
func (*Mount) DeepCopy ¶ added in v0.3.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Mount.
func (*Mount) DeepCopyInto ¶ added in v0.3.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.