v1beta1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InstancePoolReadyCondition reports on current status of the Instance Pool. Ready indicates the group is provisioned.
	InstancePoolReadyCondition clusterv1.ConditionType = "InstancePoolReady"
	// InstancePoolNotFoundReason used when the Instance Pool couldn't be retrieved.
	InstancePoolNotFoundReason = "InstancePoolNotFound"
	// InstancePoolProvisionFailedReason used for failures during Instance Pool provisioning.
	InstancePoolProvisionFailedReason = "InstancePoolProvisionFailed"
	// InstancePoolDeletionInProgress Instance Pool is in a deletion in progress state.
	InstancePoolDeletionInProgress = "InstancePoolDeletionInProgress"
	// InstancePoolNotReadyReason used when the instance pool is in a pending state.
	InstancePoolNotReadyReason = "InstancePoolNotReady"

	// LaunchTemplateReadyCondition represents the status of an OCIachinePool's associated Instance Template.
	LaunchTemplateReadyCondition clusterv1.ConditionType = "LaunchTemplateReady"
	// LaunchTemplateNotFoundReason is used when an associated Launch Template can't be found.
	LaunchTemplateNotFoundReason = "LaunchTemplateNotFound"
	// LaunchTemplateCreateFailedReason used for failures during Launch Template creation.
	LaunchTemplateCreateFailedReason = "LaunchTemplateCreateFailed"
)
View Source
const (
	// MachinePoolFinalizer is the finalizer for the machine pool.
	MachinePoolFinalizer = "ocimachinepool.infrastructure.cluster.x-k8s.io"
)

Constants block.

Variables

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

	// 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 InstanceConfiguration

type InstanceConfiguration struct {
	InstanceConfigurationId string          `json:"instanceConfigurationId,omitempty"`
	InstanceDetails         InstanceDetails `json:"instanceDetails,omitempty"`
}

func (*InstanceConfiguration) DeepCopy

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

func (*InstanceConfiguration) DeepCopyInto

func (in *InstanceConfiguration) DeepCopyInto(out *InstanceConfiguration)

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

type InstanceDetails

type InstanceDetails struct {
	Shape string `json:"shape,omitempty"`
}

func (*InstanceDetails) DeepCopy

func (in *InstanceDetails) DeepCopy() *InstanceDetails

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

func (*InstanceDetails) DeepCopyInto

func (in *InstanceDetails) DeepCopyInto(out *InstanceDetails)

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

type LaunchDetails

type LaunchDetails struct {
	// Custom metadata key/value pairs that you provide, such as the SSH public key
	// required to connect to the instance.
	Metadata map[string]string `json:"metadata,omitempty"`

	Shape string `json:"shape,omitempty"`
}

LaunchDetails Instance launch details for creating an instance from an instance configuration https://docs.oracle.com/en-us/iaas/api/#/en/iaas/20160918/datatypes/InstanceConfigurationLaunchInstanceDetails

func (*LaunchDetails) DeepCopy

func (in *LaunchDetails) DeepCopy() *LaunchDetails

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

func (*LaunchDetails) DeepCopyInto

func (in *LaunchDetails) DeepCopyInto(out *LaunchDetails)

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

type OCIMachinePool

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

	Spec   OCIMachinePoolSpec   `json:"spec,omitempty"`
	Status OCIMachinePoolStatus `json:"status,omitempty"`
}

func (*OCIMachinePool) DeepCopy

func (in *OCIMachinePool) DeepCopy() *OCIMachinePool

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

func (*OCIMachinePool) DeepCopyInto

func (in *OCIMachinePool) DeepCopyInto(out *OCIMachinePool)

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

func (*OCIMachinePool) DeepCopyObject

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

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

func (*OCIMachinePool) GetConditions

func (m *OCIMachinePool) GetConditions() clusterv1.Conditions

GetConditions returns the list of conditions for an OCIMachine API object.

func (*OCIMachinePool) SetConditions

func (m *OCIMachinePool) SetConditions(conditions clusterv1.Conditions)

SetConditions will set the given conditions on an OCIMachine object.

type OCIMachinePoolList

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

OCIMachinePoolList contains a list of OCIMachinePool.

func (*OCIMachinePoolList) DeepCopy

func (in *OCIMachinePoolList) DeepCopy() *OCIMachinePoolList

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

func (*OCIMachinePoolList) DeepCopyInto

