v1alpha3

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha3 contains API Schema definitions for the infrastructure v1alpha3 API group +kubebuilder:object:generate=true +groupName=infrastructure.cluster.x-k8s.io

Index

Constants

View Source
const (
	ControlPlaneTag = "kubernetes.io/role:master"
	WorkerTag       = "kubernetes.io/role:node"
)
View Source
const (
	// MachineFinalizer allows ReconcilePacketMachine to clean up Packet resources before
	// removing it from the apiserver.
	MachineFinalizer = "packetmachine.infrastructure.cluster.x-k8s.io"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "infrastructure.cluster.x-k8s.io", Version: "v1alpha3"}

	// 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
)
View Source
var (
	// PacketResourceStatusNew represents a Packet resource requested.
	// The Packet infrastucture uses a queue to avoid any abuse. So a resource
	// does not get created straigh away but it can wait for a bit in a queue.
	PacketResourceStatusNew = PacketResourceStatus("new")
	// PacketResourceStatusQueued represents a device waiting for his turn to be provisioned.
	// Time in queue depends on how many creation requests you already issued, or
	// from how many resources waiting to be deleted we have for you.
	PacketResourceStatusQueued = PacketResourceStatus("queued")
	// PacketResourceStatusProvisioning represents a resource that got dequeued
	// and it is activelly processed by a worker.
	PacketResourceStatusProvisioning = PacketResourceStatus("provisioning")
	// PacketResourceStatusRunning represents a Packet resource already provisioned and in a active state.
	PacketResourceStatusRunning = PacketResourceStatus("active")
	// PacketResourceStatusErrored represents a Packet resource in a errored state.
	PacketResourceStatusErrored = PacketResourceStatus("errored")
	// PacketResourceStatusOff represents a Packet resource in off state.
	PacketResourceStatusOff = PacketResourceStatus("off")
)

Functions

This section is empty.

Types

type PacketCluster

type PacketCluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PacketClusterSpec   `json:"spec,omitempty"`
	Status PacketClusterStatus `json:"status,omitempty"`
}

PacketCluster is the Schema for the packetclusters API

func (*PacketCluster) DeepCopy

func (in *PacketCluster) DeepCopy() *PacketCluster

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PacketCluster.

func (*PacketCluster) DeepCopyInto

func (in *PacketCluster) DeepCopyInto(out *PacketCluster)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PacketCluster) DeepCopyObject

func (in *PacketCluster) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PacketClusterList

type PacketClusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PacketCluster `json:"items"`
}

PacketClusterList contains a list of PacketCluster

func (*PacketClusterList) DeepCopy

func (in *PacketClusterList) DeepCopy() *PacketClusterList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PacketClusterList.

func (*PacketClusterList) DeepCopyInto

func (in *PacketClusterList) DeepCopyInto(out *PacketClusterList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PacketClusterList) DeepCopyObject

func (in *PacketClusterList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PacketClusterSpec

type PacketClusterSpec struct {

	// ProjectID represents the Packet Project where this cluster will be placed into
	ProjectID string `json:"projectID"`

	// Facility represents the Packet facility for this cluster
	Facility string `json:"facility,omitempty"`

	// ControlPlaneEndpoint represents the endpoint used to communicate with the control plane.
	// +optional
	ControlPlaneEndpoint clusterv1.APIEndpoint `json:"controlPlaneEndpoint"`
}

PacketClusterSpec defines the desired state of PacketCluster

func (*PacketClusterSpec) DeepCopy

func (in *PacketClusterSpec) DeepCopy() *PacketClusterSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PacketClusterSpec.

func (*PacketClusterSpec) DeepCopyInto

func (in *PacketClusterSpec) DeepCopyInto(out *PacketClusterSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PacketClusterStatus

type PacketClusterStatus struct {

	// Ready denotes that the cluster (infrastructure) is ready.
	// +optional
	Ready bool `json:"ready"`
}

PacketClusterStatus defines the observed state of PacketCluster

func (*PacketClusterStatus) DeepCopy

func (in *PacketClusterStatus) DeepCopy() *PacketClusterStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PacketClusterStatus.

func (*PacketClusterStatus) DeepCopyInto

func (in *PacketClusterStatus) DeepCopyInto(out *PacketClusterStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PacketMachine

type PacketMachine struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PacketMachineSpec   `json:"spec,omitempty"`
	Status PacketMachineStatus `json:"status,omitempty"`
}

PacketMachine is the Schema for the packetmachines API

func (*PacketMachine) DeepCopy

func (in *PacketMachine) DeepCopy() *PacketMachine

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PacketMachine.

func (*PacketMachine) DeepCopyInto

func (in *PacketMachine) DeepCopyInto(out *PacketMachine)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PacketMachine) DeepCopyObject

func (in *PacketMachine) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PacketMachineList

type PacketMachineList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PacketMachine `json:"items"`
}

PacketMachineList contains a list of PacketMachine

func (*PacketMachineList) DeepCopy

func (in *PacketMachineList) DeepCopy() *PacketMachineList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PacketMachineList.

func (*PacketMachineList) DeepCopyInto

func (in *PacketMachineList) DeepCopyInto(out *PacketMachineList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PacketMachineList) DeepCopyObject

