Skip to content

Commit ab7f9cb

Browse files
[KOGITO-8835] - Fix CSV and manifests to pass operator-sdk bundle test (#174)
* [KOGITO-8835] - Fix CSV and manifests to pass operator-sdk bundle test Signed-off-by: Ricardo Zanini <zanini@redhat.com> * Fix typo Signed-off-by: Ricardo Zanini <zanini@redhat.com> --------- Signed-off-by: Ricardo Zanini <zanini@redhat.com>
1 parent b5256ed commit ab7f9cb

15 files changed

+105
-52
lines changed

api/v1alpha08/sonataflow_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func (s *SonataFlowStatus) IsBuildFailed() bool {
177177
return cond.IsFalse() && cond.Reason == api.BuildFailedReason
178178
}
179179

180-
// SonataFlow is the Schema for the sonataflows API
180+
// SonataFlow is the descriptor representation for a workflow application based on the CNCF Serverless Workflow specification.
181181
// +kubebuilder:object:root=true
182182
// +kubebuilder:object:generate=true
183183
// +kubebuilder:subresource:status

api/v1alpha08/sonataflowbuild_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func (k *SonataFlowBuildStatus) GetInnerBuild(innerBuild interface{}) error {
9797
return nil
9898
}
9999

100-
// SonataFlowBuild is the Schema for the sonataflowbuilds API
100+
// SonataFlowBuild is an internal custom resource to control workflow build instances in the target platform
101101
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
102102
// +kubebuilder:object:root=true
103103
// +kubebuilder:object:generate=true

api/v1alpha08/sonataflowplatform_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ type SonataFlowPlatformStatus struct {
199199
Info map[string]string `json:"info,omitempty"`
200200
}
201201

202-
// SonataFlowPlatform is the Schema for the sonataflowplatforms API
202+
// SonataFlowPlatform is the descriptor for the workflow platform infrastructure.
203203
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
204204
// +kubebuilder:object:root=true
205205
// +kubebuilder:object:generate=true

bundle.Dockerfile

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
# Copyright 2023 Red Hat, Inc. and/or its affiliates
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
14-
151
FROM scratch
162

173
# Core bundle labels.

bundle/manifests/sonataflow-operator.clusterserviceversion.yaml

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -93,34 +93,45 @@ metadata:
9393
}
9494
]
9595
capabilities: Basic Install
96+
categories: Application Runtime
97+
containerImage: quay.io/kiegroup/kogito-serverless-operator:0.0.0
98+
description: SonataFlow Kubernetes Operator for deploying workflow applications
99+
based on the CNCF Serverless Workflow specification
96100
operators.operatorframework.io/builder: operator-sdk-v1.25.0
97101
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
102+
repository: https://github.com/kiegroup/kogito-serverless-operator
103+
support: Red Hat
98104
name: sonataflow-operator.v2.0.0-snapshot
99105
namespace: placeholder
100106
spec:
101107
apiservicedefinitions: {}
102108
customresourcedefinitions:
103109
owned:
104-
- description: SonataFlowBuild is the Schema for the sonataflowbuilds API
110+
- description: SonataFlowBuild is an internal custom resource to control workflow
111+
build instances in the target platform
105112
displayName: Sonata Flow Build
106113
kind: SonataFlowBuild
107114
name: sonataflowbuilds.sonataflow.org
108115
version: v1alpha08
109-
- description: SonataFlowPlatform is the Schema for the sonataflowplatforms API
116+
- description: SonataFlowPlatform is the descriptor for the workflow platform
117+
infrastructure.
110118
displayName: Sonata Flow Platform
111119
kind: SonataFlowPlatform
112120
name: sonataflowplatforms.sonataflow.org
113121
version: v1alpha08
114-
- description: SonataFlow is the Schema for the sonataflows API
122+
- description: SonataFlow is the descriptor representation for a workflow application
123+
based on the CNCF Serverless Workflow specification.
115124
displayName: Sonata Flow
116125
kind: SonataFlow
117126
name: sonataflows.sonataflow.org
118127
version: v1alpha08
119-
description: SonataFlow Operator
120-
displayName: sonataflow-operator
121-
icon:
122-
- base64data: ""
123-
mediatype: ""
128+
description: |-
129+
SonataFlow Kubernetes Operator for deploying workflow applications
130+
based on the [CNCF Serverless Workflow specification](https://serverlessworkflow.io/):
131+
132+
* Deploy workflow applications using the [dev profile](https://sonataflow.org/serverlessworkflow/latest/cloud/operator/developing-workflows.html), suited for the your development cycle
133+
* Build workflow applications based on the platform you're currently working on.
134+
displayName: SonataFlow Operator
124135
install:
125136
spec:
126137
clusterPermissions:
@@ -517,9 +528,13 @@ spec:
517528
- serverless
518529
- serverlessworkflow
519530
links:
520-
- name: SonataFlow Operator
521-
url: https://kiegroup.github.io/kogito-docs/serverlessworkflow/latest/index.html
531+
- name: Product Page
532+
url: https://sonataflow.org/serverlessworkflow/latest/index.html
533+
maintainers:
534+
- email: bsig-cloud@redhat.com
535+
name: Red Hat
522536
maturity: alpha
537+
minKubeVersion: 1.23.0
523538
provider:
524-
name: sonataflow-operator
539+
name: Red Hat
525540
version: 2.0.0-snapshot

bundle/manifests/sonataflow.org_sonataflowbuilds.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ spec:
2828
name: v1alpha08
2929
schema:
3030
openAPIV3Schema:
31-
description: SonataFlowBuild is the Schema for the sonataflowbuilds API
31+
description: SonataFlowBuild is an internal custom resource to control workflow
32+
build instances in the target platform
3233
properties:
3334
apiVersion:
3435
description: 'APIVersion defines the versioned schema of this representation

bundle/manifests/sonataflow.org_sonataflowplatforms.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ spec:
3131
name: v1alpha08
3232
schema:
3333
openAPIV3Schema:
34-
description: SonataFlowPlatform is the Schema for the sonataflowplatforms
35-
API
34+
description: SonataFlowPlatform is the descriptor for the workflow platform
35+
infrastructure.
3636
properties:
3737
apiVersion:
3838
description: 'APIVersion defines the versioned schema of this representation

bundle/manifests/sonataflow.org_sonataflows.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ spec:
3737
name: v1alpha08
3838
schema:
3939
openAPIV3Schema:
40-
description: SonataFlow is the Schema for the sonataflows API
40+
description: SonataFlow is the descriptor representation for a workflow application
41+
based on the CNCF Serverless Workflow specification.
4142
properties:
4243
apiVersion:
4344
description: 'APIVersion defines the versioned schema of this representation

config/crd/bases/sonataflow.org_sonataflowbuilds.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ spec:
2929
name: v1alpha08
3030
schema:
3131
openAPIV3Schema:
32-
description: SonataFlowBuild is the Schema for the sonataflowbuilds API
32+
description: SonataFlowBuild is an internal custom resource to control workflow
33+
build instances in the target platform
3334
properties:
3435
apiVersion:
3536
description: 'APIVersion defines the versioned schema of this representation

config/crd/bases/sonataflow.org_sonataflowplatforms.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ spec:
3232
name: v1alpha08
3333
schema:
3434
openAPIV3Schema:
35-
description: SonataFlowPlatform is the Schema for the sonataflowplatforms
36-
API
35+
description: SonataFlowPlatform is the descriptor for the workflow platform
36+
infrastructure.
3737
properties:
3838
apiVersion:
3939
description: 'APIVersion defines the versioned schema of this representation

0 commit comments

Comments
 (0)