-
Notifications
You must be signed in to change notification settings - Fork 79
[KOGITO-1294] Adding support for binary builds #201
Conversation
So far looks ok. Will wait for final version for final review. |
8e91942
to
cd67dd1
Compare
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.
lgtm
- OK for simple check CR & CLI creation & deployment
- OK with infinispan
- KO with events
I get
2020-03-11 10:15:33,258 ERROR [io.sma.rea.mes.imp.ConfiguredChannelFactory] (main) Unable to create the publisher or subscriber during initialization: java.util.NoSuchElementException: Cannot find attribute
bootstrap.serversfor channel
kogito-processinstances-events. Has been tried: mp.messaging.outgoing.kogito-processinstances-events.bootstrap.servers and mp.messaging.connector.smallrye-kafka.bootstrap.servers
and in environment there is KAFKA_BOOTSTRAP_SERVERS=kogito-kafka-kafka-bootstrap:9092
so seems weird ... (or a change in Quarkus ?)
Still need also to run the full tests on it
Forgot, here are my commands for events failing:
I get a CrashloopBackoff on example-quarkus pod with above error. |
@radtriste I'll test this scenario locally, thanks for the input! |
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.
Looks good to me.
@radtriste I believe that this error has no relation with this PR. I've reproduced it locally and make it work by manually adding these properties to the CR (can be blank, the operator set their value automatically): - name: MP_MESSAGING_OUTGOING_KOGITO_PROCESSINSTANCES_EVENTS_BOOTSTRAP_SERVERS
value: kogito-kafka-kafka-bootstrap:9092
- name: MP_MESSAGING_OUTGOING_KOGITO_USERTASKINSTANCES_EVENTS_BOOTSTRAP_SERVERS
value: kogito-kafka-kafka-bootstrap:9092 The error should be the same for the traditional s2i builds as well. I've filed this bug report: quarkusio/quarkus#7791 This JIRA should help us get around this: The A quick and dirty workaround is injecting those variables every time we have Kafka enabled for the App. A good proposition would be having a property in the CR like |
cd67dd1
to
76644f2
Compare
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.
Indeed, this is a Quarkus bug ...
The Cucumber test is passing as we set those env on KogitoApp CR:
env:
- name: MP_MESSAGING_OUTGOING_KOGITO_PROCESSINSTANCES_EVENTS_BOOTSTRAP_SERVERS
- name: MP_MESSAGING_OUTGOING_KOGITO_USERTASKINSTANCES_EVENTS_BOOTSTRAP_SERVERS
other tests are running fine
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.
great work!
Depends on: |
76644f2
to
c6a38c3
Compare
Signed-off-by: Ricardo Zanini <[email protected]>
c6a38c3
to
53641e9
Compare
See:
https://issues.redhat.com/browse/KOGITO-1294
@radtriste @DuncanDoyle this is a preliminary version for the Binary Builds support. I still have some work to do:
kogito create-service <my-kogito-service>
To test it, you will need:
quay.io/ricardozanini/kogito-cloud-operator:0.9.0-rc1
(use the yaml files fromdeploy\
)Tomorrow I will work in your feedback and remaining tasks to turn this into a green PR.
Thank you!
Many thanks for submiting your Pull Request ❤️!
Please make sure that your PR meets the following requirements:
[KOGITO-XYZ] Subject