Skip to content

Commit 79bb39c

Browse files
authored
Prep for v0.13.1 release (#429)
* Prep for v0.13.1 release Signed-off-by: Josh Dolitsky <[email protected]> * package bad charts during setup Signed-off-by: Josh Dolitsky <[email protected]> * downgrade to helm 3.5.1, fix tests Signed-off-by: Josh Dolitsky <[email protected]>
1 parent 79d1cbe commit 79bb39c

File tree

13 files changed

+73
-59
lines changed

13 files changed

+73
-59
lines changed

.github/workflows/build-pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: setup go environment
1515
uses: actions/setup-go@v1
1616
with:
17-
go-version: '1.15.7'
17+
go-version: '1.16.0'
1818
- name: download dependencies
1919
run: make bootstrap
2020
- name: run unit tests

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: setup go environment
1717
uses: actions/setup-go@v1
1818
with:
19-
go-version: '1.15.7'
19+
go-version: '1.16.0'
2020
- name: download dependencies
2121
run: make bootstrap
2222
- name: run unit tests

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
FROM golang:alpine
44

5-
ARG version=0.13.0
5+
ARG version=0.13.1
66

77
ARG revision=main
88

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION ?= 0.13.0
1+
VERSION ?= 0.13.1
22
REVISION := $(shell git rev-parse --short HEAD;)
33

44
BINDIR := $(CURDIR)/bin
@@ -155,8 +155,8 @@ fetch-dist:
155155

156156
# The contents of the .sha256sum file are compatible with tools like
157157
# shasum. For example, using the following command will verify
158-
# the file chartmuseum-v0.13.0-darwin-amd64.tar.gz:
159-
# shasum -a 256 -c chartmuseum-v0.13.0-darwin-amd64.tar.gz.sha256sum
158+
# the file chartmuseum-v0.13.1-darwin-amd64.tar.gz:
159+
# shasum -a 256 -c chartmuseum-v0.13.1-darwin-amd64.tar.gz.sha256sum
160160
.PHONY: checksum
161161
checksum:
162162
for f in $$(ls _dist/*.{gz,zip} 2>/dev/null) ; do \

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Install binary using [GoFish](https://gofi.sh/):
9797
```
9898
gofish install chartmuseum
9999
==> Installing chartmuseum...
100-
🐠 chartmuseum 0.13.0: installed in 95.431145ms
100+
🐠 chartmuseum 0.13.1: installed in 95.431145ms
101101
```
102102

103103
or you can use the installer script:
@@ -464,7 +464,7 @@ docker run --rm -it \
464464
-e STORAGE=local \
465465
-e STORAGE_LOCAL_ROOTDIR=/charts \
466466
-v $(pwd)/charts:/charts \
467-
ghcr.io/helm/chartmuseum:v0.13.0
467+
ghcr.io/helm/chartmuseum:v0.13.1
468468
```
469469

470470
Example usage (S3):
@@ -477,7 +477,7 @@ docker run --rm -it \
477477
-e STORAGE_AMAZON_PREFIX="" \
478478
-e STORAGE_AMAZON_REGION="us-east-1" \
479479
-v ~/.aws:/home/chartmuseum/.aws:ro \
480-
ghcr.io/helm/chartmuseum:v0.13.0
480+
ghcr.io/helm/chartmuseum:v0.13.1
481481
```
482482

483483
### Helm Chart

acceptance_tests/lib/ChartMuseum.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def http_status_code_should_be(self, expected_status, actual_status):
1818
def start_chartmuseum(self, storage):
1919
self.stop_chartmuseum()
2020
os.chdir(self.rootdir)
21-
cmd = 'KILLME=1 chartmuseum --debug --port=%d --storage="%s" ' % (common.PORT, storage)
21+
cmd = 'KILLME=1 chartmuseum --debug --enforce-semver2 --port=%d --storage="%s" ' % (common.PORT, storage)
2222
if storage == 'local':
2323
shutil.rmtree(common.STORAGE_DIR, ignore_errors=True)
2424
cmd += '--storage-local-rootdir=%s >> %s 2>&1' % (common.STORAGE_DIR, common.LOGFILE)

go.mod

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
module helm.sh/chartmuseum
22

3-
go 1.15
3+
go 1.16
44

55
replace (
66
github.com/NetEase-Object-Storage/nos-golang-sdk => github.com/karuppiah7890/nos-golang-sdk v0.0.0-20191116042345-0792ba35abcc
7+
github.com/docker/distribution => github.com/docker/distribution v0.0.0-20191216044856-a8371794149d
8+
github.com/docker/docker => github.com/moby/moby v17.12.0-ce-rc1.0.20200618181300-9dc6525e6118+incompatible
79
go.etcd.io/etcd => github.com/eddycjy/etcd v0.5.0-alpha.5.0.20200218102753-4258cdd2efdf
810
google.golang.org/grpc => google.golang.org/grpc v1.29.1
911
)
@@ -13,13 +15,13 @@ require (
1315
github.com/alicebob/gopher-json v0.0.0-20200520072559-a9ecdc9d1d3a // indirect
1416
github.com/alicebob/miniredis v2.5.0+incompatible
1517
github.com/chartmuseum/auth v0.4.5
16-
github.com/chartmuseum/storage v0.10.4
18+
github.com/chartmuseum/storage v0.10.5
1719
github.com/ghodss/yaml v1.0.0
1820
github.com/gin-contrib/size v0.0.0-20200916080119-37b334d93b20
1921
github.com/gin-gonic/gin v1.6.3
2022
github.com/go-redis/redis v6.15.9+incompatible
2123
github.com/gofrs/uuid v4.0.0+incompatible
22-
github.com/gomodule/redigo v1.8.3 // indirect
24+
github.com/gomodule/redigo v1.8.4 // indirect
2325
github.com/prometheus/client_golang v1.9.0
2426
github.com/sirupsen/logrus v1.8.1
2527
github.com/spf13/viper v1.7.1
@@ -29,5 +31,4 @@ require (
2931
github.com/zsais/go-gin-prometheus v0.1.0
3032
go.uber.org/zap v1.16.0
3133
helm.sh/helm/v3 v3.5.1
32-
rsc.io/letsencrypt v0.0.3 // indirect
3334
)

go.sum

+46-44
Large diffs are not rendered by default.

pkg/chartmuseum/server/multitenant/server_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var otherTestTarballPath = "../../../../testdata/charts/otherchart/otherchart-0.
4949
var otherTestProvfilePath = "../../../../testdata/charts/otherchart/otherchart-0.1.0.tgz.prov"
5050
var badTestTarballPath = "../../../../testdata/badcharts/mybadchart/mybadchart-1.0.0.tgz"
5151
var badTestProvfilePath = "../../../../testdata/badcharts/mybadchart/mybadchart-1.0.0.tgz.prov"
52-
var badTestSemver2Path = "../../../../testdata/charts/mybadsemver2chart/mybadsemver2chart-0.x.x.tgz"
52+
var badTestSemver2Path = "../../../../testdata/badcharts/mybadsemver2chart/mybadsemver2chart-0.x.x.tgz"
5353

5454
type MultiTenantServerTestSuite struct {
5555
suite.Suite

scripts/setup-test-environment.sh

+11
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,17 @@ package_test_charts() {
4545
# add another version to repo for metric tests
4646
helm package --sign --key helm-test --keyring ../pgp/helm-test-key.secret --version 0.2.0 -d mychart/ mychart/.
4747
popd
48+
49+
pushd testdata/badcharts/
50+
for d in $(find . -maxdepth 1 -mindepth 1 -type d); do
51+
pushd $d
52+
# TODO: remove in v0.14.0. We do not generate .prov file for this chart
53+
# since prov validation is not enabled, and it breaks acceptance tests
54+
if grep "mybadsemver2chart" Chart.yaml; then
55+
helm package . || true
56+
fi
57+
popd
58+
done
4859
}
4960

5061
main

0 commit comments

Comments
 (0)