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

feat(scanner): Implement K8s scanner #184

Merged
merged 36 commits into from
Sep 3, 2024
Merged

feat(scanner): Implement K8s scanner #184

merged 36 commits into from
Sep 3, 2024

Conversation

dorneanu
Copy link
Collaborator

  • The scanner will use the Kubernetes API to fetch information about:
    • pods
    • containers
    • services (extracted from pods labels)
  • Several entities will be created:
    • Service
    • ComponentInstance

@drochow
Copy link
Collaborator

drochow commented Aug 28, 2024

@dorneanu please sign your commits!

scanner/k8s-assets/go.mod Show resolved Hide resolved
scanner/k8s-assets/main.go Show resolved Hide resolved
scanner/k8s-assets/main.go Outdated Show resolved Hide resolved
scanner/k8s-assets/main.go Outdated Show resolved Hide resolved
scanner/k8s-assets/processor/config.go Show resolved Hide resolved
scanner/k8s-assets/processor/processor.go Outdated Show resolved Hide resolved
scanner/k8s-assets/processor/processor.go Outdated Show resolved Hide resolved
scanner/k8s-assets/processor/processor.go Outdated Show resolved Hide resolved
scanner/k8s-assets/scanner/config.go Show resolved Hide resolved
scanner/k8s-assets/scanner/scanner.go Outdated Show resolved Hide resolved
@dorneanu dorneanu requested a review from drochow August 30, 2024 13:01
Copy link
Collaborator

@drochow drochow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good!

I first doubted that grouping by generator name in the scanner is a good idea rather than doing it in the processor. But it's probably a good idea, as in future implementations, this will make it way more straightforward on the processor side.

scanner/k8s-assets/main.go Outdated Show resolved Hide resolved
scanner/k8s-assets/processor/processor.go Show resolved Hide resolved
scanner/k8s-assets/processor/processor.go Outdated Show resolved Hide resolved
scanner/k8s-assets/processor/processor.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@drochow drochow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@drochow drochow merged commit 40417d0 into main Sep 3, 2024
4 checks passed
@drochow drochow deleted the scanner_k8s branch September 3, 2024 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants