Skip to content

Commit

Permalink
Update nimbus-adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
seungsoo-lee committed Jan 9, 2024
1 parent 8a5432a commit 9d6f39a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*.dylib
bin
Dockerfile.cross
nimbus-kubearmor

# Test binary, build with `go test -c`
*.test
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ lint-fix: golangci-lint ## Run golangci-lint linter and perform fixes

.PHONY: build
build: manifests generate fmt vet ## Build manager binary.
go build -o bin/manager cmd/main.go
GOARCH=amd64 GOOS=linux go build -o bin/manager cmd/main.go

.PHONY: run
run: manifests generate fmt vet ## Run a controller from your host.
Expand Down Expand Up @@ -181,4 +181,4 @@ $(CONTROLLER_GEN): $(LOCALBIN)
.PHONY: envtest
envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
$(ENVTEST): $(LOCALBIN)
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
4 changes: 3 additions & 1 deletion pkg/nimbus-kubearmor/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@

.PHONY: build run deploy-rbac

BINARY_NAME=nimbus-kubearmor

build:
go build -o nimbus-kubearmor
GOARCH=amd64 GOOS=linux go build -o ${BINARY_NAME} main.go

run:
./nimbus-kubearmor
Expand Down
Binary file removed pkg/nimbus-kubearmor/nimbus-kubearmor
Binary file not shown.
5 changes: 4 additions & 1 deletion scripts/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ kubectl delete securityintentbindings --all --all-namespaces
# Delete all NimbusPolicy resources
kubectl delete nimbuspolicies --all --all-namespaces

echo "All resources have been successfully deleted."
# Delete all KubeArmorPolicy resouces
kubectl delete ksp --all --all-namespaces

echo "All resources have been successfully deleted."

0 comments on commit 9d6f39a

Please sign in to comment.