core

package
v0.0.0-...-66691d1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package core is the internal version of the API.

Package core contains API Schema definitions for the core internal API group +groupName=core.spheric.cloud

Index

Constants

View Source
const (
	InstanceFleetRefNameField        = "spec.fleetRef.name"
	InstanceInstanceTypeRefNameField = "spec.instanceTypeRef.name"

	// FleetsGroup is the system rbac group all fleets are in.
	FleetsGroup = "core.spheric.cloud:system:fleets"

	// FleetUserNamePrefix is the prefix all fleet users should have.
	FleetUserNamePrefix = "core.spheric.cloud:system:fleet:"

	SecretTypeIgnition = corev1.SecretType("core.spheric.cloud/ignition")
)
View Source
const (
	// WatchLabel is a label that can be applied to any spheric resource.
	//
	// Provider controllers that allow for selective reconciliation may check this label and proceed
	// with reconciliation of the object only if this label and a configured value are present.
	WatchLabel = "spheric.cloud/watch-filter"

	// ReconcileRequestAnnotation is an annotation that requested a reconciliation at a specific time.
	ReconcileRequestAnnotation = "reconcile.spheric.cloud/requested-at"

	// ManagedByAnnotation is an annotation that can be applied to resources to signify that
	// some external system is managing the resource.
	ManagedByAnnotation = "spheric.cloud/managed-by"

	// EphemeralManagedByAnnotation is an annotation that can be applied to resources to signify that
	// some ephemeral controller is managing the resource.
	EphemeralManagedByAnnotation = "spheric.cloud/ephemeral-managed-by"

	// DefaultEphemeralManager is the default spheric ephemeral manager.
	DefaultEphemeralManager = "ephemeral-manager"

	FinalizerNetwork = "core.spheric.cloud/network"
)
View Source
const DefaultIgnitionKey = "ignition.yaml"

DefaultIgnitionKey is the default key for InstanceSpec.UserData.

View Source
const (
	// GroupName is the name of the core group.
	GroupName = "core.spheric.cloud"
)
View Source
const (
	// InstanceTypeFinalizer is the finalizer for InstanceType.
	InstanceTypeFinalizer = GroupName + "/instancetype"
)

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "core.spheric.cloud", Version: runtime.APIVersionInternal}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func FleetCommonName

func FleetCommonName(name string) string

FleetCommonName constructs the common name for a certificate of a fleet user.

func InstanceDiskName

func InstanceDiskName(instanceName string, disk AttachedDisk) string

InstanceDiskName returns the name of the DiskClaim for a instance disk.

func InstanceDiskNames

func InstanceDiskNames(instance *Instance) []string

InstanceDiskNames returns all Disk names of a instance.

func InstanceEphemeralDiskName

func InstanceEphemeralDiskName(instanceName, instanceDiskName string) string

InstanceEphemeralDiskName returns the name of a Disk for an ephemeral instance disk.

func InstanceSecretNames

func InstanceSecretNames(instance *Instance) []string

InstanceSecretNames returns all secret names of a instance.

func IsInstanceTypeResource

func IsInstanceTypeResource(name ResourceName) bool

IsInstanceTypeResource determines whether the given resource name is for an instance type.

func Kind

func Kind(kind string) schema.GroupVersionKind

func Resource

func Resource(resource string) schema.GroupResource

func TolerateTaints

func TolerateTaints(tolerations []Toleration, taints []Taint) bool

TolerateTaints returns if tolerations tolerate all taints

Types

type AttachedDisk

type AttachedDisk struct {
	// Name is the name of the disk.
	Name string
	// Device is the device name where the disk should be attached.
	// Pointer to distinguish between explicit zero and not specified.
	// If empty, an unused device name will be determined if possible.
	Device *string
	// AttachedDiskSource is the source where the storage for the disk resides at.
	AttachedDiskSource
}

AttachedDisk defines a disk attached to a instance.

func (*AttachedDisk) DeepCopy

func (in *AttachedDisk) DeepCopy() *AttachedDisk

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

func (*AttachedDisk) DeepCopyInto

func (in *AttachedDisk) DeepCopyInto(out *AttachedDisk)

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

type AttachedDiskSource

type AttachedDiskSource struct {
	// DiskRef instructs to use the specified Disk as source for the attachment.
	DiskRef *LocalObjectReference
	// EmptyDisk instructs to use a disk offered by the fleet provider.
	EmptyDisk *EmptyDiskSource
	// Ephemeral instructs to create an ephemeral (i.e. coupled to the lifetime of the surrounding object)
	// disk to use.
	Ephemeral *EphemeralDiskSource
}

AttachedDiskSource specifies the source to use for a disk.

func (*AttachedDiskSource) DeepCopy

func (in *AttachedDiskSource) DeepCopy() *AttachedDiskSource

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

func (*AttachedDiskSource) DeepCopyInto

func (in *AttachedDiskSource) DeepCopyInto(out *AttachedDiskSource)

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

type AttachedDiskState

type AttachedDiskState string

AttachedDiskState is the infrastructure attachment state a disk can be in.

