@@ -35,12 +35,12 @@ func init() {
3535
3636// IBMPowerVSClusterSpec defines the desired state of IBMPowerVSCluster.
3737type IBMPowerVSClusterSpec struct {
38- // Deprecated: use ServiceInstance instead
38+ // serviceInstanceID is the id of the power cloud instance where the vsi instance will get deployed.
3939 //
40- // ServiceInstanceID is the id of the power cloud instance where the vsi instance will get deployed.
40+ // Deprecated: use ServiceInstance instead
4141 ServiceInstanceID string `json:"serviceInstanceID"`
4242
43- // Network is the reference to the Network to use for this cluster.
43+ // network is the reference to the Network to use for this cluster.
4444 // when the field is omitted, A DHCP service will be created in the Power VS workspace and its private network will be used.
4545 // the DHCP service created network will have the following name format
4646 // 1. in the case of DHCPServer.Name is not set the name will be DHCPSERVER<CLUSTER_NAME>_Private.
@@ -56,7 +56,7 @@ type IBMPowerVSClusterSpec struct {
5656 // +optional
5757 DHCPServer * DHCPServer `json:"dhcpServer,omitempty"`
5858
59- // ControlPlaneEndpoint represents the endpoint used to communicate with the control plane.
59+ // controlPlaneEndpoint represents the endpoint used to communicate with the control plane.
6060 // +optional
6161 ControlPlaneEndpoint clusterv1beta1.APIEndpoint `json:"controlPlaneEndpoint"`
6262
@@ -108,7 +108,7 @@ type IBMPowerVSClusterSpec struct {
108108 // +optional
109109 VPCSubnets []Subnet `json:"vpcSubnets,omitempty"`
110110
111- // VPCSecurityGroups to attach it to the VPC resource
111+ // vpcSecurityGroups to attach it to the VPC resource
112112 // +optional
113113 VPCSecurityGroups []VPCSecurityGroup `json:"vpcSecurityGroups,omitempty"`
114114
@@ -141,14 +141,15 @@ type IBMPowerVSClusterSpec struct {
141141 // +optional
142142 CosInstance * CosInstance `json:"cosInstance,omitempty"`
143143
144- // Ignition defined options related to the bootstrapping systems where Ignition is used.
144+ // ignition defined options related to the bootstrapping systems where Ignition is used.
145145 // +optional
146146 Ignition * Ignition `json:"ignition,omitempty"`
147147}
148148
149149// IBMPowerVSClusterStatus defines the observed state of IBMPowerVSCluster.
150150type IBMPowerVSClusterStatus struct {
151151 // conditions represents the observations of a IBMPowerVSCluster's current state.
152+ // +optional
152153 // +listType=map
153154 // +listMapKey=type
154155 // +kubebuilder:validation:MaxItems=32
@@ -158,13 +159,13 @@ type IBMPowerVSClusterStatus struct {
158159 // +kubebuilder:default=false
159160 Ready bool `json:"ready"`
160161
161- // ResourceGroup is the reference to the Power VS resource group under which the resources will be created.
162+ // resourceGroupID is the reference to the Power VS resource group under which the resources will be created.
162163 ResourceGroup * ResourceReference `json:"resourceGroupID,omitempty"`
163164
164165 // serviceInstance is the reference to the Power VS service on which the server instance(VM) will be created.
165166 ServiceInstance * ResourceReference `json:"serviceInstance,omitempty"`
166167
167- // networkID is the reference to the Power VS network to use for this cluster.
168+ // network is the reference to the Power VS network to use for this cluster.
168169 Network * ResourceReference `json:"network,omitempty"`
169170
170171 // dhcpServer is the reference to the Power VS DHCP server.
@@ -231,20 +232,20 @@ type IBMPowerVSClusterList struct {
231232
232233// DHCPServer contains the DHCP server configurations.
233234type DHCPServer struct {
234- // Optional cidr for DHCP private network
235+ // cidr for DHCP private network
235236 Cidr * string `json:"cidr,omitempty"`
236237
237- // Optional DNS Server for DHCP service
238+ // dnsServer for DHCP service
238239 // +kubebuilder:default="1.1.1.1"
239240 DNSServer * string `json:"dnsServer,omitempty"`
240241
241- // Optional name of DHCP Service. Only alphanumeric characters and dashes are allowed.
242+ // name of DHCP Service. Only alphanumeric characters and dashes are allowed.
242243 Name * string `json:"name,omitempty"`
243244
244- // Optional id of the existing DHCPServer
245+ // id of the existing DHCPServer
245246 ID * string `json:"id,omitempty"`
246247
247- // Optional indicates if SNAT will be enabled for DHCP service
248+ // snat indicates if SNAT will be enabled for DHCP service
248249 // +kubebuilder:default=true
249250 Snat * bool `json:"snat,omitempty"`
250251}
@@ -309,7 +310,7 @@ type CosInstance struct {
309310
310311// Ignition defines options related to the bootstrapping systems where Ignition is used.
311312type Ignition struct {
312- // Version defines which version of Ignition will be used to generate bootstrap data.
313+ // version defines which version of Ignition will be used to generate bootstrap data.
313314 //
314315 // +optional
315316 // +kubebuilder:default="2.3"
@@ -321,17 +322,17 @@ type Ignition struct {
321322type ResourceReference struct {
322323 // id represents the id of the resource.
323324 ID * string `json:"id,omitempty"`
324- // +kubebuilder:default=false
325325 // controllerCreated indicates whether the resource is created by the controller.
326+ // +kubebuilder:default=false
326327 ControllerCreated * bool `json:"controllerCreated,omitempty"`
327328}
328329
329330// TransitGatewayStatus defines the status of transit gateway as well as it's connection's status.
330331type TransitGatewayStatus struct {
331332 // id represents the id of the resource.
332333 ID * string `json:"id,omitempty"`
333- // +kubebuilder:default=false
334334 // controllerCreated indicates whether the resource is created by the controller.
335+ // +kubebuilder:default=false
335336 ControllerCreated * bool `json:"controllerCreated,omitempty"`
336337 // vpcConnection defines the vpc connection status in transit gateway.
337338 VPCConnection * ResourceReference `json:"vpcConnection,omitempty"`
0 commit comments