func (in *PacketMachineList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PacketMachineSpec

type PacketMachineSpec struct {
	OS           string   `json:"OS"`
	BillingCycle string   `json:"billingCycle"`
	MachineType  string   `json:"machineType"`
	SshKeys      []string `json:"sshKeys,omitempty"`

	// IPXEUrl can be used to set the pxe boot url when using custom OSes with this provider.
	// Note that OS should also be set to "custom_ipxe" if using this value.
	// +optional
	IPXEUrl string `json:"ipxeURL,omitempty"`

	// HardwareReservationID is the unique device hardware reservation ID or `next-available` to
	// automatically let the Packet api determine one.
	// +optional
	HardwareReservationID string `json:"hardwareReservationID,omitempty"`

	// ProviderID is the unique identifier as specified by the cloud provider.
	// +optional
	ProviderID *string `json:"providerID,omitempty"`

	// Tags is an optional set of tags to add to Packet resources managed by the Packet provider.
	// +optional
	Tags Tags `json:"tags,omitempty"`
}

PacketMachineSpec defines the desired state of PacketMachine

func (*PacketMachineSpec) DeepCopy

func (in *PacketMachineSpec) DeepCopy() *PacketMachineSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PacketMachineSpec.

func (*PacketMachineSpec) DeepCopyInto

func (in *PacketMachineSpec) DeepCopyInto(out *PacketMachineSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PacketMachineStatus

type PacketMachineStatus struct {

	// Ready is true when the provider resource is ready.
	// +optional
	Ready bool `json:"ready"`

	// Addresses contains the Packet device associated addresses.
	Addresses []corev1.NodeAddress `json:"addresses,omitempty"`

	// InstanceStatus is the status of the Packet device instance for this machine.
	// +optional
	InstanceStatus *PacketResourceStatus `json:"instanceStatus,omitempty"`

	// Any transient errors that occur during the reconciliation of Machines
	// can be added as events to the Machine object and/or logged in the
	// controller's output.
	// +optional
	ErrorReason *capierrors.MachineStatusError `json:"errorReason,omitempty"`

	// ErrorMessage will be set in the event that there is a terminal problem
	// reconciling the Machine and will contain a more verbose string suitable
	// for logging and human consumption.
	//
	// This field should not be set for transitive errors that a controller
	// faces that are expected to be fixed automatically over
	// time (like service outages), but instead indicate that something is
	// fundamentally wrong with the Machine's spec or the configuration of
	// the controller, and that manual intervention is required. Examples
	// of terminal errors would be invalid combinations of settings in the
	// spec, values that are unsupported by the controller, or the
	// responsible controller itself being critically misconfigured.
	//
	// Any transient errors that occur during the reconciliation of Machines
	// can be added as events to the Machine object and/or logged in the
	// controller's output.
	// +optional
	ErrorMessage *string `json:"errorMessage,omitempty"`
}

PacketMachineStatus defines the observed state of PacketMachine

func (*PacketMachineStatus) DeepCopy

func (in *PacketMachineStatus) DeepCopy() *PacketMachineStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PacketMachineStatus.

func (*PacketMachineStatus) DeepCopyInto

func (in *PacketMachineStatus) DeepCopyInto(out *PacketMachineStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PacketMachineTemplate

type PacketMachineTemplate struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec PacketMachineTemplateSpec `json:"spec,omitempty"`
}

PacketMachineTemplate is the Schema for the packetmachinetemplates API

func (*PacketMachineTemplate) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PacketMachineTemplate.

func (*PacketMachineTemplate) DeepCopyInto

func (in *PacketMachineTemplate) DeepCopyInto(out *PacketMachineTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PacketMachineTemplate) DeepCopyObject

func (in *PacketMachineTemplate) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PacketMachineTemplateList

type PacketMachineTemplateList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PacketMachineTemplate `json:"items"`
}

PacketMachineTemplateList contains a list of PacketMachineTemplate

func (*PacketMachineTemplateList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PacketMachineTemplateList.

func (*PacketMachineTemplateList) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*PacketMachineTemplateList) DeepCopyObject

func (in *PacketMachineTemplateList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type PacketMachineTemplateResource

type PacketMachineTemplateResource struct {
	// Spec is the specification of the desired behavior of the machine.
	Spec PacketMachineSpec `json:"spec"`
}

PacketMachineTemplateResource describes the data needed to create am PacketMachine from a template

func (*PacketMachineTemplateResource) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PacketMachineTemplateResource.

func (*PacketMachineTemplateResource) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PacketMachineTemplateSpec

type PacketMachineTemplateSpec struct {
	Template PacketMachineTemplateResource `json:"template"`
}

PacketMachineTemplateSpec defines the desired state of PacketMachineTemplate

func (*PacketMachineTemplateSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PacketMachineTemplateSpec.

func (*PacketMachineTemplateSpec) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type PacketResourceStatus

type PacketResourceStatus string

PacketResourceStatus describes the status of a Packet resource.

type Tags

type Tags []string

Tags defines a slice of tags.

func (Tags) DeepCopy

func (in Tags) DeepCopy() Tags

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Tags.

func (Tags) DeepCopyInto

func (in Tags) DeepCopyInto(out *Tags)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL