-
Notifications
You must be signed in to change notification settings - Fork 79
[KOGITO-4059] - Refactor Kogito operator into internal and core component #740
[KOGITO-4059] - Refactor Kogito operator into internal and core component #740
Conversation
Codecov Report
@@ Coverage Diff @@
## master #740 +/- ##
==========================================
+ Coverage 38.67% 42.65% +3.98%
==========================================
Files 151 138 -13
Lines 6516 5256 -1260
==========================================
- Hits 2520 2242 -278
+ Misses 3601 2704 -897
+ Partials 395 310 -85
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Few minor functionality and missing header comments. Not sure why the headers weren't autogenerated. |
For Kafka KogitoInfra there is a problem too, in quarkus aplication properties there is a springboot value for Kafka URI. |
Its working now |
/jenkins test |
The smoke tests pass locally. |
/jenkins test |
Thanks, @sutaakar. Could you please open JIRAs to follow up on this one, and tackle these problems? |
@ricardozanini it seems that those issues were related to changes in examples, I cannot reproduce it today. |
@radtriste @Kaitou786 can you please review? |
/jenkins test |
previous tests were crashing because there was an old Kogito operator deployed in CI, meddling with our tests. |
if err != nil { | ||
return nil, nil, nil, err | ||
} | ||
|
||
runtime := s.instance.GetSpec().GetRuntime() | ||
|
||
// fetch app properties from Kogito infra instance | ||
appProp := kogitoInfraInstance.Status.RuntimeProperties[runtime].AppProps | ||
appProp := kogitoInfraInstance.GetStatus().GetRuntimeProperties()[runtime].GetAppProps() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting nil pointer error when on this line when deploying KogitoRuntime with KogitoInfra referencing Knative Broker:
E0222 14:32:53.431166 1 runtime.go:78] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
goroutine 600 [running]:
k8s.io/apimachinery/pkg/util/runtime.logPanic(0x18b5d40, 0x2bd9730)
/go/pkg/mod/k8s.io/apimachinery@v0.18.8/pkg/util/runtime/runtime.go:74 +0xa3
k8s.io/apimachinery/pkg/util/runtime.HandleCrash(0x0, 0x0, 0x0)
/go/pkg/mod/k8s.io/apimachinery@v0.18.8/pkg/util/runtime/runtime.go:48 +0x82
panic(0x18b5d40, 0x2bd9730)
/usr/local/go/src/runtime/panic.go:969 +0x166
github.com/kiegroup/kogito-cloud-operator/core/kogitoservice.(*serviceDeployer).fetchKogitoInfraProperties(0xc0007dc0e0, 0x1af6b2c, 0x1d, 0x0, 0x0, 0x0, 0x22, 0x1adbcc4, 0x6, 0xc000c2be20)
/workspace/core/kogitoservice/deployer_resources.go:264 +0x3b4
github.com/kiegroup/kogito-cloud-operator/core/kogitoservice.(*serviceDeployer).createRequiredResources(0xc0007dc0e0, 0x0, 0x0, 0x1)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reported as https://issues.redhat.com/browse/KOGITO-4529
Test failures caused by https://github.com/kiegroup/kogito-examples/pull/582 |
Merged, retriggering PR check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am good with the infrastructure change (could not check the go code but @sutaakar did it)
Test failure caused by missing |
Many thanks for submitting your Pull Request ❤️!
Jira issue : https://issues.redhat.com/browse/KOGITO-4059
Please make sure your PR meets the following requirements:
[KOGITO-XYZ] Subject