Skip to content

Commit

Permalink
RC-0.3.2 (#23)
Browse files Browse the repository at this point in the history
* Changed chart url from charts to kubeslice
* Updated old references of `slicectl` in imports and documentation
* Added help for root command
* Version upgrade form 0.3.1 to 0.3.2

Signed-off-by: Priyank Upadhyay <[email protected]>
Co-authored-by: Eric Peterson <[email protected]>
  • Loading branch information
priyank-upadhyay and eric978 authored Nov 2, 2022
1 parent 1cf666d commit e11fab1
Show file tree
Hide file tree
Showing 41 changed files with 62 additions and 77 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `kubeslice-cli` for simplified KubeSlice Operations

[comment]: <> (![Latest GitHub release]&#40;https://img.shields.io/github/release/kubeslice/slicectl.svg&#41;)
[comment]: <> (![Latest GitHub release]&#40;https://img.shields.io/github/release/kubeslice/kubeslice-cli.svg&#41;)

This repository provides `kubeslice-cli` tool.
[Install &rarr;](#installation)
Expand All @@ -9,7 +9,7 @@ This repository provides `kubeslice-cli` tool.

`kubeslice-cli` is a Go Lang executable utility which helps perform the KubeSlice operations like installation, demo, etc.
on Kubernetes Clusters. You can download a suitable version of the installer from the [**Releases page
&rarr;**](https://github.com/kubeslice/slicectl/releases)
&rarr;**](https://github.com/kubeslice/kubeslice-cli/releases)


## Synopsis
Expand Down Expand Up @@ -43,7 +43,7 @@ KubeSlice functionality
```
-c, --config string <path-to-topology-configuration-yaml-file>
The yaml file with topology configuration.
Refer: https://github.com/kubeslice/slicectl/blob/master/samples/template.yaml
Refer: https://github.com/kubeslice/kubeslice-cli/blob/master/samples/template.yaml
-h, --help help for kubeslice-cli
-v, --version version for kubeslice-cli
```
Expand Down
4 changes: 2 additions & 2 deletions cmd/create.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cmd

import (
"github.com/kubeslice/slicectl/pkg"
"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/pkg"
"github.com/kubeslice/kubeslice-cli/util"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/delete.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cmd

import (
"github.com/kubeslice/slicectl/pkg"
"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/pkg"
"github.com/kubeslice/kubeslice-cli/util"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/describe.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cmd

import (
"github.com/kubeslice/slicectl/pkg"
"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/pkg"
"github.com/kubeslice/kubeslice-cli/util"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/edit.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cmd

import (
"github.com/kubeslice/slicectl/pkg"
"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/pkg"
"github.com/kubeslice/kubeslice-cli/util"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/get.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cmd

import (
"github.com/kubeslice/slicectl/pkg"
"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/pkg"
"github.com/kubeslice/kubeslice-cli/util"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/install.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cmd

import (
"github.com/kubeslice/slicectl/pkg"
"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/pkg"
"github.com/kubeslice/kubeslice-cli/util"
"github.com/spf13/cobra"
)

Expand Down
4 changes: 2 additions & 2 deletions cmd/register.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package cmd

import (
"github.com/kubeslice/slicectl/pkg"
"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/pkg"
"github.com/kubeslice/kubeslice-cli/util"
"github.com/spf13/cobra"
)

Expand Down
8 changes: 4 additions & 4 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

var Config string

var version = "0.3.1"
var version = "0.3.2"
var rootCmd = &cobra.Command{
Use: "kubeslice-cli",
Version: version,
Expand All @@ -21,16 +21,16 @@ Use kubeslice-cli to install/uninstall required workloads to run KubeSlice Contr
Additional example applications can also be installed in demo profiles to showcase the
KubeSlice functionality`,
Run: func(cmd *cobra.Command, args []string) {

cmd.Help()
},
}

func Execute() {
rootCmd.PersistentFlags().StringVarP(&Config, "config", "c", "", `<path-to-topology-configuration-yaml-file>
The yaml file with topology configuration.
Refer: https://github.com/kubeslice/slicectl/blob/master/samples/template.yaml`)
Refer: https://github.com/kubeslice/kubeslice-cli/blob/master/samples/template.yaml`)
if err := rootCmd.Execute(); err != nil {
fmt.Fprintf(os.Stderr, "Whoops. There was an error while executing slicectl '%s'", err)
fmt.Fprintf(os.Stderr, "Whoops. There was an error while executing kubeslice-cli '%s'", err)
os.Exit(1)
}
// Uncomment to generate docs for new commands/flags
Expand Down
2 changes: 1 addition & 1 deletion cmd/uninstall.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/kubeslice/slicectl/pkg"
"github.com/kubeslice/kubeslice-cli/pkg"
"github.com/spf13/cobra"
)

Expand Down
7 changes: 1 addition & 6 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/kubeslice/slicectl
module github.com/kubeslice/kubeslice-cli

go 1.17

Expand All @@ -9,10 +9,6 @@ require (
)

require (
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/tidwall/gjson v1.14.2 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
Expand All @@ -23,5 +19,4 @@ require (
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/tidwall/sjson v1.2.5
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
)
12 changes: 1 addition & 11 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w=
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/go-yaml/yaml v2.1.0+incompatible h1:RYi2hDdss1u4YE7GwixGzWwVo47T8UQwnTLB6vQiq+o=
github.com/go-yaml/yaml v2.1.0+incompatible/go.mod h1:w2MrLa16VYP0jy6N7M5kHaCkaLENm+P+Tv+MfurjSw0=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/inconshreveable/mousetrap v1.0.1 h1:U3uMjPSQEBMNp1lFxmllqCPM6P5u/Xq7Pgzkat/bFNc=
github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/spf13/cobra v1.5.0 h1:X+jTBEBqF0bHN+9cSMgmfuvv2VHJ9ezmFNf9Y/XstYU=
github.com/spf13/cobra v1.5.0/go.mod h1:dWXEIy2H428czQCjInthrTRUg7yKbok+2Qi/yBIJoUM=
Expand All @@ -28,9 +19,8 @@ github.com/tidwall/pretty v1.2.0 h1:RWIZEg2iJ8/g6fDDYzMpobmaoGh5OLl4AXtGUGPcqCs=
github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU=
github.com/tidwall/sjson v1.2.5 h1:kLy8mja+1c9jlljvWTlSazM7cKDRfJuR/bOJhcY5NcY=
github.com/tidwall/sjson v1.2.5/go.mod h1:Fvgq9kS/6ociJEDnK0Fk1cpYF4FIW6ZF7LAe+6jwd28=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU=
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/kubeslice/slicectl/cmd"
"github.com/kubeslice/kubeslice-cli/cmd"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions pkg/cmd-util.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"io/ioutil"

"github.com/go-yaml/yaml"
"github.com/kubeslice/slicectl/pkg/internal"
"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/pkg/internal"
"github.com/kubeslice/kubeslice-cli/util"
)

const (
Expand Down Expand Up @@ -69,7 +69,7 @@ var defaultConfiguration = &internal.ConfigurationSpecs{
},
HelmChartConfiguration: internal.HelmChartConfiguration{
RepoAlias: "kubeslice-demo",
RepoUrl: "https://kubeslice.github.io/charts/",
RepoUrl: "https://kubeslice.github.io/kubeslice/",
CertManagerChart: internal.HelmChart{
ChartName: "cert-manager",
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/cert-manager-setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"time"

"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/util"
)

func InstallCertManager(ApplicationConfiguration *ConfigurationSpecs) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/cluster-manifests.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"time"

"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/util"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/generate-kind-templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"time"

"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/util"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/get-network-info.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"time"

"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/util"
)

func GatherNetworkInformation(ApplicationConfiguration *ConfigurationSpecs) {
Expand Down
4 changes: 2 additions & 2 deletions pkg/internal/helm-repo-add.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"time"

"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/util"
)

const imagePullSecretsTemplate = `
Expand All @@ -20,7 +20,7 @@ imagePullSecrets:

func AddHelmCharts(ApplicationConfiguration *ConfigurationSpecs) {
hc := ApplicationConfiguration.Configuration.HelmChartConfiguration
// helm repo add avesha https://kubeslice.github.io/charts/
// helm repo add avesha https://kubeslice.github.io/kubeslice/
util.Printf("\nAdding KubeSlice Helm Charts...")

addHelmChart(ApplicationConfiguration)
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/install-calico.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"time"

"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/util"
)

func InstallCalico(clusterConfig *ClusterConfiguration) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/install-iperf.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"log"
"time"

"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/util"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/install-kubeslice-controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"time"

"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/util"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/install-kubeslice-enterprise.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"time"

"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/util"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/install-kubeslice-worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"time"

"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/util"
)

const workerValuesTemplate = `
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/kind-clusters.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strings"
"time"

"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/util"
)

const KubeconfigPath = kubesliceDirectory + "/kubeconfig.yaml"
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/kubernetes-operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"time"

"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/util"
"github.com/tidwall/sjson"
YAML "sigs.k8s.io/yaml"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/print-next-steps.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os/exec"

"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/util"
)

const windowsEnvSet = `
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/project-manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"time"

"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/util"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"time"

"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/util"
)

func GetSecrets(workerName string, namespace string, controllerCluster *Cluster, outputFormat string) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/serviceExport.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package internal
import (
"time"

"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/util"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/slice-config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"time"

"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/util"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/internal/verify-executables.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"time"

"github.com/kubeslice/slicectl/util"
"github.com/kubeslice/kubeslice-cli/util"
)

func VerifyExecutables(ApplicationConfiguration *ConfigurationSpecs) {
Expand Down
Loading

0 comments on commit e11fab1

Please sign in to comment.