const (
	// AttachedDiskStatePending indicates that the attachment of a disk is pending.
	AttachedDiskStatePending AttachedDiskState = "Pending"
	// AttachedDiskStateAttached indicates that a disk has been successfully attached.
	AttachedDiskStateAttached AttachedDiskState = "Attached"
)

type AttachedDiskStatus

type AttachedDiskStatus struct {
	// Name is the name of the attached disk.
	Name string
	// State represents the attachment state of a disk.
	State AttachedDiskState
	// LastStateTransitionTime is the last time the State transitioned.
	LastStateTransitionTime *metav1.Time
}

AttachedDiskStatus is the status of a disk.

func (*AttachedDiskStatus) DeepCopy

func (in *AttachedDiskStatus) DeepCopy() *AttachedDiskStatus

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

func (*AttachedDiskStatus) DeepCopyInto

func (in *AttachedDiskStatus) DeepCopyInto(out *AttachedDiskStatus)

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

type ConfigMapKeySelector

type ConfigMapKeySelector struct {
	// Name of the referent.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
	Name string
	// The key of the entry in the ConfigMap resource's `data` field to be used.
	// Some instances of this field may be defaulted, in others it may be
	// required.
	// +optional
	Key string
}

ConfigMapKeySelector is a reference to a specific 'key' within a ConfigMap resource. In some instances, `key` is a required field. +structType=atomic

func (*ConfigMapKeySelector) DeepCopy

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

func (*ConfigMapKeySelector) DeepCopyInto

func (in *ConfigMapKeySelector) DeepCopyInto(out *ConfigMapKeySelector)

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

type DaemonEndpoint

type DaemonEndpoint struct {
	// Port number of the given endpoint.
	Port int32
}

DaemonEndpoint contains information about a single Daemon endpoint.

func (*DaemonEndpoint) DeepCopy

func (in *DaemonEndpoint) DeepCopy() *DaemonEndpoint

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

func (*DaemonEndpoint) DeepCopyInto

func (in *DaemonEndpoint) DeepCopyInto(out *DaemonEndpoint)

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

type Disk

type Disk struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   DiskSpec
	Status DiskStatus
}

Disk is the Schema for the disks API

func (*Disk) DeepCopy

func (in *Disk) DeepCopy() *Disk

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

func (*Disk) DeepCopyInto

func (in *Disk) DeepCopyInto(out *Disk)

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

func (*Disk) DeepCopyObject

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

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

type DiskAccess

type DiskAccess struct {
	// Driver is the name of the drive to use for this volume. Required.
	Driver string
	// Handle is the unique handle of the volume.
	Handle string
	// Attributes are attributes of the volume to use.
	Attributes map[string]string
	// SecretRef references the (optional) secret containing the data to access the Disk.
	SecretRef *LocalObjectReference
}

func (*DiskAccess) DeepCopy

func (in *DiskAccess) DeepCopy() *DiskAccess

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

func (*DiskAccess) DeepCopyInto

func (in *DiskAccess) DeepCopyInto(out *DiskAccess)

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

type DiskList

type DiskList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []Disk
}

DiskList contains a list of Disk

func (*DiskList) DeepCopy

func (in *DiskList) DeepCopy() *DiskList

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

func (*DiskList) DeepCopyInto

func (in *DiskList) DeepCopyInto(out *DiskList)

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

func (*DiskList) DeepCopyObject

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

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

type DiskSpec

type DiskSpec struct {
	// TypeRef references the DiskClass of the Disk.
	TypeRef LocalObjectReference
	// InstanceRef references the using instance of the Disk.
	InstanceRef *LocalUIDReference
	// Resources is a description of the Disk's resources and capacity.
	Resources ResourceList
}

DiskSpec defines the desired state of Disk

func (*DiskSpec) DeepCopy

func (in *DiskSpec) DeepCopy() *DiskSpec

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

func (*DiskSpec) DeepCopyInto

func (in *DiskSpec) DeepCopyInto(out *DiskSpec)

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

type DiskState

type DiskState string

DiskState represents the infrastructure state of a Disk.

const (
	// DiskStatePending reports whether a Disk is about to be ready.
	DiskStatePending DiskState = "Pending"
	// DiskStateAvailable reports whether a Disk is available to be used.
	DiskStateAvailable DiskState = "Available"
	// DiskStateError reports that a Disk is in an error state.
	DiskStateError DiskState = "Error"
)

type DiskStatus

type DiskStatus struct {
	// State represents the infrastructure state of a Disk.
	State DiskState
	// Access contains information to access the Disk. Must be set when Disk is in DiskStateAvailable.
	Access *DiskAccess
	// LastStateTransitionTime is the last time the State transitioned between values.
	LastStateTransitionTime *metav1.Time
}

DiskStatus defines the observed state of Disk

func (*DiskStatus) DeepCopy

func (in *DiskStatus) DeepCopy() *DiskStatus

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

func (*DiskStatus) DeepCopyInto

func (in *DiskStatus) DeepCopyInto(out *DiskStatus)

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

