Skip to content

Commit

Permalink
Karmor support for windows and removal of cilium (#471)
Browse files Browse the repository at this point in the history
* windows support

Signed-off-by: Manik2708 <[email protected]>

* cilium removed

Signed-off-by: Manik2708 <[email protected]>

* some changes reverted

Signed-off-by: Manik2708 <[email protected]>

* add local-release to makefile

Signed-off-by: Aryan-sharma11 <[email protected]>

* remove contains element

Signed-off-by: Aryan-sharma11 <[email protected]>

* fix snyk failures and bump dependencies

Signed-off-by: Aryan-sharma11 <[email protected]>

---------

Signed-off-by: Manik2708 <[email protected]>
Signed-off-by: Aryan-sharma11 <[email protected]>
Co-authored-by: Aryan-sharma11 <[email protected]>
  • Loading branch information
Manik2708 and Aryan-sharma11 committed Jan 17, 2025
1 parent 4a2ba55 commit e20ce1f
Show file tree
Hide file tree
Showing 18 changed files with 973 additions and 3,630 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ out/

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

dist/
# Dependency directories (remove the comment below to include it)
# vendor/
1 change: 1 addition & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ builds:
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
Expand Down
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,14 @@ scan:
go install golang.org/x/vuln/cmd/govulncheck@latest ;\
fi
cd $(CURDIR);\
govulncheck -test ./... ;
govulncheck -test ./... ;

.PHONY: local-release
local-release: build
ifeq (, $(shell which goreleaser))
@{ \
set -e ;\
go install github.com/goreleaser/goreleaser@latest ;\
}
endif
cd $(CURDIR); VERSION=$(shell git describe --tags --always --dirty) goreleaser release --clean --skip=publish --skip=sign --skip=validate --snapshot
1 change: 1 addition & 0 deletions cmd/policy.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// Copyright 2021 Authors of KubeArmor
//go:build darwin || (linux && !windows)

package cmd

Expand Down
3 changes: 1 addition & 2 deletions cmd/probe.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ and what KubeArmor features will be supported e.g: observability, enforcement, e
If KubeArmor is running, It probes which environment KubeArmor is running on (e.g: systemd mode, kubernetes etc.),
the supported KubeArmor features in the environment, the pods being handled by KubeArmor and the policies running on each of these pods`,
RunE: func(cmd *cobra.Command, args []string) error {

err := probe.PrintProbeResult(client, probeInstallOptions)
err := probe.PrintProbeResultCmd(client, probeInstallOptions)
return err

},
Expand Down
221 changes: 36 additions & 185 deletions go.mod

Large diffs are not rendered by default.

2,988 changes: 49 additions & 2,939 deletions go.sum

Large diffs are not rendered by default.

Loading

0 comments on commit e20ce1f

Please sign in to comment.