func (in *OCIMachinePoolList) DeepCopyInto(out *OCIMachinePoolList)

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

func (*OCIMachinePoolList) DeepCopyObject

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

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

type OCIMachinePoolSpec

type OCIMachinePoolSpec struct {
	// ProviderID is the OCID of the associated InstancePool in a provider format
	// +optional
	ProviderID *string `json:"providerID,omitempty"`

	// OCID is the OCID of the associated InstancePool
	// +optional
	OCID string `json:"ocid,omitempty"`

	// OCID of the image to be used to launch the instance.
	ImageId string `json:"imageId,omitempty"`

	// Custom metadata key/value pairs that you provide, such as the SSH public key
	// required to connect to the instance.
	Metadata map[string]string `json:"metadata,omitempty"`

	// The shape configuration of the instance, applicable for flex instances.
	ShapeConfig ShapeConfig `json:"shapeConfig,omitempty"`

	// Whether the VNIC should be assigned a public IP address.
	// +kubebuilder:default=false
	// +optional
	VNICAssignPublicIp bool `json:"vnicAssignPublicIp,omitempty"`

	PlacementDetails []PlacementDetails `json:"placementDetails,omitempty"`

	InstanceConfiguration InstanceConfiguration `json:"instanceConfiguration,omitempty"`

	// ProviderIDList are the identification IDs of machine instances provided by the provider.
	// This field must match the provider IDs as seen on the node objects corresponding to a machine pool's machine instances.
	// +optional
	ProviderIDList []string `json:"providerIDList,omitempty"`
}

OCIMachinePoolSpec defines the desired state of OCIMachinePool

func (*OCIMachinePoolSpec) DeepCopy

func (in *OCIMachinePoolSpec) DeepCopy() *OCIMachinePoolSpec

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

func (*OCIMachinePoolSpec) DeepCopyInto

func (in *OCIMachinePoolSpec) DeepCopyInto(out *OCIMachinePoolSpec)

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

type OCIMachinePoolStatus

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

	// Replicas is the most recently observed number of replicas
	// +optional
	Replicas int32 `json:"replicas"`

	// Conditions defines current service state of the OCIMachinePool.
	// +optional
	Conditions clusterv1.Conditions `json:"conditions,omitempty"`

	FailureReason *errors.MachineStatusError `json:"failureReason,omitempty"`

	FailureMessage *string `json:"failureMessage,omitempty"`
}

OCIMachinePoolStatus defines the observed state of OCIMachinePool

func (*OCIMachinePoolStatus) DeepCopy

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

func (*OCIMachinePoolStatus) DeepCopyInto

func (in *OCIMachinePoolStatus) DeepCopyInto(out *OCIMachinePoolStatus)

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

type PlacementDetails

type PlacementDetails struct {
	// The availability domain to place instances.
	AvailabilityDomain int `mandatory:"true" json:"availabilityDomain"`
}

func (*PlacementDetails) DeepCopy

func (in *PlacementDetails) DeepCopy() *PlacementDetails

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

func (*PlacementDetails) DeepCopyInto

func (in *PlacementDetails) DeepCopyInto(out *PlacementDetails)

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

type ShapeConfig

type ShapeConfig struct {
	// The total number of OCPUs available to the instance.
	Ocpus string `json:"ocpus,omitempty"`

	// The total amount of memory available to the instance, in gigabytes.
	MemoryInGBs string `json:"memoryInGBs,omitempty"`

	// The baseline OCPU utilization for a subcore burstable VM instance. Leave this attribute blank for a
	// non-burstable instance, or explicitly specify non-burstable with `BASELINE_1_1`.
	// The following values are supported:
	// - `BASELINE_1_8` - baseline usage is 1/8 of an OCPU.
	// - `BASELINE_1_2` - baseline usage is 1/2 of an OCPU.
	// - `BASELINE_1_1` - baseline usage is an entire OCPU. This represents a non-burstable instance.
	BaselineOcpuUtilization string `json:"baselineOcpuUtilization,omitempty"`
}

ShapeConfig defines the configuration options for the compute instance shape https://docs.oracle.com/en-us/iaas/api/#/en/iaas/20160918/datatypes/LaunchInstanceShapeConfigDetails

func (*ShapeConfig) DeepCopy

func (in *ShapeConfig) DeepCopy() *ShapeConfig

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

func (*ShapeConfig) DeepCopyInto

func (in *ShapeConfig) DeepCopyInto(out *ShapeConfig)

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