Skip to content

Commit 732f66a

Browse files
Rebranding to Sonata Flow (#161)
* Rebranding to SonataFlow Signed-off-by: Ricardo Zanini <zanini@redhat.com> * Incorporating reviews, adding space to the name Signed-off-by: Ricardo Zanini <zanini@redhat.com> * Fix codegen Signed-off-by: Ricardo Zanini <zanini@redhat.com> --------- Signed-off-by: Ricardo Zanini <zanini@redhat.com>
1 parent fa96eb6 commit 732f66a

File tree

149 files changed

+1108
-1173
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+1108
-1173
lines changed

.ci/jenkins/Jenkinsfile.e2e.cluster

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ void executeInCluster(Closure executeClosure) {
181181
void getPlatformCRFilePath() {
182182
switch (getClusterName()) {
183183
case minikubeClusterPlatform:
184-
return 'config/samples/sw.kogito_v1alpha08_kogitoserverlessplatform_withCache_minikube.yaml'
184+
return 'config/samples/sonataflow.org_v1alpha08_sonataflowplatform_withCache_minikube.yaml'
185185
case openshiftClusterPlatform:
186-
return 'config/samples/sw.kogito_v1alpha08_kogitoserverlessplatform_openshift.yaml'
186+
return 'config/samples/sonataflow.org_v1alpha08_sonataflowplatform_openshift.yaml'
187187
default:
188188
error "Unknown cluster name ${getClusterName()}. Cannot execute anything ..."
189189
}

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Bug Report
2-
description: Report a bug in Kogito Serverless Operator
2+
description: Report a bug in the Sonata Flow Operator
33
labels: kind/bug
44
body:
55
- type: markdown
@@ -52,7 +52,7 @@ body:
5252
label: Operator-sdk version
5353
- type: input
5454
attributes:
55-
label: Kogito Serverless Operator version or git rev
55+
label: Sonata Flow Operator version or git rev
5656
- type: textarea
5757
attributes:
5858
label: Additional information

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
11
blank_issues_enabled: true
22
contact_links:
3-
- name: Jira
4-
url: https://issues.redhat.com/projects/KOGITO
5-
about: Kogito Jira Board
3+
- name: GitHub Issues
4+
url: https://github.com/kiegroup/kogito-serverless-operator/issues
5+
about: GitHub Issues page in case you need to report a bug or wish to ask for a new feature.
66
- name: Question
7-
url: https://stackoverflow.com/questions/ask?tags=kogito-serverless
8-
about: I have a question about how to use Kogito Serverless Operator.
9-
- name: Kogito Zulip chat
10-
url: https://kie.zulipchat.com/
11-
about: If you prefer live chat with the developers, we have a Zulip chat where we all hang out.
12-
- name: Kogito Development mailing list
13-
url: https://groups.google.com/g/kogito-development
14-
about: You can also ask questions on our mailing list.
7+
url: https://github.com/kiegroup/kogito-serverless-operator/discussions
8+
about: I have a question about how to use the operator.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
22
3-
Welcome to the Kogito Serverless Operator! Before contributing, make sure to:
3+
Welcome to the Sonata Flow Operator! Before contributing, make sure to:
44
55
- Rebase your branch on the latest upstream main
66
- Link any relevant issues, PR's, or documentation

.github/workflows/checks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
jobs:
1818
unit-tests:
1919
concurrency:
20-
group: kogito-serverless-operator-unit-tests-${{ github.head_ref }}
20+
group: sonataflow-operator-unit-tests-${{ github.head_ref }}
2121
cancel-in-progress: true
2222
timeout-minutes: 60
2323
name: Unit tests And Coverage
@@ -53,7 +53,7 @@ jobs:
5353

5454
check-headers:
5555
concurrency:
56-
group: kogito-serverless-operator-check-headers-${{ github.head_ref }}
56+
group: sonataflow-operator-check-headers-${{ github.head_ref }}
5757
cancel-in-progress: true
5858
timeout-minutes: 60
5959
name: Check headers
@@ -77,7 +77,7 @@ jobs:
7777
7878
check-generation:
7979
concurrency:
80-
group: kogito-serverless-operator-check-generation-${{ github.head_ref }}
80+
group: sonataflow-operator-check-generation-${{ github.head_ref }}
8181
cancel-in-progress: true
8282
timeout-minutes: 60
8383
name: Check files generation

.github/workflows/e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ env:
2222
jobs:
2323
e2e:
2424
concurrency:
25-
group: kogito-serverless-operator-e2e-tests-${{ github.head_ref }}
25+
group: sonataflow-operator-e2e-tests-${{ github.head_ref }}
2626
cancel-in-progress: true
2727
timeout-minutes: 120
2828
runs-on: ubuntu-latest

PROJECT

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,37 @@
1-
domain: kiegroup.org
1+
domain: org
22
layout:
33
- go.kubebuilder.io/v3
44
plugins:
55
manifests.sdk.operatorframework.io/v2: {}
66
scorecard.sdk.operatorframework.io/v2: {}
7-
projectName: kogito-serverless-operator
7+
projectName: sonataflow-operator
88
repo: github.com/kiegroup/kogito-serverless-operator
99
resources:
1010
- api:
1111
crdVersion: v1
1212
namespaced: true
1313
controller: true
14-
domain: kie.org
15-
group: sw.kogito
16-
kind: KogitoServerlessWorkflow
14+
domain: org
15+
group: sonataflow
16+
kind: SonataFlow
1717
path: github.com/kiegroup/kogito-serverless-operator/api/v1alpha08
1818
version: v1alpha08
1919
- api:
2020
crdVersion: v1
2121
namespaced: true
2222
controller: true
23-
domain: kie.org
24-
group: sw.kogito
25-
kind: KogitoServerlessBuild
23+
domain: org
24+
group: sonataflow
25+
kind: SonataFlowBuild
2626
path: github.com/kiegroup/kogito-serverless-operator/api/v1alpha08
2727
version: v1alpha08
2828
- api:
2929
crdVersion: v1
3030
namespaced: true
3131
controller: true
32-
domain: kie.org
33-
group: sw.kogito
34-
kind: KogitoServerlessPlatform
32+
domain: org
33+
group: sonataflow
34+
kind: SonataFlowPlatform
3535
path: github.com/kiegroup/kogito-serverless-operator/api/v1alpha08
3636
version: v1alpha08
3737
version: "3"

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
# Kogito Serverless Operator
1+
# SonataFlow Operator
22

3-
The Kogito Serverless Operator defines a set
3+
The SonataFlow Operator defines a set
44
of [Kubernetes Custom Resources](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/)
5-
to help users to deploy Kogito Serverless
6-
Workflow projects on Kubernetes and OpenShift.
5+
to help users to deploy SonataFlow projects on Kubernetes and OpenShift.
76

87
Please [visit our official documentation](https://kiegroup.github.io/kogito-docs/serverlessworkflow/latest/cloud/operator/install-serverless-operator.html)
98
to know more.
109

1110
## Available modules for integrations
1211

13-
If you're a developer, and you are interested in integrating your project or application with the Kogito Serverless Operator
12+
If you're a developer, and you are interested in integrating your project or application with the SonataFlow Operator
1413
ecosystem, this repository provides a few Go Modules described below.
1514

16-
### Kogito Serverless Operator Types (api)
15+
### SonataFlow Operator Types (api)
1716

1817
Every custom resource managed by the operator is exported in the module [api](api). You can use it to programmatically
1918
create any custom type managed by the operator.
@@ -26,9 +25,9 @@ go get github.com/kiegroup/kogito-serverless-workflow/api
2625
Then you can create any type programmatically, for example:
2726

2827
```go
29-
workflow := &v1alpha08.KogitoServerlessWorkflow{
28+
workflow := &v1alpha08.SonataFlow{
3029
ObjectMeta: metav1.ObjectMeta{Name: w.name, Namespace: w.namespace},
31-
Spec: v1alpha08.KogitoServerlessWorkflowSpec{Flow: *myWorkflowDef>}
30+
Spec: v1alpha08.SonataFlowSpec{Flow: *myWorkflowDef>}
3231
}
3332
```
3433

api/metadata/annotations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
package metadata
1616

1717
const (
18-
Domain = "sw.kogito.kie.org"
18+
Domain = "sonataflow.org"
1919
Key = Domain + "/key"
2020
Name = Domain + "/name"
2121
Description = Domain + "/description"

api/v1alpha08/conversion.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ const (
4040
charLimit = 253
4141
)
4242

43-
// FromCNCFWorkflow converts the given CNCF Serverless Workflow instance in a new KogitoServerlessWorkflow Custom Resource.
44-
func FromCNCFWorkflow(cncfWorkflow *cncfmodel.Workflow, context context.Context) (*KogitoServerlessWorkflow, error) {
43+
// FromCNCFWorkflow converts the given CNCF Serverless Workflow instance in a new SonataFlow Custom Resource.
44+
func FromCNCFWorkflow(cncfWorkflow *cncfmodel.Workflow, context context.Context) (*SonataFlow, error) {
4545
if cncfWorkflow == nil {
4646
return nil, errors.New("CNCF Workflow is nil")
4747
}
48-
workflowCR := &KogitoServerlessWorkflow{
48+
workflowCR := &SonataFlow{
4949
ObjectMeta: metav1.ObjectMeta{
5050
Name: extractName(cncfWorkflow),
5151
Annotations: map[string]string{
@@ -81,10 +81,10 @@ func FromCNCFWorkflow(cncfWorkflow *cncfmodel.Workflow, context context.Context)
8181
return workflowCR, nil
8282
}
8383

84-
// ToCNCFWorkflow converts a KogitoServerlessWorkflow object to a Workflow one in order to be able to convert it to a YAML/Json
85-
func ToCNCFWorkflow(workflowCR *KogitoServerlessWorkflow, context context.Context) (*cncfmodel.Workflow, error) {
84+
// ToCNCFWorkflow converts a SonataFlow object to a Workflow one in order to be able to convert it to a YAML/Json
85+
func ToCNCFWorkflow(workflowCR *SonataFlow, context context.Context) (*cncfmodel.Workflow, error) {
8686
if workflowCR == nil {
87-
return nil, errors.New("kogitoServerlessWorkflow is nil")
87+
return nil, errors.New("SonataFlow is nil")
8888
}
8989
cncfWorkflow := &cncfmodel.Workflow{}
9090

@@ -130,8 +130,8 @@ func extractExpressionLang(annotations map[string]string) string {
130130
}
131131

132132
// Function to extract from the apiVersion the ServerlessWorkflow schema version
133-
// For example given KogitoServerlessWorkflow APIVersion, we would like to extract 0.8
134-
func extractSpecVersion(workflowCR *KogitoServerlessWorkflow) string {
133+
// For example given SonataFlow APIVersion, we would like to extract 0.8
134+
func extractSpecVersion(workflowCR *SonataFlow) string {
135135
schemaVersion := path.Base(workflowCR.APIVersion)
136136
if len(schemaVersion) == 0 {
137137
return metadata.SpecVersion

api/v1alpha08/conversion_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ const (
2929
camelCNCFWorkflow = "testdata/camel.sw.json"
3030
foreachCNCFWorkflow = "testdata/foreach.sw.json"
3131
invalidCNCFWorkflow = "testdata/invalid.sw.json"
32-
camelWorkflowCR = "testdata/kogitoserverlessworkflow-camel.yaml"
33-
foreachWorkflowCR = "testdata/kogitoserverlessworkflow-foreach.yaml"
34-
invalidWorkflowCR = "testdata/kogitoserverlessworkflow-invalid.yaml"
32+
camelWorkflowCR = "testdata/sonataflow-camel.yaml"
33+
foreachWorkflowCR = "testdata/sonataflow-foreach.yaml"
34+
invalidWorkflowCR = "testdata/sonataflow-invalid.yaml"
3535
)
3636

3737
func getCNCFWorkflow(name string) *cncfmodel.Workflow {
@@ -47,12 +47,12 @@ func getCNCFWorkflow(name string) *cncfmodel.Workflow {
4747
return cncfWorkflow
4848
}
4949

50-
func getWorkflowCR(name string) *KogitoServerlessWorkflow {
50+
func getWorkflowCR(name string) *SonataFlow {
5151
crBytes, err := os.ReadFile(name)
5252
if err != nil {
5353
panic(err)
5454
}
55-
workflowCR := &KogitoServerlessWorkflow{}
55+
workflowCR := &SonataFlow{}
5656
if err = yaml.Unmarshal(crBytes, workflowCR); err != nil {
5757
panic(err)
5858
}
@@ -66,7 +66,7 @@ func TestFromCNCFWorkflow(t *testing.T) {
6666
tests := []struct {
6767
name string
6868
args args
69-
want *KogitoServerlessWorkflow
69+
want *SonataFlow
7070
wantErr bool
7171
}{
7272
{name: "Camel Flow", args: args{getCNCFWorkflow(camelCNCFWorkflow)}, wantErr: false, want: getWorkflowCR(camelWorkflowCR)},
@@ -97,7 +97,7 @@ func TestFromCNCFWorkflow(t *testing.T) {
9797

9898
func TestToCNCFWorkflow(t *testing.T) {
9999
type args struct {
100-
workflowCR *KogitoServerlessWorkflow
100+
workflowCR *SonataFlow
101101
}
102102
tests := []struct {
103103
name string

api/v1alpha08/groupversion_info.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
// Package v1alpha08 contains API Schema definitions for the serverless v1alpha08 API group
1616
// +kubebuilder:object:generate=true
17-
// +groupName=sw.kogito.kie.org
17+
// +groupName=sonataflow.org
1818
package v1alpha08
1919

2020
import (
@@ -24,7 +24,7 @@ import (
2424

2525
var (
2626
// GroupVersion is group version used to register these objects
27-
GroupVersion = schema.GroupVersion{Group: "sw.kogito.kie.org", Version: "v1alpha08"}
27+
GroupVersion = schema.GroupVersion{Group: "sonataflow.org", Version: "v1alpha08"}
2828

2929
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
3030
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

0 commit comments

Comments
 (0)