@@ -181,6 +181,19 @@ type ResourceReference struct {
181
181
ControllerCreated * bool `json:"controllerCreated,omitempty"`
182
182
}
183
183
184
+ // TransitGatewayStatus defines the status of transit gateway as well as it's connection's status.
185
+ type TransitGatewayStatus struct {
186
+ // id represents the id of the resource.
187
+ ID * string `json:"id,omitempty"`
188
+ // +kubebuilder:default=false
189
+ // controllerCreated indicates whether the resource is created by the controller.
190
+ ControllerCreated * bool `json:"controllerCreated,omitempty"`
191
+ // vpcConnection defines the vpc connection status in transit gateway.
192
+ VPCConnection * ResourceReference `json:"vpcConnection,omitempty"`
193
+ // powerVSConnection defines the powervs connection status in transit gateway.
194
+ PowerVSConnection * ResourceReference `json:"powerVSConnection,omitempty"`
195
+ }
196
+
184
197
// IBMPowerVSClusterStatus defines the observed state of IBMPowerVSCluster.
185
198
type IBMPowerVSClusterStatus struct {
186
199
// ready is true when the provider resource is ready.
@@ -209,7 +222,7 @@ type IBMPowerVSClusterStatus struct {
209
222
VPCSecurityGroups map [string ]VPCSecurityGroupStatus `json:"vpcSecurityGroups,omitempty"`
210
223
211
224
// transitGateway is reference to IBM Cloud TransitGateway.
212
- TransitGateway * ResourceReference `json:"transitGateway,omitempty"`
225
+ TransitGateway * TransitGatewayStatus `json:"transitGateway,omitempty"`
213
226
214
227
// cosInstance is reference to IBM Cloud COS Instance resource.
215
228
COSInstance * ResourceReference `json:"cosInstance,omitempty"`
0 commit comments