Skip to content

Commit

Permalink
Support New KRM-Style Exec Plugin (#163)
Browse files Browse the repository at this point in the history
* style: go.19 fmt

* feat: prep for handling both krm and legacy exec plugin

* refactor: move ksops manifest processing into func

* refactor: return err from decryptFile

* feat: support KRM style exec plugin

* fix: decrypt file from parsed path

* refactor: move helper functions below main

* fix: add krm deps

* chore: go mod tidy -go=1.16 && go mod tidy -go=1.17

* fix: go lint

* fix: go vet

* fix: use go install to install kustomize to support Go 1.18/19

* feat: support go >1.18, required by krm

* fix: typo in README

* feat: add more better help message

* feat: add simple KRM test

* fix: do not add trailing separator to generated manifests

* fix: duplicate append

* test: add krm test coverage

* feat: install ksops to go path for testing

* refactor: move existing tests under legacy folder

* chore: refer to old plugin as legacy

* feat: bump docker Go version

* refactor: migrate existing archive install script to separate file

* feat: install ksops to /usr/local/bin

* chore: better error message

* feat: rewrite README for krm exec plugin, preserve old README in a separate file

* fix: typo in legacy title

* fix: clean ksops install on make clean
  • Loading branch information
devstein authored Jan 24, 2023
1 parent 84029d2 commit 58f7d65
Show file tree
Hide file tree
Showing 86 changed files with 1,414 additions and 280 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
go: [1.17]
go: [1.18, 1.19]
name: ${{ matrix.os }} @ Go ${{ matrix.go }}
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG GO_VERSION="1.17"
ARG GO_VERSION="1.18"

#--------------------------------------------#
#--------Build KSOPS and Kustomize-----------#
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ build:

.PHONY: clean
clean:
rm $(PLUGIN_NAME) || true
rm -f $(PLUGIN_NAME)
rm -rf $(XDG_CONFIG_HOME)/kustomize/plugin/viaduct.ai/v1/ || true
rm -rf $(HOME)/sigs.k8s.io/kustomize/plugin/viaduct.ai/v1/ || true
rm -f $(shell command -v $(PLUGIN_NAME))

.PHONY: kustomize
kustomize:
Expand Down
Loading

0 comments on commit 58f7d65

Please sign in to comment.