Skip to content

Commit

Permalink
Merge pull request #134 from deggja/feat/refactor-scanners
Browse files Browse the repository at this point in the history
feat: refactor scanners
  • Loading branch information
deggja authored May 8, 2024
2 parents c4b1407 + df4a71a commit 791b719
Show file tree
Hide file tree
Showing 7 changed files with 573 additions and 514 deletions.
9 changes: 6 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# .goreleaser.yml
project_name: netfetch

# Changelog Configuration
changelog:
sort: desc
filters:
Expand All @@ -17,8 +18,10 @@ changelog:
regexp: "^fix:"
- title: "Documentation Updates"
regexp: "^docs:"
- title: "Other Changes"
regexp: ".*" # Matches everything that doesn't fit above groups

# Build configuration
# Build Configuration
builds:
- id: "netfetch"
main: ./backend/main.go
Expand All @@ -34,7 +37,7 @@ builds:
- -s -w -X 'github.com/deggja/netfetch/backend/cmd.Version={{.Version}}'
# Additional build flags can be added here

# Archive configuration
# Archive Configuration
archives:
- id: "archive"
builds:
Expand All @@ -43,7 +46,7 @@ archives:
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
wrap_in_directory: true

# Release configuration
# Release Configuration
release:
github:
owner: deggja
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,12 @@ This command will recursively search for tests in all subdirectories (./...) and
## Contribute 🔨
Thank you to the following awesome people:

- [roopeshsn](https://github.com/roopeshsn) - writing tests
- [s-rd](https://github.com/s-rd) - logo
- [JJGadgets](https://github.com/JJGadgets) - testing
- [Home Operations Discord](https://github.com/onedr0p/home-ops) - testing


You are welcome to contribute!

See [CONTRIBUTING](CONTRIBUTING.md) for instructions on how to proceed.
Expand Down
1 change: 0 additions & 1 deletion backend/cmd/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ var scanCmd = &cobra.Command{
}

// Proceed with normal Cilium network policy scan
fmt.Println("Running Cilium network policies scan for namespaces:", namespace)
ciliumScanResult, err := k8s.ScanCiliumNetworkPolicies(namespace, dryRun, false, true, true, true)
if err != nil {
fmt.Println("Error during Cilium network policies scan:", err)
Expand Down
Binary file modified backend/netfetch
Binary file not shown.
Loading

0 comments on commit 791b719

Please sign in to comment.