Skip to content

Commit

Permalink
No longer vendor sops (#12)
Browse files Browse the repository at this point in the history
Going forward, we shell out to the binary. Debugging errors was hard
since we would only get incomplete error messages. Error output is much
better if we just run a separate SOPS process and get its output.

Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
  • Loading branch information
unguiculus committed Sep 16, 2020
1 parent df7f266 commit d49635c
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 54 deletions.
3 changes: 3 additions & 0 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ RUN microdnf update -y && \
RUN groupadd --gid 1000 sops-operator && \
useradd --uid 1000 --gid 1000 sops-operator

RUN curl -fsSLo /usr/local/bin/sops https://github.com/mozilla/sops/releases/download/v3.6.1/sops-v3.6.1.linux && \
chmod +x /usr/local/bin/sops

USER sops-operator
WORKDIR /home/sops-operator

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ module github.com/craftypath/sops-operator
go 1.14

require (
github.com/aws/aws-sdk-go v1.33.18 // indirect
github.com/go-logr/logr v0.1.0
github.com/golangci/golangci-lint v1.27.0
github.com/goreleaser/goreleaser v0.138.0
github.com/magefile/mage v1.9.0
github.com/operator-framework/operator-sdk v0.18.1
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.6.1
go.mozilla.org/sops/v3 v3.5.0
go.uber.org/zap v1.14.1
golang.org/x/tools v0.0.0-20200608174601-1b747fd94509
k8s.io/api v0.18.2
Expand Down
Loading

0 comments on commit d49635c

Please sign in to comment.