Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parameters to compute launch call #160

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 34 additions & 1 deletion api/v1beta1/ocimachine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,44 @@ type OCIMachineSpec struct {
// Shape of the instance.
Shape string `json:"shape,omitempty"`

IpxeScript *string `json:"ipxeScript,omitempty"`

// CapacityReservationId defines the OCID of the compute capacity reservation this instance is launched under.
// You can opt out of all default reservations by specifying an empty string as input for this field.
// For more information, see Capacity Reservations (https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/reserve-capacity.htm#default).
CapacityReservationId *string `json:"capacityReservationId,omitempty"`

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

// PrimaryNetworkInterface is required to specify subnet.
// NetworkDetails defines the configuration options for the network
NetworkDetails NetworkDetails `json:"networkDetails,omitempty"`

// LaunchOptions defines the options for tuning the compatibility and performance of VM shapes
LaunchOptions *LaunchOptions `json:"launchOptions,omitempty"`

// InstanceOptions defines the instance options
InstanceOptions *InstanceOptions `json:"instanceOptions,omitempty"`

// LaunchInstanceAvailabilityConfig defines the options for VM migration during infrastructure maintenance events and for defining
// the availability of a VM instance after a maintenance event that impacts the underlying hardware.
AvailabilityConfig *LaunchInstanceAvailabilityConfig `json:"availabilityConfig,omitempty"`

// PreemptibleInstanceConfig Configuration options for preemptible instances.
PreemptibleInstanceConfig *PreemptibleInstanceConfig `json:"preemptibleInstanceConfig,omitempty"`

// LaunchInstanceAgentConfig defines the options for the Oracle Cloud Agent software running on the instance.
AgentConfig *LaunchInstanceAgentConfig `json:"agentConfig,omitempty"`

// InstanceSourceViaImageConfig defines the options for booting up instances via images
InstanceSourceViaImageDetails *InstanceSourceViaImageConfig `json:"instanceSourceViaImageConfig,omitempty"`

// InstanceSourceViaImageConfig defines the platform config parameters
PlatformConfig *PlatformConfig `json:"platformConfig,omitempty"`

// DedicatedVmHostId defines the OCID of the dedicated VM host.
DedicatedVmHostId *string `json:"dedicatedVmHostId,omitempty"`

// Provider ID of the instance, this will be set by Cluster API provider itself,
// users should not set this parameter.
// +optional
Expand Down Expand Up @@ -92,6 +124,7 @@ type OCIMachineSpec struct {
// defined in the OCICluster Spec. Optional, only if multiple NSGs of a type
// is defined, else the first element is used.
// +optional
// Deprecated, please use NetworkDetails.NSGNames
NSGName string `json:"nsgName,omitempty"`
}

Expand Down
530 changes: 526 additions & 4 deletions api/v1beta1/types.go

Large diffs are not rendered by default.

Loading