type DiskTemplateSpec

type DiskTemplateSpec struct {
	metav1.ObjectMeta
	Spec DiskSpec
}

DiskTemplateSpec is the specification of a Disk template.

func (*DiskTemplateSpec) DeepCopy

func (in *DiskTemplateSpec) DeepCopy() *DiskTemplateSpec

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

func (*DiskTemplateSpec) DeepCopyInto

func (in *DiskTemplateSpec) DeepCopyInto(out *DiskTemplateSpec)

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

type DiskType

type DiskType struct {
	metav1.TypeMeta
	metav1.ObjectMeta
}

DiskType is the Schema for the disktypes API.

func (*DiskType) DeepCopy

func (in *DiskType) DeepCopy() *DiskType

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

func (*DiskType) DeepCopyInto

func (in *DiskType) DeepCopyInto(out *DiskType)

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

func (*DiskType) DeepCopyObject

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

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

type DiskTypeList

type DiskTypeList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []DiskType
}

DiskTypeList contains a list of DiskType.

func (*DiskTypeList) DeepCopy

func (in *DiskTypeList) DeepCopy() *DiskTypeList

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

func (*DiskTypeList) DeepCopyInto

func (in *DiskTypeList) DeepCopyInto(out *DiskTypeList)

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

func (*DiskTypeList) DeepCopyObject

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

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

type EFIVar

type EFIVar struct {
	// Name is the name of the EFIVar.
	Name string
	// UUID is the uuid of the EFIVar.
	UUID string
	// Value is the value of the EFIVar.
	Value string
}

EFIVar is a variable to pass to EFI while booting up.

func (*EFIVar) DeepCopy

func (in *EFIVar) DeepCopy() *EFIVar

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

func (*EFIVar) DeepCopyInto

func (in *EFIVar) DeepCopyInto(out *EFIVar)

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

type EmptyDiskSource

type EmptyDiskSource struct {
	// SizeLimit is the total amount of local storage required for this EmptyDisk disk.
	// The default is nil which means that the limit is undefined.
	SizeLimit *resource.Quantity
}

EmptyDiskSource is a disk that's offered by the fleet provider. Usually ephemeral (i.e. deleted when the surrounding entity is deleted), with varying performance characteristics. Potentially not recoverable.

func (*EmptyDiskSource) DeepCopy

func (in *EmptyDiskSource) DeepCopy() *EmptyDiskSource

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

func (*EmptyDiskSource) DeepCopyInto

func (in *EmptyDiskSource) DeepCopyInto(out *EmptyDiskSource)

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

type EphemeralDiskSource

type EphemeralDiskSource struct {
	// DiskTemplate is the template definition of a Disk.
	DiskTemplate *DiskTemplateSpec
}

EphemeralDiskSource is a definition for an ephemeral (i.e. coupled to the lifetime of the surrounding object) disk.

func (*EphemeralDiskSource) DeepCopy

func (in *EphemeralDiskSource) DeepCopy() *EphemeralDiskSource

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

func (*EphemeralDiskSource) DeepCopyInto

func (in *EphemeralDiskSource) DeepCopyInto(out *EphemeralDiskSource)

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

type Fleet

type Fleet struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   FleetSpec
	Status FleetStatus
}

Fleet is the Schema for the fleets API

func (*Fleet) DeepCopy

func (in *Fleet) DeepCopy() *Fleet

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

func (*Fleet) DeepCopyInto

func (in *Fleet) DeepCopyInto(out *Fleet)

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

func (*Fleet) DeepCopyObject

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

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

type FleetAddress

type FleetAddress struct {
	Type    FleetAddressType
	Address string
}

func (*FleetAddress) DeepCopy

func (in *FleetAddress) DeepCopy() *FleetAddress

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

func (*FleetAddress) DeepCopyInto

func (in *FleetAddress) DeepCopyInto(out *FleetAddress)

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

type FleetAddressType

type FleetAddressType string
const (
	// FleetHostName identifies a name of the fleet. Although every fleet can be assumed
	// to have a FleetAddress of this type, its exact syntax and semantics are not
	// defined, and are not consistent between different clusters.
	FleetHostName FleetAddressType = "Hostname"

	// FleetInternalIP identifies an IP address which may not be visible to hosts outside the cluster.
	// By default, it is assumed that apiserver can reach fleet internal IPs, though it is possible
	// to configure clusters where this is not the case.
	//
	// FleetInternalIP is the default type of fleet IP, and does not necessarily imply
	// that the IP is ONLY reachable internally. If a fleet has multiple internal IPs,
	// no specific semantics are assigned to the additional IPs.
	FleetInternalIP FleetAddressType = "InternalIP"

	// FleetExternalIP identifies an IP address which is, in some way, intended to be more usable from outside
	// the cluster than an internal IP, though no specific semantics are defined.
	FleetExternalIP FleetAddressType = "ExternalIP"

	// FleetInternalDNS identifies a DNS name which resolves to an IP address which has
	// the characteristics of a FleetInternalIP. The IP it resolves to may or may not
	// be a listed FleetInternalIP address.
	FleetInternalDNS FleetAddressType = "InternalDNS"

	// FleetExternalDNS identifies a DNS name which resolves to an IP address which has the characteristics
	// of FleetExternalIP. The IP it resolves to may or may not be a listed MachineExternalIP address.
	FleetExternalDNS FleetAddressType = "ExternalDNS"
)

