diff --git a/Gopkg.lock b/Gopkg.lock deleted file mode 100644 index 05423c8..0000000 --- a/Gopkg.lock +++ /dev/null @@ -1,17 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - digest = "1:342378ac4dcb378a5448dd723f0784ae519383532f5e70ade24132c4c8693202" - name = "gopkg.in/yaml.v2" - packages = ["."] - pruneopts = "UT" - revision = "5420a8b6744d3b0345ab293f6fcba19c978f1183" - version = "v2.2.1" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - input-imports = ["gopkg.in/yaml.v2"] - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml deleted file mode 100644 index 7c2e310..0000000 --- a/Gopkg.toml +++ /dev/null @@ -1,7 +0,0 @@ -[[constraint]] - name = "gopkg.in/yaml.v2" - version = "2.2.1" - -[prune] - go-tests = true - unused-packages = true diff --git a/Makefile b/Makefile index b885ebb..12a914d 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,8 @@ +GO111MODULE=on SHELL=/bin/bash -BINARY_NAME:="kubectl-ksd" -GOPATH:="${HOME}/go" +BINARY_NAME:=kubectl-ksd +GOPATH:=${HOME}/go .PHONY: install install: ## Install the binary - @go build -o ${GOPATH}/bin/${BINARY_NAME} + @go build -o "${GOPATH}/bin/${BINARY_NAME}" diff --git a/README.md b/README.md index cf12d44..062002e 100644 --- a/README.md +++ b/README.md @@ -44,15 +44,17 @@ type: Opaque ### Installation These instructions assume you have go installed and a `$GOPATH` set. -The binary needs to be installed somewhere in your `$PATH`. -The binary also needs to be named either `kubectl-ksd` or `kubectl-kubernetes-secret-decode` +If you have not set `$GOPATH` it will be assumed to be `$HOME/go` -For easy install running the following: +For easy install, running the following: ``` make install ``` -Another option is to download the binary and add it to your path +Another option is to download the binary and add it to your path. +The binary needs to be installed somewhere in your system `$PATH`. +The binary also needs to be named either `kubectl-ksd` or `kubectl-kubernetes-secret-decode` + ``` curl -LO https://github.com/ashleyschuett/kubernetes-secret-decode/releases/download/v3.0.0/kubectl-ksd && chmod +x ksd && sudo mv ksd /usr/local/bin ``` diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..eac4925 --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module github.com/ashleyschuett/kubernetes-secret-decode + +go 1.12 + +require gopkg.in/yaml.v2 v2.2.1 diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..774a9a1 --- /dev/null +++ b/go.sum @@ -0,0 +1,4 @@ +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/yaml.v2 v2.2.1 h1:mUhvW9EsL+naU5Q3cakzfE91YhliOondGd6ZrsDBHQE= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=