This is an automated email from the ASF dual-hosted git repository.
ricardozanini pushed a commit to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-serverless-operator.git
The following commit(s) were added to refs/heads/main by this push:
new 0512cdf4 :suspect: Fix resources display name (#490)
0512cdf4 is described below
commit 0512cdf4a1bef76a30250b7f1adea72fb2ce1853
Author: Ricardo Zanini <[email protected]>
AuthorDate: Mon Jun 17 14:54:06 2024 -0300
:suspect: Fix resources display name (#490)
Signed-off-by: Ricardo Zanini <[email protected]>
---
api/v1alpha08/sonataflow_types.go | 1 +
api/v1alpha08/sonataflowbuild_types.go | 1 +
api/v1alpha08/sonataflowclusterplatform_types.go | 1 +
api/v1alpha08/sonataflowplatform_types.go | 1 +
bundle/manifests/sonataflow-operator.clusterserviceversion.yaml | 8 ++++----
.../bases/sonataflow-operator.clusterserviceversion.yaml | 8 ++++----
6 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/api/v1alpha08/sonataflow_types.go
b/api/v1alpha08/sonataflow_types.go
index 7763dc23..e751e003 100644
--- a/api/v1alpha08/sonataflow_types.go
+++ b/api/v1alpha08/sonataflow_types.go
@@ -255,6 +255,7 @@ func (s *SonataFlowStatus) IsBuildFailed() bool {
// +operator-sdk:csv:customresourcedefinitions:resources={{Service,v1,"A
Service for the Flow"}}
//
+operator-sdk:csv:customresourcedefinitions:resources={{Route,route.openshift.io/v1,"An
OpenShift Route for the Flow"}}
// +operator-sdk:csv:customresourcedefinitions:resources={{ConfigMap,v1,"The
ConfigMaps with Flow definition and additional configuration files"}}
+// +operator-sdk:csv:customresourcedefinitions:displayName="SonataFlow"
type SonataFlow struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
diff --git a/api/v1alpha08/sonataflowbuild_types.go
b/api/v1alpha08/sonataflowbuild_types.go
index 0817936d..4b09ba35 100644
--- a/api/v1alpha08/sonataflowbuild_types.go
+++ b/api/v1alpha08/sonataflowbuild_types.go
@@ -145,6 +145,7 @@ func (k *SonataFlowBuildStatus) GetInnerBuild(innerBuild
interface{}) error {
//
+kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.buildPhase`
// +kubebuilder:resource:shortName={"sfb", "sfbuild", "sfbuilds"}
//
+operator-sdk:csv:customresourcedefinitions:resources={{BuildConfig,build.openshift.io/v1,"An
Openshift Build Config"}}
+// +operator-sdk:csv:customresourcedefinitions:displayName="SonataFlowBuild"
type SonataFlowBuild struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
diff --git a/api/v1alpha08/sonataflowclusterplatform_types.go
b/api/v1alpha08/sonataflowclusterplatform_types.go
index d5205d9c..1ac3727c 100644
--- a/api/v1alpha08/sonataflowclusterplatform_types.go
+++ b/api/v1alpha08/sonataflowclusterplatform_types.go
@@ -93,6 +93,7 @@ func (in *SonataFlowClusterPlatformStatus) IsDuplicated()
bool {
//
+kubebuilder:printcolumn:name="Ready",type=string,JSONPath=`.status.conditions[?(@.type=='Succeed')].status`
//
+kubebuilder:printcolumn:name="Reason",type=string,JSONPath=`.status.conditions[?(@.type=='Succeed')].reason`
//
+operator-sdk:csv:customresourcedefinitions:resources={{SonataFlowPlatform,sonataflow.org/v1alpha08,"A
SonataFlow Platform"}}
+//
+operator-sdk:csv:customresourcedefinitions:displayName="SonataFlowClusterPlatform"
type SonataFlowClusterPlatform struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
diff --git a/api/v1alpha08/sonataflowplatform_types.go
b/api/v1alpha08/sonataflowplatform_types.go
index 26276fb8..a564cde0 100644
--- a/api/v1alpha08/sonataflowplatform_types.go
+++ b/api/v1alpha08/sonataflowplatform_types.go
@@ -170,6 +170,7 @@ func (in *SonataFlowPlatformStatus) IsFailure() bool {
//
+kubebuilder:printcolumn:name="Ready",type=string,JSONPath=`.status.conditions[?(@.type=='Succeed')].status`
//
+kubebuilder:printcolumn:name="Reason",type=string,JSONPath=`.status.conditions[?(@.type=='Succeed')].reason`
// +operator-sdk:csv:customresourcedefinitions:resources={{Namespace,v1,"The
Namespace controlled by the platform"}}
+// +operator-sdk:csv:customresourcedefinitions:displayName="SonataFlowPlatform"
type SonataFlowPlatform struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
diff --git a/bundle/manifests/sonataflow-operator.clusterserviceversion.yaml
b/bundle/manifests/sonataflow-operator.clusterserviceversion.yaml
index 7e78264f..73037612 100644
--- a/bundle/manifests/sonataflow-operator.clusterserviceversion.yaml
+++ b/bundle/manifests/sonataflow-operator.clusterserviceversion.yaml
@@ -135,7 +135,7 @@ spec:
owned:
- description: SonataFlowBuild is an internal custom resource to control
workflow
build instances in the target platform
- displayName: Sonata Flow Build
+ displayName: SonataFlowBuild
kind: SonataFlowBuild
name: sonataflowbuilds.sonataflow.org
resources:
@@ -182,7 +182,7 @@ spec:
version: v1alpha08
- description: SonataFlowClusterPlatform is the Schema for the
sonataflowclusterplatforms
API
- displayName: Sonata Flow Cluster Platform
+ displayName: SonataFlowClusterPlatform
kind: SonataFlowClusterPlatform
name: sonataflowclusterplatforms.sonataflow.org
resources:
@@ -211,7 +211,7 @@ spec:
version: v1alpha08
- description: SonataFlowPlatform is the descriptor for the workflow
platform
infrastructure.
- displayName: Sonata Flow Platform
+ displayName: SonataFlowPlatform
kind: SonataFlowPlatform
name: sonataflowplatforms.sonataflow.org
resources:
@@ -281,7 +281,7 @@ spec:
version: v1alpha08
- description: SonataFlow is the descriptor representation for a workflow
application
based on the CNCF Serverless Workflow specification.
- displayName: Sonata Flow
+ displayName: SonataFlow
kind: SonataFlow
name: sonataflows.sonataflow.org
resources:
diff --git
a/config/manifests/bases/sonataflow-operator.clusterserviceversion.yaml
b/config/manifests/bases/sonataflow-operator.clusterserviceversion.yaml
index c6fdf4e6..c8fc4c8a 100644
--- a/config/manifests/bases/sonataflow-operator.clusterserviceversion.yaml
+++ b/config/manifests/bases/sonataflow-operator.clusterserviceversion.yaml
@@ -19,7 +19,7 @@ spec:
owned:
- description: SonataFlowBuild is an internal custom resource to control
workflow
build instances in the target platform
- displayName: Sonata Flow Build
+ displayName: SonataFlowBuild
kind: SonataFlowBuild
name: sonataflowbuilds.sonataflow.org
resources:
@@ -66,7 +66,7 @@ spec:
version: v1alpha08
- description: SonataFlowClusterPlatform is the Schema for the
sonataflowclusterplatforms
API
- displayName: Sonata Flow Cluster Platform
+ displayName: SonataFlowClusterPlatform
kind: SonataFlowClusterPlatform
name: sonataflowclusterplatforms.sonataflow.org
resources:
@@ -95,7 +95,7 @@ spec:
version: v1alpha08
- description: SonataFlowPlatform is the descriptor for the workflow
platform
infrastructure.
- displayName: Sonata Flow Platform
+ displayName: SonataFlowPlatform
kind: SonataFlowPlatform
name: sonataflowplatforms.sonataflow.org
resources:
@@ -165,7 +165,7 @@ spec:
version: v1alpha08
- description: SonataFlow is the descriptor representation for a workflow
application
based on the CNCF Serverless Workflow specification.
- displayName: Sonata Flow
+ displayName: SonataFlow
kind: SonataFlow
name: sonataflows.sonataflow.org
resources:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]