Skip to content
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

Kafka watcher component in network mapper #82

Merged
merged 29 commits into from
Mar 22, 2023
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
bc0c859
kafka-watcher skeleton
amitlicht Mar 12, 2023
2a8b340
Add report kafka watcher results to network mapper
amitlicht Mar 14, 2023
2960545
report results from watcher to mapper
amitlicht Mar 14, 2023
c2807a5
Build + test fixes
amitlicht Mar 14, 2023
71d94e3
Support multiple kafka servers
amitlicht Mar 14, 2023
99eb500
Use in-cluster config
amitlicht Mar 14, 2023
71cd344
Merge branch 'main' into amitlicht/kafka_watcher
amitlicht Mar 15, 2023
d610f95
Remove CN resolving from otterize identities
amitlicht Mar 15, 2023
7fb8b98
Use record read time as its last seen
amitlicht Mar 16, 2023
8ae5672
Mapper: store & API by intents with types and topics etc
amitlicht Mar 16, 2023
e5cea63
Fix schema.graphql wrongly ignored in diffs
amitlicht Mar 16, 2023
ad05858
Tests fixes
amitlicht Mar 16, 2023
564973e
Fix intents holder not preseving topics
amitlicht Mar 19, 2023
089931e
Test fix
amitlicht Mar 19, 2023
64a5d27
Fix intent type on upload to cloud
amitlicht Mar 19, 2023
3312479
Move go generate to lint CI
amitlicht Mar 19, 2023
9ce7903
Fix store key to be consistent (no pointer)
amitlicht Mar 19, 2023
627199e
Run go generate
amitlicht Mar 19, 2023
ff64faf
rename client -> mapperclient
amitlicht Mar 21, 2023
eb5ad31
rename client -> mapperclient
amitlicht Mar 21, 2023
b75faaf
CR fixes - move to lo maps to functions
amitlicht Mar 21, 2023
f95ced6
CR fixes
amitlicht Mar 21, 2023
2582191
CR fixes
amitlicht Mar 21, 2023
a57adb7
Add kafka watcher (experimental) to readme
amitlicht Mar 21, 2023
502ed25
Move kafka-watcher source code to exp
amitlicht Mar 22, 2023
f0650e0
Move docker files to /build
amitlicht Mar 22, 2023
7b677a3
Add missing retag_image_as_latest kafka-watcher
amitlicht Mar 22, 2023
47fcf8c
Fix go generate
amitlicht Mar 22, 2023
2b96e9a
Fix docker files to work with correct src paths
amitlicht Mar 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
*_gen.go linguist-generated=true
generated.go linguist-generated=true
go.mod linguist-generated=true
go.sum linguist-generated=true
schema.graphql linguist-generated=true
go.sum linguist-generated=true
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
service:
- mapper
- sniffer
- kafka-watcher

steps:
- name: Checkout
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@ jobs:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt update && sudo apt install libpcap-dev # required for the linter to be able to lint github.com/google/gopacket
- name: go get
run: go get .
working-directory: src
- name: go generate
run: go generate ./...
working-directory: src
- name: go vet
run: go vet ./...
working-directory: src/
- name: check git diff
run: git diff --exit-code
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/release-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,16 @@ jobs:
network: host
platforms: linux/amd64,linux/arm64
build-args:
SOURCE_IMAGE=${{ env.REGISTRY }}:sniffer-${{ github.sha }}
SOURCE_IMAGE=${{ env.REGISTRY }}:sniffer-${{ github.sha }}

- name: Push to Docker Hub - Kafka Watcher
uses: docker/build-push-action@v2
with:
context: .github/workflows
file: .github/workflows/release.Dockerfile
tags: otterize/network-mapper-kafka-watcher:latest,otterize/network-mapper-kafka-watcher:${{ github.ref_name }}
push: true
network: host
platforms: linux/amd64,linux/arm64
build-args:
SOURCE_IMAGE=${{ env.REGISTRY }}:kafka-watcher-${{ github.sha }}
20 changes: 19 additions & 1 deletion src/go.mod

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

Loading