type FleetCondition

type FleetCondition struct {
	// Type is the type of the condition.
	Type FleetConditionType
	// Status is the status of the condition.
	Status corev1.ConditionStatus
	// Reason is a machine-readable indication of why the condition is in a certain state.
	Reason string
	// Message is a human-readable explanation of why the condition has a certain reason / state.
	Message string
	// ObservedGeneration represents the .metadata.generation that the condition was set based upon.
	ObservedGeneration int64
	// LastTransitionTime is the last time the status of a condition has transitioned from one state to another.
	LastTransitionTime metav1.Time
}

FleetCondition is one of the conditions of a disk.

func (*FleetCondition) DeepCopy

func (in *FleetCondition) DeepCopy() *FleetCondition

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

func (*FleetCondition) DeepCopyInto

func (in *FleetCondition) DeepCopyInto(out *FleetCondition)

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

type FleetConditionType

type FleetConditionType string

FleetConditionType is a type a FleetCondition can have.

type FleetDaemonEndpoints

type FleetDaemonEndpoints struct {
	// Endpoint on which spherelet is listening.
	// +optional
	SphereletEndpoint DaemonEndpoint
}

FleetDaemonEndpoints lists ports opened by daemons running on the Fleet.

func (*FleetDaemonEndpoints) DeepCopy

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

func (*FleetDaemonEndpoints) DeepCopyInto

func (in *FleetDaemonEndpoints) DeepCopyInto(out *FleetDaemonEndpoints)

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

type FleetList

type FleetList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []Fleet
}

FleetList contains a list of Fleet

func (*FleetList) DeepCopy

func (in *FleetList) DeepCopy() *FleetList

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

func (*FleetList) DeepCopyInto

func (in *FleetList) DeepCopyInto(out *FleetList)

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

func (*FleetList) DeepCopyObject

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

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

type FleetSpec

type FleetSpec struct {
	// ProviderID identifies the Fleet on provider side.
	ProviderID string
	// Taints of the Fleet. Only Machines who tolerate all the taints
	// will land in the Fleet.
	Taints []Taint
}

FleetSpec defines the desired state of Fleet

func (*FleetSpec) DeepCopy

func (in *FleetSpec) DeepCopy() *FleetSpec

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

func (*FleetSpec) DeepCopyInto

func (in *FleetSpec) DeepCopyInto(out *FleetSpec)

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

type FleetState

type FleetState string

FleetState is a state a Fleet can be in. +enum

const (
	// FleetStateReady marks a Fleet as ready for accepting a Machine.
	FleetStateReady FleetState = "Ready"
	// FleetStatePending marks a Fleet as pending readiness.
	FleetStatePending FleetState = "Pending"
	// FleetStateError marks a Fleet in an error state.
	FleetStateError FleetState = "Error"
	// FleetStateOffline marks a Fleet as offline.
	FleetStateOffline FleetState = "Offline"
)

type FleetStatus

type FleetStatus struct {
	State           FleetState
	Conditions      []FleetCondition
	Addresses       []FleetAddress
	DaemonEndpoints FleetDaemonEndpoints
	// Capacity represents the total resources of a fleet.
	Capacity ResourceList
	// Allocatable represents the resources of a fleet that are available for scheduling.
	Allocatable ResourceList
}

FleetStatus defines the observed state of Fleet

func (*FleetStatus) DeepCopy

func (in *FleetStatus) DeepCopy() *FleetStatus

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

func (*FleetStatus) DeepCopyInto

func (in *FleetStatus) DeepCopyInto(out *FleetStatus)

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

type Instance

type Instance struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   InstanceSpec
	Status InstanceStatus
}

Instance is the Schema for the instances API

func (*Instance) DeepCopy

func (in *Instance) DeepCopy() *Instance

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

func (*Instance) DeepCopyInto

func (in *Instance) DeepCopyInto(out *Instance)

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

func (*Instance) DeepCopyObject

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

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

type InstanceExecOptions

type InstanceExecOptions struct {
	metav1.TypeMeta
	InsecureSkipTLSVerifyBackend bool
}

InstanceExecOptions is the query options to a Instance's remote exec call

func (*InstanceExecOptions) DeepCopy

func (in *InstanceExecOptions) DeepCopy() *InstanceExecOptions

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

func (*InstanceExecOptions) DeepCopyInto

func (in *InstanceExecOptions) DeepCopyInto(out *InstanceExecOptions)

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

func (*InstanceExecOptions) DeepCopyObject

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

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

type InstanceList

type InstanceList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []Instance
}

InstanceList contains a list of Instance

func (*InstanceList) DeepCopy

func (in *InstanceList) DeepCopy() *InstanceList

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

