-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moved bridge configuration setup within the operator #11032
Moved bridge configuration setup within the operator #11032
Conversation
This PR comes together with strimzi/strimzi-kafka-bridge#963 |
/azp run bridge |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run bridge |
Azure Pipelines successfully started running 1 pipeline(s). |
76c9c35
to
d889705
Compare
/azp run regression |
Azure Pipelines successfully started running 1 pipeline(s). |
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 made just a quick pass ... but left bunch of comments.
...src/main/java/io/strimzi/operator/cluster/operator/assembly/KafkaBridgeAssemblyOperator.java
Outdated
Show resolved
Hide resolved
...perator/src/main/java/io/strimzi/operator/cluster/model/KafkaBridgeConfigurationBuilder.java
Outdated
Show resolved
Hide resolved
...perator/src/main/java/io/strimzi/operator/cluster/model/KafkaBridgeConfigurationBuilder.java
Outdated
Show resolved
Hide resolved
...perator/src/main/java/io/strimzi/operator/cluster/model/KafkaBridgeConfigurationBuilder.java
Show resolved
Hide resolved
...tor/src/test/java/io/strimzi/operator/cluster/model/KafkaBridgeConfigurationBuilderTest.java
Outdated
Show resolved
Hide resolved
...perator/src/main/java/io/strimzi/operator/cluster/model/KafkaBridgeConfigurationBuilder.java
Outdated
Show resolved
Hide resolved
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, thanks :)
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.
There are a couple of test failures, but the overall approach LGTM.
I also left a minor comment. Thanks.
...perator/src/main/java/io/strimzi/operator/cluster/model/KafkaBridgeConfigurationBuilder.java
Outdated
Show resolved
Hide resolved
...perator/src/main/java/io/strimzi/operator/cluster/model/KafkaBridgeConfigurationBuilder.java
Outdated
Show resolved
Hide resolved
...src/main/java/io/strimzi/operator/cluster/operator/assembly/KafkaBridgeAssemblyOperator.java
Show resolved
Hide resolved
cluster-operator/src/test/java/io/strimzi/operator/cluster/model/KafkaBridgeClusterTest.java
Outdated
Show resolved
Hide resolved
cluster-operator/src/test/java/io/strimzi/operator/cluster/model/KafkaBridgeClusterTest.java
Outdated
Show resolved
Hide resolved
cluster-operator/src/test/java/io/strimzi/operator/cluster/model/KafkaBridgeClusterTest.java
Show resolved
Hide resolved
cluster-operator/src/main/java/io/strimzi/operator/cluster/model/KafkaBridgeCluster.java
Show resolved
Hide resolved
cluster-operator/src/main/java/io/strimzi/operator/cluster/model/KafkaBridgeCluster.java
Outdated
Show resolved
Hide resolved
...perator/src/main/java/io/strimzi/operator/cluster/model/KafkaBridgeConfigurationBuilder.java
Outdated
Show resolved
Hide resolved
/azp run regression |
Azure Pipelines successfully started running 1 pipeline(s). |
...test/java/io/strimzi/operator/cluster/operator/assembly/KafkaBridgeAssemblyOperatorTest.java
Outdated
Show resolved
Hide resolved
...test/java/io/strimzi/operator/cluster/operator/assembly/KafkaBridgeAssemblyOperatorTest.java
Outdated
Show resolved
Hide resolved
1c964e1
to
de427e5
Compare
/azp run regression |
Azure Pipelines successfully started running 1 pipeline(s). |
@scholzj I think I addressed all your comments. |
actually it was worse. With the above changes I was able to run HelmCharts system tests locally but now the build is failing because of some checks we do on the naming: FAIL strimzi operator deployment strimzi-kafka-operator/tests/operator_deployment_test.yaml
- should have latest image with default image registry when no image is provided
- asserts[1] `matchRegex` fail
Template: strimzi-kafka-operator/templates/060-Deployment-strimzi-cluster-operator.yaml
DocumentIndex: 0
Path: spec.template.spec.containers[0].image
Expected to match:
quay.io/strimzi/operator:(latest|[0-9]+\.[0-9]+\.[0-9]+)
Actual:
quay.io/ppatierno/operator:bridge-config Tbh, there are too many changes to make for having all regression STs running as they are now. What should we do? @scholzj @im-konge ideas? [UPDATE] |
/azp run regression |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run regression |
Azure Pipelines successfully started running 1 pipeline(s). |
So as mentioned on the related bridge PR strimzi/strimzi-kafka-bridge#963, I made a change on the |
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.
One nit for the CHANGELOG. LGTM otherwise.
Signed-off-by: Paolo Patierno <[email protected]> Reverted back original operator Deployment Set different bridge image for STs Signed-off-by: Paolo Patierno <[email protected]> Fixed missing env vars to setup the truststore Signed-off-by: Paolo Patierno <[email protected]> Removed ST using env vars not in place anymore Signed-off-by: Paolo Patierno <[email protected]> Fixed checkstyle errors Signed-off-by: Paolo Patierno <[email protected]> CHANGELOG update Signed-off-by: Paolo Patierno <[email protected]> Fixed updated systemtests bridge MD Signed-off-by: Paolo Patierno <[email protected]> Fixed scholzj comments Signed-off-by: Paolo Patierno <[email protected]> Factored out a dedicated withConfigProviders method for the bridge configuration builder Refactored bridge configuration builder to use isEquivalent Signed-off-by: Paolo Patierno <[email protected]> Fixed tinaselenge comments Signed-off-by: Paolo Patierno <[email protected]> Fixed checkstyle issues Signed-off-by: Paolo Patierno <[email protected]> Fixed rolling bridge pod on configuration change Signed-off-by: Paolo Patierno <[email protected]> Fixed scholzj and tinaselenge feedback Signed-off-by: Paolo Patierno <[email protected]> Fixed KafkaBridgeAssemblyOperator tests about the missing new hash annotation Signed-off-by: Paolo Patierno <[email protected]> Reverted back some deleted tests Signed-off-by: Paolo Patierno <[email protected]> Adapted system tests to changes in configuration Signed-off-by: Paolo Patierno <[email protected]> Fixed scholzj and fvaleri feedback Signed-off-by: Paolo Patierno <[email protected]>
Signed-off-by: Paolo Patierno <[email protected]>
Temporary charts related changes to run STs Signed-off-by: Paolo Patierno <[email protected]>
Signed-off-by: Paolo Patierno <[email protected]>
Signed-off-by: Paolo Patierno <[email protected]>
Signed-off-by: Paolo Patierno <[email protected]>
99a0d55
to
90427e7
Compare
Type of change
Description
This PR fixes #10959 by moving the configuration of the bridge to be generated by the operator within a ConfigMap (actually using the same one that today is used for the metrics and logging configuratio, but with a different entry in the data section) then mounted on the bridge pod and loaded from there.
NOTE: the temporary change in the .azure/templates/steps/system_test_general.yaml file is for using a custom bridge image which doesn't use its script to generate the configuration anymore. Of course the commit to the file will be reverted before merging the PR. It's there for running STs.
Checklist