Skip to content

Commit

Permalink
Misc chores (#46)
Browse files Browse the repository at this point in the history
- gofmt
- Bump deps
- Bump goreleaser version
  • Loading branch information
elsesiy committed Aug 2, 2024
1 parent 08750df commit 3cbd2a7
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 15 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: release
on:
push:
tags:
- "v*.*.*"
- v*.*.*
jobs:
release_job:
name: goreleaser & krew
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
5 changes: 5 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
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=
github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0=
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=
Expand Down
18 changes: 9 additions & 9 deletions pkg/cmd/view-secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3cbd2a7

Please # to comment.