Skip to content

Commit

Permalink
Confluent kafka avro (#35932) (#35961)
Browse files Browse the repository at this point in the history
* Added avro extra package for data serialization

* Reverted global poetry.lock

Co-authored-by: Jorge Candedo <[email protected]>
  • Loading branch information
JudahSchwartz and jorgeacjitx authored Feb 2, 2025
1 parent 75c8dc8 commit bf5d5f7
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 9 deletions.
79 changes: 72 additions & 7 deletions docker/vendors-sdk/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docker/vendors-sdk/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ readme = "README.md"
[tool.poetry.dependencies]
python = "~3.12"
cloakensdk = "*"
confluent-kafka = "==1.7.0" # need specific version of os package, see CIAC-8412
confluent-kafka = {extras = ["avro"], version = "==1.7.0"} # need specific version of os package, see CIAC-8412
fp-ngfw-smc-python = "*"
pydantic = ">=2.5.3"
duo-client = "*"
Expand Down
5 changes: 4 additions & 1 deletion docker/vendors-sdk/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
import cloakensdk.utility

import confluent_kafka
from confluent_kafka import Producer
from confluent_kafka.schema_registry import SchemaRegistryClient
from confluent_kafka.schema_registry.avro import AvroSerializer
import smc
import pydantic

Expand All @@ -15,4 +18,4 @@
import jbxapi
import cyberintegrations

print('Verify of vendors-sdk image passed!')
print('Verify of vendors-sdk image passed!')

0 comments on commit bf5d5f7

Please sign in to comment.