func (*InstanceList) DeepCopyInto

func (in *InstanceList) DeepCopyInto(out *InstanceList)

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

func (*InstanceList) DeepCopyObject

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

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

type InstanceSpec

type InstanceSpec struct {
	// InstanceTypeRef references the instance type of the instance.
	InstanceTypeRef LocalObjectReference
	// FleetSelector selects a suitable Fleet by the given labels.
	FleetSelector map[string]string
	// FleetRef defines the fleet to run the instance in.
	// If empty, a scheduler will figure out an appropriate pool to run the instance in.
	FleetRef *LocalObjectReference
	// Power is the desired instance power state.
	// Defaults to PowerOn.
	Power Power
	// Image is the optional URL providing the operating system image of the instance.
	// +optional
	Image string
	// ImagePullSecretRef is an optional secret for pulling the image of a instance.
	ImagePullSecretRef *LocalObjectReference
	// NetworkInterfaces define a list of network interfaces present on the instance
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge,retainKeys
	NetworkInterfaces []NetworkInterface
	// Disks are the disks attached to this instance.
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge,retainKeys
	Disks []AttachedDisk
	// IgnitionRef is a reference to a secret containing the ignition YAML for the instance to boot up.
	// If key is empty, DefaultIgnitionKey will be used as fallback.
	IgnitionRef *SecretKeySelector
	// EFIVars are variables to pass to EFI while booting up.
	// +optional
	// +patchMergeKey=name
	// +patchStrategy=merge,retainKeys
	EFIVars []EFIVar
	// Tolerations define tolerations the Instance has. Only fleets whose taints
	// covered by Tolerations will be considered to run the Instance.
	Tolerations []Toleration
}

InstanceSpec defines the desired state of Instance

func (*InstanceSpec) DeepCopy

func (in *InstanceSpec) DeepCopy() *InstanceSpec

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

func (*InstanceSpec) DeepCopyInto

func (in *InstanceSpec) DeepCopyInto(out *InstanceSpec)

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

type InstanceState

type InstanceState string

InstanceState is the state of a instance. +enum

const (
	// InstanceStatePending means the Instance has been accepted by the system, but not yet completely started.
	// This includes time before being bound to a Fleet, as well as time spent setting up the Instance on that
	// Fleet.
	InstanceStatePending InstanceState = "Pending"
	// InstanceStateRunning means the instance is running on a Fleet.
	InstanceStateRunning InstanceState = "Running"
	// InstanceStateShutdown means the instance is shut down.
	InstanceStateShutdown InstanceState = "Shutdown"
	// InstanceStateTerminated means the instance has been permanently stopped and cannot be started.
	InstanceStateTerminated InstanceState = "Terminated"
)

type InstanceStatus

type InstanceStatus struct {
	// InstanceID is the provider specific instance ID in the format '<type>://<instance_id>'.
	InstanceID string
	// ObservedGeneration is the last generation the Fleet observed of the Instance.
	ObservedGeneration int64
	// State is the infrastructure state of the instance.
	State InstanceState
	// NetworkInterfaces is the list of network interface states for the instance.
	NetworkInterfaces []NetworkInterfaceStatus
	// Disks is the list of disk states for the instance.
	Disks []AttachedDiskStatus
}

InstanceStatus defines the observed state of Instance

func (*InstanceStatus) DeepCopy

func (in *InstanceStatus) DeepCopy() *InstanceStatus

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

func (*InstanceStatus) DeepCopyInto

func (in *InstanceStatus) DeepCopyInto(out *InstanceStatus)

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

type InstanceType

type InstanceType struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	// Class specifies the class of the InstanceType.
	// Can either be 'Continuous' or 'Discrete'.
	Class InstanceTypeClass

	// Capabilities are the capabilities of the instance type.
	Capabilities ResourceList
}

InstanceType is the Schema for the instancetypes API

func (*InstanceType) DeepCopy

func (in *InstanceType) DeepCopy() *InstanceType

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

func (*InstanceType) DeepCopyInto

func (in *InstanceType) DeepCopyInto(out *InstanceType)

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

func (*InstanceType) DeepCopyObject

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

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

type InstanceTypeClass

type InstanceTypeClass string

InstanceTypeClass denotes the type of InstanceType.

const (
	InstanceTypeContinuous InstanceTypeClass = "Continuous"
	InstanceTypeDiscrete   InstanceTypeClass = "Discrete"
)

type InstanceTypeList

type InstanceTypeList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []InstanceType
}

InstanceTypeList contains a list of InstanceType

func (*InstanceTypeList) DeepCopy

func (in *InstanceTypeList) DeepCopy() *InstanceTypeList

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

func (*InstanceTypeList) DeepCopyInto

func (in *InstanceTypeList) DeepCopyInto(out *InstanceTypeList)

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

func (*InstanceTypeList) DeepCopyObject

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

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

type LocalObjectReference

type LocalObjectReference struct {
	// Name of the referent.
	Name string
}

LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.

func LocalObjRef

