Prerequisite
- Setup Golang compiling environment (Golang ≥ 1.19)
- Setup Git
- Clone this repository
Minimum build
After building
Now the kubescape binary should be available in your current directory and you can interact with it using ./kubescape.
You can set up minikube locally to test Kubernetes cluster scanning. Check here for usages of kubescape.
Build Kubescape in a pre-configured playground
We have created a Killercoda scenario that you can use to experiment building Kubescape from source.
When you start the scenario, a script will clone the Kubescape repository and execute a Linux build steps. The entire process executes multiple commands in order: it takes around 5-6 minutes to complete.
How to use the build playground:
- Apply changes you wish to make to the Kubescape source code.
- Perform a Linux build
- Now, you can use Kubescape like normal, but instead of using
kubescape, use ./kubescape.
VS Code configuration samples
You can use the sample files below to setup your VS Code environment for building and debugging purposes.
.vscode/settings.json:
.vscode/launch.json: