diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4753569..c5ff081 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: release on: push: tags: - - "v*.*.*" + - v*.*.* jobs: release_job: name: goreleaser & krew @@ -16,11 +16,12 @@ jobs: - name: Setup Go uses: actions/setup-go@v5 with: - go-version: "^1.22" + go-version: ^1.22 - name: GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: - args: release --rm-dist + args: release --clean + version: ~> v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Update new version in krew-index diff --git a/go.mod b/go.mod index 9c71ed4..dcb96b5 100644 --- a/go.mod +++ b/go.mod @@ -3,9 +3,9 @@ module github.com/elsesiy/kubectl-view-secret go 1.22 require ( - github.com/goccy/go-json v0.10.2 + github.com/goccy/go-json v0.10.3 github.com/magiconair/properties v1.8.7 - github.com/spf13/cobra v1.8.0 + github.com/spf13/cobra v1.8.1 ) require ( diff --git a/go.sum b/go.sum index bdd51b0..3c7fbc6 100644 --- a/go.sum +++ b/go.sum @@ -1,6 +1,9 @@ github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU= github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= +github.com/goccy/go-json v0.10.3 h1:KZ5WoDbxAIgm2HNbYckL0se1fHD6rz5j4ywS6ebzDqA= +github.com/goccy/go-json v0.10.3/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= @@ -8,6 +11,8 @@ github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3v github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= +github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM= +github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/pkg/cmd/view-secret.go b/pkg/cmd/view-secret.go index 5fbf65a..b031aec 100644 --- a/pkg/cmd/view-secret.go +++ b/pkg/cmd/view-secret.go @@ -55,15 +55,15 @@ var ErrInsufficientArgs = fmt.Errorf("\nincorrect number or arguments, see --hel // CommandOpts is the struct holding common properties type CommandOpts struct { - customNamespace string - customContext string - decodeAll bool - kubeConfig string - secretName string - secretKey string - quiet bool - impersonateAs string - impersonateAsGroups string + customContext string + customNamespace string + decodeAll bool + impersonateAs string + impersonateAsGroups string + kubeConfig string + quiet bool + secretKey string + secretName string } // NewCmdViewSecret creates the cobra command to be executed