func LocalObjRef(name string) LocalObjectReference

func NewLocalObjRef

func NewLocalObjRef(name string) *LocalObjectReference

func (*LocalObjectReference) DeepCopy

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

func (*LocalObjectReference) DeepCopyInto

func (in *LocalObjectReference) DeepCopyInto(out *LocalObjectReference)

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

type LocalUIDReference

type LocalUIDReference struct {
	// Name is the name of the referenced entity.
	Name string
	// UID is the UID of the referenced entity.
	UID types.UID
}

LocalUIDReference is a reference to another entity including its UID +structType=atomic

func LocalObjUIDRef

func LocalObjUIDRef(obj metav1.Object) LocalUIDReference

func NewLocalObjUIDRef

func NewLocalObjUIDRef(obj metav1.Object) *LocalUIDReference

func (*LocalUIDReference) DeepCopy

func (in *LocalUIDReference) DeepCopy() *LocalUIDReference

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

func (*LocalUIDReference) DeepCopyInto

func (in *LocalUIDReference) DeepCopyInto(out *LocalUIDReference)

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

type Network

type Network struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   NetworkSpec
	Status NetworkStatus
}

Network is the Schema for the network API

func (*Network) DeepCopy

func (in *Network) DeepCopy() *Network

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

func (*Network) DeepCopyInto

func (in *Network) DeepCopyInto(out *Network)

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

func (*Network) DeepCopyObject

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

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

type NetworkInterface

type NetworkInterface struct {
	// Name is the name of the network interface.
	Name string
	// SubnetRef references the Subnet this NetworkInterface is connected to
	SubnetRef SubnetReference
	// IPFamilies defines which IPFamilies this NetworkInterface is supporting
	IPFamilies []corev1.IPFamily
	// IPs are the literal requested IPs for this NetworkInterface.
	IPs []string
	// AccessIPFamilies are the access configuration IP families.
	AccessIPFamilies []corev1.IPFamily
	// AccessIPs are the literal request access IPs.
	AccessIPs []string
}

NetworkInterface is the definition of a single interface

func (*NetworkInterface) DeepCopy

func (in *NetworkInterface) DeepCopy() *NetworkInterface

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

func (*NetworkInterface) DeepCopyInto

func (in *NetworkInterface) DeepCopyInto(out *NetworkInterface)

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

type NetworkInterfaceState

type NetworkInterfaceState string

NetworkInterfaceState is the infrastructure attachment state a NetworkInterface can be in.

const (
	// NetworkInterfaceStatePending indicates that the attachment of a network interface is pending.
	NetworkInterfaceStatePending NetworkInterfaceState = "Pending"
	// NetworkInterfaceStateAttached indicates that a network interface has been successfully attached.
	NetworkInterfaceStateAttached NetworkInterfaceState = "Attached"
)

type NetworkInterfaceStatus

type NetworkInterfaceStatus struct {
	// Name is the name of the NetworkInterface to whom the status belongs to.
	Name string
	// IPs are the ips allocated for the network interface.
	IPs []string
	// AccessIPs are the allocated access IPs for the network interface.
	AccessIPs []string
	// State represents the attachment state of a NetworkInterface.
	State NetworkInterfaceState
	// LastStateTransitionTime is the last time the State transitioned.
	LastStateTransitionTime *metav1.Time
}

NetworkInterfaceStatus reports the status of an NetworkInterfaceSource.

func (*NetworkInterfaceStatus) DeepCopy

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

func (*NetworkInterfaceStatus) DeepCopyInto

func (in *NetworkInterfaceStatus) DeepCopyInto(out *NetworkInterfaceStatus)

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

type NetworkList

type NetworkList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []Network
}

NetworkList contains a list of Network

func (*NetworkList) DeepCopy

func (in *NetworkList) DeepCopy() *NetworkList

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

func (*NetworkList) DeepCopyInto

func (in *NetworkList) DeepCopyInto(out *NetworkList)

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

func (*NetworkList) DeepCopyObject

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

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

type NetworkSpec

type NetworkSpec struct {
}

NetworkSpec defines the desired state of Network

func (*NetworkSpec) DeepCopy

func (in *NetworkSpec) DeepCopy() *NetworkSpec

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

func (*NetworkSpec) DeepCopyInto

func (in *NetworkSpec) DeepCopyInto(out *NetworkSpec)

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

type NetworkState

type NetworkState string

NetworkState is the state of a network. +enum

const (
	// NetworkStatePending means the network is being provisioned.
	NetworkStatePending NetworkState = "Pending"
	// NetworkStateAvailable means the network is ready to use.
	NetworkStateAvailable NetworkState = "Available"
	// NetworkStateError means the network is in an error state.
	NetworkStateError NetworkState = "Error"
)

type NetworkStatus

type NetworkStatus struct {
	// State is the state of the machine.
	State NetworkState
}

NetworkStatus defines the observed state of Network

func (*NetworkStatus) DeepCopy

func (in *NetworkStatus) DeepCopy() *NetworkStatus

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

func (*NetworkStatus) DeepCopyInto

