- Help pages
- Starting web server with environment variables
- Starting docker with environment variables
- Starting web server with arguments
- Starting docker with arguments
- Uploading a new chart to S3
- Uploading a new chart to S3 under a
qa
prefix - Refreshing the
index.yaml
manifest
There is a help page which can be pulled up via the -h
flag.
helm-chart-publisher -h
Will bring up
Usage: helm-chart-publisher [options]
Options:
-h, --help output usage information
-V, --version output the version number
-H, --host <host> host address to listen with
-P, --port <port> port to listen with
-r, --region <string> AWS region (defaults to us-east-1
-a, --accessKey <token> AWS access key
-s, --secretKey <token> AWS secret key
-b, --bucket <string>, AWS S3 Bucket
-f, --file <path>, Path to configuration file
ACCESSKEY=123xyz099 SECRETKEY=098abc211 BUCKET=chart-repo helm-chart-publisher
docker run -e ACCESSKEY=123xyz099 -e SECRETKEY=098abc211 -e BUCKET=chart-repo xogroup/helm-chart-s3-publisher
helm-chart-publisher -a 123xyz099 -s 098abc211 -b chart-repo
docker run xogroup/helm-chart-s3-publisher -a 123xyz099 -s 098abc211 -b chart-repo
curl -i -X POST -F chart=@/home/bob/prometheus-0.1.0.tgz http://localhost:8080/chart
Will result in your S3 bucket having these new files
prometheus-0.1.0.tgz
index.yaml
curl -i -X POST -F subRepo=qa -F chart=@/home/bob/prometheus-0.1.0.tgz http://localhost:8080/chart
Will result in your S3 bucket having these new files
/qa/prometheus-0.1.0.tgz
/qa/index.yaml
Let's say your S3 bucket containing the chart packages had its manifest delete. And your S3 bucket is in the following state.
/qa/prometheus-0.1.0.tgz
/qa/prometheus-0.2.0.tgz
Hitting the rebuild endpoint will fix that.
curl -X POST -F subRepo=qa http://localhost:8080/index/rebuild
Will result with a new index.yaml
in the qa
prefix portion of the bucket.
/qa/index.yaml
/qa/prometheus-0.1.0.tgz
/qa/prometheus-0.2.0.tgz