-
Notifications
You must be signed in to change notification settings - Fork 835
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add SSL for Kafka loggers * Remove SeldonDeployment used for testing * Add ssl producer for workers as well * Add tests that don't work * more tests * Refactor code and change tests To avoid having to write the same piece of code twice, I refactored the code. I cannot get the test to do what I want though, if I don't set a `broker` then it just hangs and if I set a broker then it throws an error with ``` %7|1640872656.856|BROKERFAIL|rdkafka#producer-1| [thrd:ssl://broker:9092/bootstrap]: ssl://broker:9092/bootstrap: failed: err: Local: Host resolution failure: (errno: Bad address) %7|1640872656.856|STATE|rdkafka#producer-1| [thrd:ssl://broker:9092/bootstrap]: ssl://broker:9092/bootstrap: Broker changed state CONNECT -> DOWN %7|1640872656.856|BROADCAST|rdkafka#producer-1| [thrd:ssl://broker:9092/bootstrap]: Broadcasting state change %7|1640872656.856|BUFQ|rdkafka#producer-1| [thrd:ssl://broker:9092/bootstrap]: ssl://broker:9092/bootstrap: Purging bufq with 0 buffers %7|1640872656.856|BUFQ|rdkafka#producer-1| [thrd:ssl://broker:9092/bootstrap]: ssl://broker:9092/bootstrap: Purging bufq with 0 buffers %7|1640872656.856|BUFQ|rdkafka#producer-1| [thrd:ssl://broker:9092/bootstrap]: ssl://broker:9092/bootstrap: Updating 0 buffers on connection reset ``` * Address comments from PR * Update executor/logger/worker_test.go Co-authored-by: Alex Rakowski <20504869+agrski@users.noreply.github.com> * Add Documentation on how to use SSL with Kakfa * Improve documentation based on feedback * Update doc/source/analytics/logging.md Co-authored-by: Alex Rakowski <20504869+agrski@users.noreply.github.com> * use function to get KafkaSecurityProtocol * Add tests for config files * Add links to Confluent page and librdkafka * Cleanup logging and remove `/certs` * Update doc/source/analytics/logging.md Co-authored-by: Alex Rakowski <20504869+agrski@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Alex Rakowski <20504869+agrski@users.noreply.github.com> * Remove test that doesn't work, add gomega for test * Import gomega as immediate identifiers * Only check sslElements if we use SSL :) Co-authored-by: Alex Rakowski <20504869+agrski@users.noreply.github.com>
- Loading branch information
Showing
9 changed files
with
323 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ openapi/ | |
executor/api/rest/openapi/ | ||
triton-inference-server/ | ||
_operator | ||
certs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.