func (in *NetworkStatus) DeepCopyInto(out *NetworkStatus)

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

type ObjectSelector

type ObjectSelector struct {
	// Kind is the kind of object to select.
	Kind string
	// LabelSelector is the label selector to select objects of the specified Kind by.
	metav1.LabelSelector
}

ObjectSelector specifies how to select objects of a certain kind.

func (*ObjectSelector) DeepCopy

func (in *ObjectSelector) DeepCopy() *ObjectSelector

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

func (*ObjectSelector) DeepCopyInto

func (in *ObjectSelector) DeepCopyInto(out *ObjectSelector)

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

type Power

type Power string

Power is the desired power state of a Instance.

const (
	// PowerOn indicates that a Instance should be powered on.
	PowerOn Power = "On"
	// PowerOff indicates that a Instance should be powered off.
	PowerOff Power = "Off"
)

type ResourceList

type ResourceList map[ResourceName]resource.Quantity

ResourceList is a list of ResourceName alongside their resource.Quantity.

func (*ResourceList) CPU

func (rl *ResourceList) CPU() *resource.Quantity

CPU is a shorthand for getting the quantity associated with ResourceCPU.

func (ResourceList) DeepCopy

func (in ResourceList) DeepCopy() ResourceList

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

func (ResourceList) DeepCopyInto

func (in ResourceList) DeepCopyInto(out *ResourceList)

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

func (*ResourceList) IOPS

func (rl *ResourceList) IOPS() *resource.Quantity

IOPS is a shorthand for getting the quantity associated with ResourceIOPS.

func (*ResourceList) Memory

func (rl *ResourceList) Memory() *resource.Quantity

Memory is a shorthand for getting the quantity associated with ResourceMemory.

func (*ResourceList) Name

func (rl *ResourceList) Name(name ResourceName, defaultFormat resource.Format) *resource.Quantity

Name returns the resource with name if specified, otherwise it returns a nil quantity with default format.

func (*ResourceList) Storage

func (rl *ResourceList) Storage() *resource.Quantity

Storage is a shorthand for getting the quantity associated with ResourceStorage.

func (*ResourceList) TPS

func (rl *ResourceList) TPS() *resource.Quantity

TPS is a shorthand for getting the quantity associated with ResourceTPS.

type ResourceName

type ResourceName string

ResourceName is the name of a resource, most often used alongside a resource.Quantity.

const (
	// ResourceCPU is the amount of cpu in cores.
	ResourceCPU ResourceName = "cpu"
	// ResourceMemory is the amount of memory in bytes.
	ResourceMemory ResourceName = "memory"
	// ResourceStorage is the amount of storage, in bytes.
	ResourceStorage ResourceName = "storage"
	// ResourceTPS defines max throughput per second. (e.g. 1Gi)
	ResourceTPS ResourceName = "tps"
	// ResourceIOPS defines max IOPS in input/output operations per second.
	ResourceIOPS ResourceName = "iops"

	// ResourceInstanceTypePrefix is the prefix for instance type resources.
	ResourceInstanceTypePrefix = "instance-type/"
)

func ResourceInstanceType

func ResourceInstanceType(name string) ResourceName

ResourceInstanceType is the resource for a specific instance type.

type SecretKeySelector

type SecretKeySelector struct {
	// Name of the referent.
	// More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
	Name string
	// The key of the entry in the Secret resource's `data` field to be used.
	// Some instances of this field may be defaulted, in others it may be
	// required.
	// +optional
	Key string
}

SecretKeySelector is a reference to a specific 'key' within a Secret resource. In some instances, `key` is a required field. +structType=atomic

func (*SecretKeySelector) DeepCopy

func (in *SecretKeySelector) DeepCopy() *SecretKeySelector

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

func (*SecretKeySelector) DeepCopyInto

func (in *SecretKeySelector) DeepCopyInto(out *SecretKeySelector)

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

type Subnet

type Subnet struct {
	metav1.TypeMeta
	metav1.ObjectMeta

	Spec   SubnetSpec
	Status SubnetStatus
}

Subnet is the Schema for the network API

func (*Subnet) DeepCopy

func (in *Subnet) DeepCopy() *Subnet

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

func (*Subnet) DeepCopyInto

func (in *Subnet) DeepCopyInto(out *Subnet)

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

func (*Subnet) DeepCopyObject

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

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

type SubnetList

type SubnetList struct {
	metav1.TypeMeta
	metav1.ListMeta
	Items []Subnet
}

SubnetList contains a list of Subnet

func (*SubnetList) DeepCopy

func (in *SubnetList) DeepCopy() *SubnetList

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

func (*SubnetList) DeepCopyInto

func (in *SubnetList) DeepCopyInto(out *SubnetList)

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

func (*SubnetList) DeepCopyObject

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

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

type SubnetReference

type SubnetReference struct {
	// NetworkName is the name of the referenced network.
	NetworkName string
	// Name of the referenced subnet.
	Name string
}

func (*SubnetReference) DeepCopy

func (in *SubnetReference) DeepCopy() *SubnetReference

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

