Skip to content

Commit

Permalink
Update api specs (#1592)
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthik-K-N committed Jan 29, 2024
1 parent 2f586ba commit 32eba31
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 16 deletions.
2 changes: 1 addition & 1 deletion api/v1beta1/zz_generated.conversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api/v1beta2/ibmpowervscluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ type IBMPowerVSClusterStatus struct {
// transitGateway is reference to IBM Cloud TransitGateway.
TransitGateway *ResourceReference `json:"transitGateway,omitempty"`

// cosBucket is reference to IBM Cloud COS Bucket resource.
COSBucket *ResourceReference `json:"cosBucket,omitempty"`
// cosInstance is reference to IBM Cloud COS Instance resource.
COSInstance *ResourceReference `json:"cosInstance,omitempty"`

// loadBalancers reference to IBM Cloud VPC Loadbalancer.
LoadBalancers map[string]VPCLoadBalancerStatus `json:"loadBalancers,omitempty"`
Expand Down
5 changes: 3 additions & 2 deletions api/v1beta2/ibmvpccluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,14 @@ type VPCLoadBalancerStatus struct {
// id of VPC load balancer.
// +optional
ID *string `json:"id,omitempty"`
// +optional
Name *string `json:"name,omitempty"`
// State is the status of the load balancer.
State VPCLoadBalancerState `json:"state,omitempty"`
// hostname is the hostname of load balancer.
// +optional
Hostname *string `json:"hostname,omitempty"`
// +kubebuilder:default=false
// controllerCreated indicates whether the resource is created by the controller.
ControllerCreated *bool `json:"controllerCreated,omitempty"`
}

// IBMVPCClusterStatus defines the observed state of IBMVPCCluster.
Expand Down
14 changes: 7 additions & 7 deletions api/v1beta2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,8 @@ spec:
- type
type: object
type: array
cosBucket:
description: cosBucket is reference to IBM Cloud COS Bucket resource.
cosInstance:
description: cosInstance is reference to IBM Cloud COS Instance resource.
properties:
controllerCreated:
default: false
Expand All @@ -428,14 +428,17 @@ spec:
additionalProperties:
description: VPCLoadBalancerStatus defines the status VPC load balancer.
properties:
controllerCreated:
default: false
description: controllerCreated indicates whether the resource
is created by the controller.
type: boolean
hostname:
description: hostname is the hostname of load balancer.
type: string
id:
description: id of VPC load balancer.
type: string
name:
type: string
state:
description: State is the status of the load balancer.
type: string
Expand Down

0 comments on commit 32eba31

Please sign in to comment.