Skip to content

Commit eb036ae

Browse files
authored
Use create --save-config=false (#9)
Signed-off-by: Reinhard Nägele <[email protected]>
1 parent 09afa73 commit eb036ae

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

.github/workflows/ci.yaml

+3-4
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
uses: actions/checkout@v1
1717

1818
- name: Setup Go
19-
uses: actions/setup-go@v1
19+
uses: actions/setup-go@v2
2020
with:
21-
go-version: "1.14"
21+
go-version: 1.15
2222

23-
- uses: actions/cache@v1
23+
- uses: actions/cache@v2
2424
with:
2525
path: ~/go/pkg/mod
2626
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@@ -30,7 +30,6 @@ jobs:
3030
- name: Install tools
3131
run: |
3232
./setup.sh
33-
echo "::add-path::$(go env GOPATH)/bin"
3433
3534
- name: Check License Headers
3635
run: mage -v checkLicenseHeaders

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/craftypath/kubectl-sops
22

3-
go 1.14
3+
go 1.15
44

55
require (
66
github.com/craftypath/sops-operator v0.7.0

main.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func applySopsSecret(config *config, sopsSecret *v1alpha1.SopsSecret) error {
111111
}
112112

113113
args := []string{
114-
"apply",
114+
"create", "--save-config=false",
115115
}
116116
if config.dryRun {
117117
if config.dryRunType != "" {
@@ -208,7 +208,6 @@ func parseArgs(args []string) *config {
208208
config.dryRun = true
209209
if submatch[1] != "" {
210210
config.dryRunType = submatch[1]
211-
continue
212211
} else {
213212
if len(args) > i+1 {
214213
nextArg := args[i+1]
@@ -217,8 +216,8 @@ func parseArgs(args []string) *config {
217216
i++
218217
}
219218
}
220-
continue
221219
}
220+
continue
222221
}
223222

224223
config.kubectlArgs = append(config.kubectlArgs, arg)

0 commit comments

Comments
 (0)