Skip to content

Commit

Permalink
Use create --save-config=false (#9)
Browse files Browse the repository at this point in the history
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
  • Loading branch information
unguiculus authored Feb 15, 2021
1 parent 09afa73 commit eb036ae
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
uses: actions/checkout@v1

- name: Setup Go
uses: actions/setup-go@v1
uses: actions/setup-go@v2
with:
go-version: "1.14"
go-version: 1.15

- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Expand All @@ -30,7 +30,6 @@ jobs:
- name: Install tools
run: |
./setup.sh
echo "::add-path::$(go env GOPATH)/bin"
- name: Check License Headers
run: mage -v checkLicenseHeaders
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/craftypath/kubectl-sops

go 1.14
go 1.15

require (
github.com/craftypath/sops-operator v0.7.0
Expand Down
5 changes: 2 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func applySopsSecret(config *config, sopsSecret *v1alpha1.SopsSecret) error {
}

args := []string{
"apply",
"create", "--save-config=false",
}
if config.dryRun {
if config.dryRunType != "" {
Expand Down Expand Up @@ -208,7 +208,6 @@ func parseArgs(args []string) *config {
config.dryRun = true
if submatch[1] != "" {
config.dryRunType = submatch[1]
continue
} else {
if len(args) > i+1 {
nextArg := args[i+1]
Expand All @@ -217,8 +216,8 @@ func parseArgs(args []string) *config {
i++
}
}
continue
}
continue
}

config.kubectlArgs = append(config.kubectlArgs, arg)
Expand Down

0 comments on commit eb036ae

Please sign in to comment.