@@ -35,23 +35,23 @@ const (
3535// Please read the API https://docs.oracle.com/en-us/iaas/api/#/en/iaas/20160918/Instance/LaunchInstance
3636// for more information about the parameters below
3737type OCIMachineSpec struct {
38- // OCID of launched compute instance
38+ // OCID of launched compute instance.
3939 // +optional
4040 InstanceId * string `json:"instanceId,omitempty"`
4141
42- // OCID of the image to be used to launch the instance
42+ // OCID of the image to be used to launch the instance.
4343 ImageId string `json:"imageId,omitempty"`
4444
4545 // Compartment to launch the instance in.
4646 CompartmentId string `json:"compartmentId,omitempty"`
4747
48- // Shape of the instance
48+ // Shape of the instance.
4949 Shape string `json:"shape,omitempty"`
5050
51- // The shape configuration of rhe instance, applicable for flex instances
51+ // The shape configuration of rhe instance, applicable for flex instances.
5252 ShapeConfig ShapeConfig `json:"shapeConfig,omitempty"`
5353
54- // PrimaryNetworkInterface is required to specify subnet
54+ // PrimaryNetworkInterface is required to specify subnet.
5555 NetworkDetails NetworkDetails `json:"networkDetails,omitempty"`
5656
5757 // Provider ID of the instance, this will be set by Cluster API provider itself,
@@ -72,7 +72,7 @@ type OCIMachineSpec struct {
7272 // required to connect to the instance.
7373 Metadata map [string ]string `json:"metadata,omitempty"`
7474
75- // Free-form tags for this resource
75+ // Free-form tags for this resource.
7676 // +optional
7777 FreeformTags map [string ]string `json:"freeformTags,omitempty"`
7878
@@ -95,34 +95,34 @@ type OCIMachineSpec struct {
9595 NSGName string `json:"nsgName,omitempty"`
9696}
9797
98- // OCIMachineStatus defines the observed state of OciMachine
98+ // OCIMachineStatus defines the observed state of OCIMachine.
9999type OCIMachineStatus struct {
100100 // INSERT ADDITIONAL STATUS FIELD - define observed state of machine
101101
102- // Flag set to true when machine is ready
102+ // Flag set to true when machine is ready.
103103 // +optional
104104 Ready bool `json:"ready,omitempty"`
105105
106106 // Addresses contains the addresses of the associated OCI instance.
107107 Addresses []clusterv1.MachineAddress `json:"addresses,omitempty"`
108108
109- // Error status on the machine
109+ // Error status on the machine.
110110 // +optional
111111 FailureReason * errors.MachineStatusError `json:"failureReason,omitempty"`
112112
113- // The error message corresponding tot he error on the machine
113+ // The error message corresponding to the error on the machine.
114114 // +optional
115115 FailureMessage * string `json:"failureMessage,omitempty"`
116116
117- // Launch instance work request Id
117+ // Launch instance work request ID.
118118 // +optional
119119 LaunchInstanceWorkRequestId string `json:"launchInstanceWorkRequestId,omitempty"`
120120
121- // Create Backend OPC work request ID for the machine backend
121+ // Create Backend OPC work request ID for the machine backend.
122122 // +optional
123123 CreateBackendWorkRequestId string `json:"createBackendWorkRequestId,omitempty"`
124124
125- // Delete Backend OPC work request ID for the machine backend
125+ // Delete Backend OPC work request ID for the machine backend.
126126 // +optional
127127 DeleteBackendWorkRequestId string `json:"deleteBackendWorkRequestId,omitempty"`
128128
@@ -134,7 +134,7 @@ type OCIMachineStatus struct {
134134//+kubebuilder:object:root=true
135135//+kubebuilder:subresource:status
136136
137- // OCIMachine is the Schema for the ocimachines API
137+ // OCIMachine is the Schema for the ocimachines API.
138138type OCIMachine struct {
139139 metav1.TypeMeta `json:",inline"`
140140 metav1.ObjectMeta `json:"metadata,omitempty"`
@@ -145,7 +145,7 @@ type OCIMachine struct {
145145
146146//+kubebuilder:object:root=true
147147
148- // OCIMachineList contains a list of OCIMachine
148+ // OCIMachineList contains a list of OCIMachine.
149149type OCIMachineList struct {
150150 metav1.TypeMeta `json:",inline"`
151151 metav1.ListMeta `json:"metadata,omitempty"`
0 commit comments