Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #14 from magneticio/feature/LAM-204-modules
Browse files Browse the repository at this point in the history
Added modules support
  • Loading branch information
bgokden authored Apr 23, 2019
2 parents 187583c + 5be4e63 commit 2c78f19
Show file tree
Hide file tree
Showing 19 changed files with 366 additions and 21 deletions.
8 changes: 3 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ version: 2
jobs:
build:
docker:
- image: circleci/golang:1.11
working_directory: /go/src/github.com/magneticio/vampkubistcli
- image: circleci/golang:1.12.3
steps:
- checkout
- run: mkdir -p ./artifacts
- run: go get
- run: ./test.sh
- run: ./build.sh local
- run: cp ./bin/* ./artifacts
Expand Down Expand Up @@ -37,12 +35,12 @@ workflows:
- build:
filters:
tags:
only: /^\d+\.\d+\.\d+$/
only: /^(v)\d+\.\d+\.\d+$/
- publish-github-release:
requires:
- build
filters:
branches:
ignore: /.*/
tags:
only: /^\d+\.\d+\.\d+$/
only: /^(v)\d+\.\d+\.\d+$/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ $AppName
bin/
.idea/
temp/
vampkubistcli
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if [ "$1" = "local" ]; then
unset GOOS
unset GOARCH
else
docker run --rm -it -v "$GOPATH":/go -w /go/src/github.com/magneticio/vampkubistcli dockercore/golang-cross:1.11.1 sh -c '
docker run --rm -it -v "$GOPATH":/go -w /go/src/github.com/magneticio/vampkubistcli dockercore/golang-cross:1.12.3 sh -c '
for GOOS in darwin linux windows; do
for GOARCH in 386 amd64; do
echo "Building $GOOS-$GOARCH"
Expand Down
2 changes: 1 addition & 1 deletion cmd/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"strings"

"github.com/magneticio/forklift/logging"
"github.com/magneticio/vampkubistcli/logging"
"github.com/magneticio/vampkubistcli/client"
"github.com/magneticio/vampkubistcli/util"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion cmd/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

b64 "encoding/base64"

"github.com/magneticio/forklift/logging"
"github.com/magneticio/vampkubistcli/logging"
"github.com/magneticio/vampkubistcli/client"
"github.com/magneticio/vampkubistcli/kubernetes"
"github.com/magneticio/vampkubistcli/models"
Expand Down
2 changes: 1 addition & 1 deletion cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"encoding/json"
"errors"

"github.com/magneticio/forklift/logging"
"github.com/magneticio/vampkubistcli/logging"
"github.com/magneticio/vampkubistcli/client"
"github.com/magneticio/vampkubistcli/models"
"github.com/magneticio/vampkubistcli/util"
Expand Down
2 changes: 1 addition & 1 deletion cmd/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package cmd
import (
"errors"

"github.com/magneticio/forklift/logging"
"github.com/magneticio/vampkubistcli/logging"
"github.com/magneticio/vampkubistcli/client"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"time"

"github.com/magneticio/forklift/logging"
"github.com/magneticio/vampkubistcli/logging"
"github.com/magneticio/vampkubistcli/client"
"github.com/magneticio/vampkubistcli/util"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion cmd/grant.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"regexp"
"strings"

"github.com/magneticio/forklift/logging"
"github.com/magneticio/vampkubistcli/logging"
"github.com/magneticio/vampkubistcli/client"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"strings"

"github.com/magneticio/forklift/logging"
"github.com/magneticio/vampkubistcli/logging"
"github.com/magneticio/vampkubistcli/client"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"syscall"

"github.com/magneticio/forklift/logging"
"github.com/magneticio/vampkubistcli/logging"
"github.com/magneticio/vampkubistcli/client"
"github.com/magneticio/vampkubistcli/util"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion cmd/passwd.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package cmd
import (
"fmt"

"github.com/magneticio/forklift/logging"
"github.com/magneticio/vampkubistcli/logging"
"github.com/magneticio/vampkubistcli/client"
"github.com/magneticio/vampkubistcli/util"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion cmd/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package cmd
import (
"fmt"

"github.com/magneticio/forklift/logging"
"github.com/magneticio/vampkubistcli/logging"
"github.com/magneticio/vampkubistcli/client"
"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"encoding/json"
"errors"

"github.com/magneticio/forklift/logging"
"github.com/magneticio/vampkubistcli/logging"
"github.com/magneticio/vampkubistcli/client"
"github.com/magneticio/vampkubistcli/models"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion cmd/revoke.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package cmd
import (
"errors"

"github.com/magneticio/forklift/logging"
"github.com/magneticio/vampkubistcli/logging"
"github.com/magneticio/vampkubistcli/client"
"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 @@ -21,7 +21,7 @@ import (
"path/filepath"
"strings"

"github.com/magneticio/forklift/logging"
"github.com/magneticio/vampkubistcli/logging"
homedir "github.com/mitchellh/go-homedir"
"github.com/spf13/cobra"
"github.com/spf13/viper"
Expand Down Expand Up @@ -58,7 +58,7 @@ var OutputType string
var Hosts []string

// version should be in format d.d.d where d is a decimal number
const Version string = "0.0.21"
const Version string = "v0.0.22"
const AppName string = "vamp"

// Backend version is the version this client is tested with
Expand Down
2 changes: 1 addition & 1 deletion cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"encoding/json"
"errors"

"github.com/magneticio/forklift/logging"
"github.com/magneticio/vampkubistcli/logging"
"github.com/magneticio/vampkubistcli/client"
"github.com/magneticio/vampkubistcli/models"
"github.com/magneticio/vampkubistcli/util"
Expand Down
36 changes: 36 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
module github.com/magneticio/vampkubistcli

go 1.12

require (
github.com/Azure/go-autorest/autorest v0.1.0 // indirect
github.com/cenkalti/backoff v2.1.1+incompatible
github.com/ghodss/yaml v1.0.0
github.com/gogo/protobuf v1.2.1 // indirect
github.com/google/btree v1.0.0 // indirect
github.com/google/gofuzz v1.0.0 // indirect
github.com/googleapis/gnostic v0.2.0 // indirect
github.com/gophercloud/gophercloud v0.0.0-20190422143055-fe6299556848 // indirect
github.com/gregjones/httpcache v0.0.0-20190212212710-3befbb6ad0cc // indirect
github.com/imdario/mergo v0.3.7 // indirect
github.com/json-iterator/go v1.1.6 // indirect
github.com/magneticio/forklift v0.1.15
github.com/mitchellh/go-homedir v1.1.0
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
github.com/spf13/cobra v0.0.3
github.com/spf13/viper v1.3.2
github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0
golang.org/x/crypto v0.0.0-20190422183909-d864b10871cd
golang.org/x/net v0.0.0-20190420063019-afa5a82059c6 // indirect
golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/resty.v1 v1.12.0
gopkg.in/yaml.v2 v2.2.2
k8s.io/api v0.0.0-20190222213804-5cb15d344471
k8s.io/apimachinery v0.0.0-20190221213512-86fb29eff628
k8s.io/client-go v10.0.0+incompatible
k8s.io/klog v0.3.0 // indirect
sigs.k8s.io/yaml v1.1.0 // indirect
)
Loading

0 comments on commit 2c78f19

Please sign in to comment.