Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit 10ed5cf

Browse files
authored
Vendoring (#24)
1 parent aed81f3 commit 10ed5cf

File tree

597 files changed

+261448
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

597 files changed

+261448
-7
lines changed

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
# Changelog for Vault Sidecar Injector
22

3-
## Release v6.0.1 - 2020-04-xx
3+
## Release v6.0.1 - 2020-04-06
44

5-
This is a minor release to update Vault image to `1.3.4` by default to benefit from CVE fixes (see details [here](https://github.com/hashicorp/vault/blob/master/CHANGELOG.md#134-march-19th-2020)).
5+
This is a minor release to update Vault image to `1.3.4` by default (CVE fixes, see details [here](https://github.com/hashicorp/vault/blob/master/CHANGELOG.md#134-march-19th-2020)) and enable offline builds by vendoring dependencies (use `make build OFFLINE=true`).
6+
7+
**Changed**
68

79
- [VSI #23](https://github.com/Talend/vault-sidecar-injector/pull/23) - Update HashiCorp Vault image (CVE fixes)
810

11+
**Added**
12+
13+
- [VSI #24](https://github.com/Talend/vault-sidecar-injector/pull/24) - Vendoring
14+
915
## Release v6.0.0 - 2020-03-04
1016

1117
This is a major release introducing new features and complete code refactoring for clear isolation of modes.

Makefile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,18 @@ clean:
2525
fmt:
2626
gofmt -l -w $(SRC)
2727

28-
test:
28+
test: # for detailed outputs, run 'make test VERBOSE=true'
2929
echo "Running tests ..."
3030
go test -v ./...
3131

32-
build: clean test
33-
echo "Building ..."
34-
GOOS=linux GOARCH=amd64 go build $(LDFLAGS) -a -o $(TARGET)
32+
build: clean test # run 'make build OFFLINE=true' to build from vendor folder
33+
if [ -z ${OFFLINE} ] || [ ${OFFLINE} != true ];then \
34+
echo "Building ..."; \
35+
GOOS=linux GOARCH=amd64 go build $(LDFLAGS) -a -o $(TARGET); \
36+
else \
37+
echo "Building using local vendor folder (ie offline build)..."; \
38+
GOOS=linux GOARCH=amd64 go build $(LDFLAGS) -mod=vendor -a -o $(TARGET); \
39+
fi
3540
cd target && sha512sum vaultinjector-webhook > vaultinjector-webhook.sha512
3641

3742
package:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require (
99
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
1010
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 // indirect
1111
github.com/prometheus/client_golang v0.9.3
12-
github.com/spf13/viper v1.4.0
12+
github.com/spf13/viper v1.4.0 // indirect
1313
github.com/stretchr/testify v1.3.0
1414
gopkg.in/inf.v0 v0.9.0 // indirect
1515
k8s.io/api v0.0.0-20190116205037-c89978d5f86d

vendor/github.com/beorn7/perks/LICENSE

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)