tchughesiv commented on code in PR #345:
URL: 
https://github.com/apache/incubator-kie-kogito-serverless-operator/pull/345#discussion_r1457561128


##########
api/v1alpha08/sonataflowplatform_types.go:
##########
@@ -79,6 +79,35 @@ type SonataFlowPlatformStatus struct {
        // Info generic information related to the build
        
//+operator-sdk:csv:customresourcedefinitions:type=status,displayName="info"
        Info map[string]string `json:"info,omitempty"`
+       // ClusterPlatformRef information related to the (optional) active 
SonataFlowClusterPlatform
+       ClusterPlatformRef *SonataFlowClusterPlatformRef 
`json:"clusterPlatformRef,omitempty"`
+}
+
+// SonataFlowClusterPlatformRef information related to the (optional) active 
SonataFlowClusterPlatform
+// +k8s:openapi-gen=true
+type SonataFlowClusterPlatformRef struct {
+       // Name of the active SonataFlowClusterPlatform
+       Name string `json:"name,omitempty"`
+       // PlatformRef displays which SonataFlowPlatform has been referenced by 
the active SonataFlowClusterPlatform
+       PlatformRef SonataFlowPlatformRef `json:"platformRef,omitempty"`
+       // Services displays which cluster-wide services are being used by this 
SonataFlowPlatform
+       Services *PlatformServices `json:"services,omitempty"`
+}
+
+// PlatformServices displays which cluster-wide services are being used by a 
SonataFlowPlatform
+// +k8s:openapi-gen=true
+type PlatformServices struct {
+       // DataIndexRef displays information on the cluster-wide Data Index 
service
+       DataIndexRef *PlatformServiceRef `json:"dataIndexRef,omitempty"`
+       // JobServiceRef displays information on the cluster-wide Job Service
+       JobServiceRef *PlatformServiceRef `json:"jobServiceRef,omitempty"`
+}
+
+// PlatformServiceRef displays information on a cluster-wide service
+// +k8s:openapi-gen=true
+type PlatformServiceRef struct {
+       // Url displays the base url of a cluster-wide service
+       Url string `json:"url,omitempty"`

Review Comment:
   This is a non-customizable status field which entirely controlled/set by the 
operator. It allows the user to see which supporting services their workflows 
are using and is used by the operator to configure the app properties CM for 
the workflows.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to