Skip to content

Commit

Permalink
Revert "chores(accuknox-cli): update karmor to accuknox-cli"
Browse files Browse the repository at this point in the history
Signed-off-by: sahil <sahilraja242@gmail.com>
  • Loading branch information
rajaSahil committed Apr 13, 2023
1 parent ef2950c commit a0cf786
Show file tree
Hide file tree
Showing 37 changed files with 53 additions and 53 deletions.
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/kubearmor-client/selfupdate.BuildDate={{.Date}} -X github.com/kubearmor/kubearmor-client/selfupdate.GitSummary={{.Version}}
env:
- CGO_ENABLED=0

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ curl -sfL http://get.kubearmor.io/ | sudo sh -s -- -b /usr/local/bin
Build karmor from source if you want to test the latest (pre-release) karmor version.

```
git clone https://github.com/accuknox/accuknox-cli.git
git clone https://github.com/kubearmor/kubearmor-client.git
cd kubearmor-client
make install
```
Expand Down
2 changes: 1 addition & 1 deletion cmd/discover.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package cmd

import (
"github.com/accuknox/accuknox-cli/discover"
"github.com/kubearmor/kubearmor-client/discover"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package cmd
import (
"fmt"

"github.com/accuknox/accuknox-cli/install"
"github.com/kubearmor/kubearmor-client/install"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package cmd

import (
"github.com/accuknox/accuknox-cli/log"
"github.com/kubearmor/kubearmor-client/log"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"errors"
"net"

"github.com/accuknox/accuknox-cli/vm"
"github.com/kubearmor/kubearmor-client/vm"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/probe.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package cmd

import (
"github.com/accuknox/accuknox-cli/probe"
"github.com/kubearmor/kubearmor-client/probe"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package cmd

import (
profileclient "github.com/accuknox/accuknox-cli/profile/Client"
profileclient "github.com/kubearmor/kubearmor-client/profile/Client"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/recommend.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package cmd

import (
"github.com/accuknox/accuknox-cli/recommend"
"github.com/kubearmor/kubearmor-client/recommend"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
package cmd

import (
"github.com/accuknox/accuknox-cli/k8s"
"github.com/kubearmor/kubearmor-client/k8s"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
)
Expand All @@ -26,7 +26,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
2 changes: 1 addition & 1 deletion cmd/rotate-tls.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/accuknox/accuknox-cli/rotatetls"
"github.com/kubearmor/kubearmor-client/rotatetls"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/selfupdate.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package cmd

import (
"github.com/accuknox/accuknox-cli/selfupdate"
"github.com/kubearmor/kubearmor-client/selfupdate"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package cmd

import (
"github.com/accuknox/accuknox-cli/summary"
"github.com/kubearmor/kubearmor-client/summary"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/sysdump.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package cmd

import (
"github.com/accuknox/accuknox-cli/sysdump"
"github.com/kubearmor/kubearmor-client/sysdump"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/uninstall.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package cmd

import (
"github.com/accuknox/accuknox-cli/install"
"github.com/kubearmor/kubearmor-client/install"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package cmd

import (
"github.com/accuknox/accuknox-cli/version"
"github.com/kubearmor/kubearmor-client/version"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package cmd
import (
"fmt"

"github.com/accuknox/accuknox-cli/vm"
"github.com/kubearmor/kubearmor-client/vm"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/vmlabel.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package cmd
import (
"net"

"github.com/accuknox/accuknox-cli/vm"
"github.com/kubearmor/kubearmor-client/vm"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/vmonboarding.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"errors"
"net"

"github.com/accuknox/accuknox-cli/vm"
"github.com/kubearmor/kubearmor-client/vm"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 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/accuknox/accuknox-cli/k8s"
"github.com/accuknox/accuknox-cli/utils"
"github.com/clarketm/json"
"github.com/kubearmor/kubearmor-client/k8s"
"github.com/kubearmor/kubearmor-client/utils"
"github.com/rs/zerolog/log"
"sigs.k8s.io/yaml"

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/accuknox/accuknox-cli
module github.com/kubearmor/kubearmor-client

go 1.18

Expand Down
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ set -e
usage() {
this=$1
cat <<EOF
$this: download go binaries for accuknox/accuknox-cli
$this: download go binaries for kubearmor/kubearmor-client
Usage: $this [-b] bindir [-d] [tag]
-b sets bindir or installation directory, Defaults to ./bin
-d turns on debug logging
[tag] is a tag from
https://github.com/accuknox/accuknox-cli/releases
https://github.com/kubearmor/kubearmor-client/releases
If tag is missing, then the latest will be used.
Generated by godownloader
Expand Down
2 changes: 1 addition & 1 deletion install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"github.com/clarketm/json"
"sigs.k8s.io/yaml"

"github.com/accuknox/accuknox-cli/k8s"
deployments "github.com/kubearmor/KubeArmor/deployments/get"
"github.com/kubearmor/kubearmor-client/k8s"

"golang.org/x/mod/semver"
v1 "k8s.io/api/apps/v1"
Expand Down
4 changes: 2 additions & 2 deletions log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"syscall"
"time"

"github.com/accuknox/accuknox-cli/k8s"
"github.com/accuknox/accuknox-cli/utils"
"github.com/kubearmor/kubearmor-client/k8s"
"github.com/kubearmor/kubearmor-client/utils"
)

type regexType *regexp.Regexp
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// Package main is responsible for the execution of CLI
package main

import "github.com/accuknox/accuknox-cli/cmd"
import "github.com/kubearmor/kubearmor-client/cmd"

func main() {
cmd.Execute()
Expand Down
6 changes: 3 additions & 3 deletions probe/probe.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ import (
"strings"
"time"

"github.com/accuknox/accuknox-cli/deployment"
"github.com/accuknox/accuknox-cli/k8s"
mapset "github.com/deckarep/golang-set/v2"
"github.com/fatih/color"
jsoniter "github.com/json-iterator/go"
tp "github.com/kubearmor/KubeArmor/KubeArmor/types"
"github.com/kubearmor/kubearmor-client/deployment"
"github.com/kubearmor/kubearmor-client/k8s"
"github.com/olekukonko/tablewriter"
"golang.org/x/exp/slices"
"golang.org/x/mod/semver"
Expand All @@ -34,7 +34,7 @@ import (

"errors"

"github.com/accuknox/accuknox-cli/install"
"github.com/kubearmor/kubearmor-client/install"
"golang.org/x/sys/unix"
)

Expand Down
4 changes: 2 additions & 2 deletions profile/Client/profileClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import (
"os"
"time"

klog "github.com/accuknox/accuknox-cli/log"
profile "github.com/accuknox/accuknox-cli/profile"
"github.com/charmbracelet/bubbles/help"
"github.com/charmbracelet/bubbles/key"
tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss"
"github.com/evertras/bubble-table/table"
pb "github.com/kubearmor/KubeArmor/protobuf"
klog "github.com/kubearmor/kubearmor-client/log"
profile "github.com/kubearmor/kubearmor-client/profile"
)

// Column keys
Expand Down
4 changes: 2 additions & 2 deletions profile/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

pb "github.com/kubearmor/KubeArmor/protobuf"

"github.com/accuknox/accuknox-cli/k8s"
klog "github.com/accuknox/accuknox-cli/log"
"github.com/kubearmor/kubearmor-client/k8s"
klog "github.com/kubearmor/kubearmor-client/log"
log "github.com/sirupsen/logrus"
"google.golang.org/protobuf/encoding/protojson"
)
Expand Down
2 changes: 1 addition & 1 deletion recommend/recommend.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"path/filepath"
"strings"

"github.com/accuknox/accuknox-cli/k8s"
"github.com/fatih/color"
"github.com/kubearmor/kubearmor-client/k8s"
log "github.com/sirupsen/logrus"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down
4 changes: 2 additions & 2 deletions rotatetls/rotate-tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
"strings"
"time"

"github.com/accuknox/accuknox-cli/install"
"github.com/accuknox/accuknox-cli/k8s"
deployments "github.com/kubearmor/KubeArmor/deployments/get"
"github.com/kubearmor/kubearmor-client/install"
"github.com/kubearmor/kubearmor-client/k8s"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/util/rand"
)
Expand Down
4 changes: 2 additions & 2 deletions selfupdate/selfupdate.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"os"
"strings"

"github.com/accuknox/accuknox-cli/k8s"
"github.com/blang/semver"
"github.com/fatih/color"
"github.com/kubearmor/kubearmor-client/k8s"
"github.com/rhysd/go-github-selfupdate/selfupdate"
)

Expand All @@ -23,7 +23,7 @@ var GitSummary string
// BuildDate for accuknox-cli git build
var BuildDate string

const ghrepo = "accuknox/accuknox-cli"
const ghrepo = "kubearmor/kubearmor-client"

func isValidVersion(ver string) bool {
_, err := semver.Make(ver)
Expand Down
4 changes: 2 additions & 2 deletions summary/summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"os"
"strconv"

"github.com/accuknox/accuknox-cli/k8s"
"github.com/accuknox/accuknox-cli/utils"
opb "github.com/accuknox/auto-policy-discovery/src/protobuf/v1/observability"
"github.com/kubearmor/kubearmor-client/k8s"
"github.com/kubearmor/kubearmor-client/utils"

"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
Expand Down
2 changes: 1 addition & 1 deletion sysdump/sysdump.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import (

"golang.org/x/sync/errgroup"

"github.com/accuknox/accuknox-cli/k8s"
kg "github.com/kubearmor/KubeArmor/KubeArmor/log"
"github.com/kubearmor/kubearmor-client/k8s"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
Expand Down
4 changes: 2 additions & 2 deletions tests/recommend/recommend_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
. "github.com/onsi/ginkgo/v2"
"sigs.k8s.io/yaml"

"github.com/accuknox/accuknox-cli/k8s"
"github.com/accuknox/accuknox-cli/recommend"
"github.com/google/go-cmp/cmp"
"github.com/kubearmor/kubearmor-client/k8s"
"github.com/kubearmor/kubearmor-client/recommend"
. "github.com/onsi/gomega"
)

Expand Down
2 changes: 1 addition & 1 deletion utils/portforward.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"os"
"strconv"

"github.com/accuknox/accuknox-cli/k8s"
"github.com/kubearmor/kubearmor-client/k8s"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/client-go/tools/portforward"
"k8s.io/client-go/transport/spdy"
Expand Down
Loading

0 comments on commit a0cf786

Please sign in to comment.