Skip to content

Commit

Permalink
Sync repo (#8)
Browse files Browse the repository at this point in the history
* fix(logClient.go):fix panic interface conversion: interface {} is nil, not string

Signed-off-by: 晓杰 <2561589453@qq.com>

* Revert "chores(accuknox-cli): update karmor to accuknox-cli"

Signed-off-by: sahil <sahilraja242@gmail.com>

* feat: Connect with discovery-engine to recommend Kyverno policies

Signed-off-by: Vyom-Yadav <jackhammervyom@gmail.com>

* Upgraded github.com/kubearmor/KubeArmor/protobuf to latest

Signed-off-by: stefin <stefin.shaji@accuknox.com>

* chore: Bump go version and dependency versions

Signed-off-by: Vyom-Yadav <jackhammervyom@gmail.com>

* karmor security HTML report fix

Signed-off-by: Vishnu Soman <vishnu@accuknox.com>

* add kubearmor configmap installation

Signed-off-by: Rudraksh Pareek <rudraksh@accuknox.com>

* fix: Fix order of policy report generation

Signed-off-by: Vyom-Yadav <jackhammervyom@gmail.com>

* get uuid (#1)

minor changes

* feat(license): intall license command(#2)

Install license command

* chores(readme): update (#5)

- Update karmor to accuknox-cli
- Update readme

* license-status (#3)

* fix(license): update license commands (#6)

- update license subcommands

* feat(install): install discovery engine (#7)

- install disovery engine

* Update install.sh

* chores(sync): sync repo

Signed-off-by: sahil <sahilraja242@gmail.com>

---------

Signed-off-by: 晓杰 <2561589453@qq.com>
Signed-off-by: sahil <sahilraja242@gmail.com>
Signed-off-by: Vyom-Yadav <jackhammervyom@gmail.com>
Signed-off-by: stefin <stefin.shaji@accuknox.com>
Signed-off-by: Vishnu Soman <vishnu@accuknox.com>
Signed-off-by: Rudraksh Pareek <rudraksh@accuknox.com>
Co-authored-by: 晓杰 <2561589453@qq.com>
Co-authored-by: Vyom-Yadav <jackhammervyom@gmail.com>
Co-authored-by: Rahul Jadhav <nyrahul@gmail.com>
Co-authored-by: stefin <112696367+stefin9898@users.noreply.github.com>
Co-authored-by: Vishnu Soman <vishnu@accuknox.com>
Co-authored-by: Rudraksh Pareek <rudraksh@accuknox.com>
Co-authored-by: Barun Acharya <barun.acharya@accuknox.com>
Co-authored-by: sharmayajush <124571729+sharmayajush@users.noreply.github.com>
  • Loading branch information
9 people committed May 25, 2023
1 parent fab926d commit c7caf5b
Show file tree
Hide file tree
Showing 31 changed files with 2,135 additions and 2,427 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-ginkgo-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: v1.18
go-version: v1.20
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1.3.0
- name: Test connectivity
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- uses: actions/setup-go@v2
with:
go-version: v1.18
go-version: v1.20

- name: Build accuknox-cli
run: make
Expand All @@ -28,7 +28,7 @@ jobs:

- uses: actions/setup-go@v2
with:
go-version: v1.18
go-version: v1.20

- name: Check gofmt
run: make gofmt
Expand All @@ -41,7 +41,7 @@ jobs:

- uses: actions/setup-go@v2
with:
go-version: v1.18
go-version: v1.20

- name: Run Gosec Security Scanner
run: make gosec
Expand All @@ -65,7 +65,7 @@ jobs:

- uses: actions/setup-go@v2
with:
go-version: v1.18
go-version: v1.20

- name: Run unit tests
run: make test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
go-version: 1.20

- name: Install Cosign
uses: sigstore/cosign-installer@main
Expand Down
6 changes: 3 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
project_name: accuknox-cli
project_name: karmor

builds:
- binary: accuknox-cli
- binary: karmor
goos:
- darwin
- linux
goarch:
- amd64
- arm64
ldflags: -w -s -X github.com/accuknox/accuknox-cli/selfupdate.BuildDate={{.Date}} -X github.com/accuknox/accuknox-cli/selfupdate.GitSummary={{.Version}}
ldflags: -w -s -X github.com/kubearmor/accuknox-cli/selfupdate.BuildDate={{.Date}} -X github.com/kubearmor/accuknox-cli/selfupdate.GitSummary={{.Version}}
env:
- CGO_ENABLED=0

Expand Down
1 change: 1 addition & 0 deletions cmd/recommend.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func init() {

recommendCmd.Flags().StringSliceVarP(&recommendOptions.Images, "image", "i", []string{}, "Container image list (comma separated)")
recommendCmd.Flags().StringSliceVarP(&recommendOptions.Labels, "labels", "l", []string{}, "User defined labels for policy (comma separated)")
recommendCmd.Flags().StringSliceVarP(&recommendOptions.Policy, "policy", "p", recommend.DefaultPoliciesToBeRecommended, "Types of policy that can be recommended: KubeArmorPolicy|KyvernoPolicy (comma separated)")
recommendCmd.Flags().StringVarP(&recommendOptions.Namespace, "namespace", "n", "", "User defined namespace value for policies")
recommendCmd.Flags().StringVarP(&recommendOptions.OutDir, "outdir", "o", "out", "output folder to write policies")
recommendCmd.Flags().StringVarP(&recommendOptions.ReportFile, "report", "r", "report.txt", "report file")
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var rootCmd = &cobra.Command{
}
return nil
},
Use: "accuknox-cli",
Use: "karmor",
Short: "A CLI Utility to help manage KubeArmor",
Long: `CLI Utility to help manage KubeArmor
Expand Down
5 changes: 2 additions & 3 deletions discover/discover.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"os"
"strconv"

"github.com/clarketm/json"
"github.com/accuknox/accuknox-cli/k8s"
"github.com/accuknox/accuknox-cli/utils"
"github.com/clarketm/json"
"github.com/rs/zerolog/log"
"sigs.k8s.io/yaml"

Expand Down Expand Up @@ -191,5 +191,4 @@ func Policy(c *k8s.Client, o Options) error {
fmt.Printf("%s", policy)
}
}
return nil
}
ret

Check failure on line 194 in discover/discover.go

View workflow job for this annotation

GitHub Actions / ginkgo-test

syntax error: unexpected EOF, expected }

Check failure on line 194 in discover/discover.go

View workflow job for this annotation

GitHub Actions / go-build

syntax error: unexpected EOF, expected }

Check warning on line 194 in discover/discover.go

View workflow job for this annotation

GitHub Actions / go-lint

invalid file discover/discover.go: discover/discover.go:194:5: expected '}', found 'EOF'

Check failure on line 194 in discover/discover.go

View workflow job for this annotation

GitHub Actions / go-sec

syntax error: unexpected EOF, expected }

Check failure on line 194 in discover/discover.go

View workflow job for this annotation

GitHub Actions / go-fmt

expected '}', found 'EOF'

Check failure on line 194 in discover/discover.go

View workflow job for this annotation

GitHub Actions / go-fmt

expected '}', found 'EOF'

Check failure on line 194 in discover/discover.go

View workflow job for this annotation

GitHub Actions / unit-tests

syntax error: unexpected EOF, expected }

0 comments on commit c7caf5b

Please sign in to comment.