func (*SubnetReference) DeepCopyInto

func (in *SubnetReference) DeepCopyInto(out *SubnetReference)

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

type SubnetSpec

type SubnetSpec struct {
	// NetworkRef references the network this subnet is part of.
	NetworkRef LocalObjectReference
	// CIDRs are the primary CIDR ranges of this Subnet.
	CIDRs []string
}

SubnetSpec defines the desired state of Subnet

func (*SubnetSpec) DeepCopy

func (in *SubnetSpec) DeepCopy() *SubnetSpec

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

func (*SubnetSpec) DeepCopyInto

func (in *SubnetSpec) DeepCopyInto(out *SubnetSpec)

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

type SubnetState

type SubnetState string

SubnetState is the state of a network. +enum

const (
	// SubnetStatePending means the network is being provisioned.
	SubnetStatePending SubnetState = "Pending"
	// SubnetStateAvailable means the network is ready to use.
	SubnetStateAvailable SubnetState = "Available"
	// SubnetStateError means the network is in an error state.
	SubnetStateError SubnetState = "Error"
)

type SubnetStatus

type SubnetStatus struct {
	// State is the state of the machine.
	State SubnetState
}

SubnetStatus defines the observed state of Subnet

func (*SubnetStatus) DeepCopy

func (in *SubnetStatus) DeepCopy() *SubnetStatus

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

func (*SubnetStatus) DeepCopyInto

func (in *SubnetStatus) DeepCopyInto(out *SubnetStatus)

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

type Taint

type Taint struct {
	// The taint key to be applied to a resource pool.
	Key string
	// The taint value corresponding to the taint key.
	Value string
	// The effect of the taint on resources
	// that do not tolerate the taint.
	// Valid effects are NoSchedule, PreferNoSchedule and NoExecute.
	Effect TaintEffect
}

Taint marks an effect with a value on a target resource pool.

func (*Taint) DeepCopy

func (in *Taint) DeepCopy() *Taint

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

func (*Taint) DeepCopyInto

func (in *Taint) DeepCopyInto(out *Taint)

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

type TaintEffect

type TaintEffect string
const (
	// TaintEffectNoSchedule causes not to allow new resources to schedule onto the resource pool unless they tolerate
	// the taint, but allow all already-running resources to continue running.
	// Enforced by the scheduler.
	TaintEffectNoSchedule TaintEffect = "NoSchedule"
)

type Toleration

type Toleration struct {
	// Key is the taint key that the toleration applies to. Empty means match all taint keys.
	// If the key is empty, operator must be Exists; this combination means to match all values and all keys.
	Key string
	// Operator represents a key's relationship to the value.
	// Valid operators are Exists and Equal. Defaults to Equal.
	// Exists is equivalent to wildcard for value, so that a resource can
	// tolerate all taints of a particular category.
	Operator TolerationOperator
	// Value is the taint value the toleration matches to.
	// If the operator is Exists, the value should be empty, otherwise just a regular string.
	Value string
	// Effect indicates the taint effect to match. Empty means match all taint effects.
	// When specified, allowed values are NoSchedule.
	Effect TaintEffect
}

Toleration marks the resource the toleration is attached to tolerate any taint that matches the triple <key,value,effect> using the matching operator <operator>.

func (*Toleration) DeepCopy

func (in *Toleration) DeepCopy() *Toleration

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

func (*Toleration) DeepCopyInto

func (in *Toleration) DeepCopyInto(out *Toleration)

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

func (*Toleration) ToleratesTaint

func (t *Toleration) ToleratesTaint(taint *Taint) bool

ToleratesTaint checks if the toleration tolerates the taint. The matching follows the rules below: (1) Empty toleration.effect means to match all taint effects,

otherwise taint effect must equal to toleration.effect.

(2) If toleration.operator is 'Exists', it means to match all taint values. (3) Empty toleration.key means to match all taint keys.

If toleration.key is empty, toleration.operator must be 'Exists';
this combination means to match all taint values and all taint keys.

type TolerationOperator

type TolerationOperator string

TolerationOperator is the set of operators that can be used in a toleration.

const (
	TolerationOpEqual  TolerationOperator = "Equal"
	TolerationOpExists TolerationOperator = "Exists"
)

type UIDReference

type UIDReference struct {
	// Namespace is the namespace of the referenced entity. If empty,
	// the same namespace as the referring resource is implied.
	Namespace string
	// Name is the name of the referenced entity.
	Name string
	// UID is the UID of the referenced entity.
	UID types.UID
}

UIDReference is a reference to another entity in a potentially different namespace including its UID. +structType=atomic

func (*UIDReference) DeepCopy

func (in *UIDReference) DeepCopy() *UIDReference

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

func (*UIDReference) DeepCopyInto

func (in *UIDReference) DeepCopyInto(out *UIDReference)

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

Directories

Path Synopsis
Package v1alpha1 is the v1alpha1 version of the API.
Package v1alpha1 is the v1alpha1 version of the API.

Jump to

Keyboard shortcuts

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