Skip to content

Commit

Permalink
Prepping for v1.1.0 release (#28)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Farina <matt@mattfarina.com>
  • Loading branch information
mattfarina authored Sep 24, 2018
1 parent 48e81aa commit 75ee8d5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ chart-test.sh
### Linting Charts

```shell
docker run --rm -v "$(pwd):/workdir" --workdir /workdir quay.io/helmpack/chart-testing:v1.0.5 chart_test.sh --no-install --config .mytestenv
docker run --rm -v "$(pwd):/workdir" --workdir /workdir quay.io/helmpack/chart-testing:v1.1.0 chart_test.sh --no-install --config .mytestenv
```

*Sample Output*
Expand Down Expand Up @@ -151,25 +151,25 @@ Done.
You can lint all charts with `--all` flag (chart version bump check will be ignored):

```shell
docker run --rm -v "$(pwd):/workdir" --workdir /workdir quay.io/helmpack/chart-testing:v1.0.5 chart_test.sh --no-install --config .mytestenv --all
docker run --rm -v "$(pwd):/workdir" --workdir /workdir quay.io/helmpack/chart-testing:v1.1.0 chart_test.sh --no-install --config .mytestenv --all
```

You can lint a list of charts (separated by comma) with `--charts` flag (chart version bump check will be ignored):

```shell
docker run --rm -v "$(pwd):/workdir" --workdir /workdir quay.io/helmpack/chart-testing:v1.0.5 chart_test.sh --no-install --config .mytestenv --charts stable/nginx,stable/cert-manager
docker run --rm -v "$(pwd):/workdir" --workdir /workdir quay.io/helmpack/chart-testing:v1.1.0 chart_test.sh --no-install --config .mytestenv --charts stable/nginx,stable/cert-manager
```

You can lint a single chart with `--charts` flag (chart version bump check will be ignored):

```shell
docker run --rm -v "$(pwd):/workdir" --workdir /workdir quay.io/helmpack/chart-testing:v1.0.5 chart_test.sh --no-install --config .mytestenv --charts stable/nginx
docker run --rm -v "$(pwd):/workdir" --workdir /workdir quay.io/helmpack/chart-testing:v1.1.0 chart_test.sh --no-install --config .mytestenv --charts stable/nginx
```

### Installing and Testing Charts

Installing a chart requires access to a Kubernetes cluster.
You may have to create your own Docker image that extends from `quay.io/helmpack/chart-testing:v1.0.5` in order to install additional tools (e. g. `google-cloud-sdk` for GKE).
You may have to create your own Docker image that extends from `quay.io/helmpack/chart-testing:v1.1.0` in order to install additional tools (e. g. `google-cloud-sdk` for GKE).
A container from such an image could run steps to authenticate to a Kubernetes cluster, where it initializes the `kubectl` context, before running `chart_test.sh`.

Charts are installed into newly created namespaces that will be deleted again afterwards.
Expand All @@ -178,27 +178,27 @@ By default, they are named by the chart, which may not be a good idea, especiall
Make sure you set it based on the pull request number.

```shell
docker run --rm -v "$(pwd):/workdir" --workdir /workdir quay.io/helmpack/chart-testing:v1.0.5 chart_test.sh --no-lint --config .mytestenv
docker run --rm -v "$(pwd):/workdir" --workdir /workdir quay.io/helmpack/chart-testing:v1.1.0 chart_test.sh --no-lint --config .mytestenv
```

#### Installing Unchanged Charts

You can force to install all charts with `--all` flag:

```shell
docker run --rm -v "$(pwd):/workdir" --workdir /workdir quay.io/helmpack/chart-testing:v1.0.5 chart_test.sh --no-lint --config .mytestenv --all
docker run --rm -v "$(pwd):/workdir" --workdir /workdir quay.io/helmpack/chart-testing:v1.1.0 chart_test.sh --no-lint --config .mytestenv --all
```

You can force to install a list of charts (separated by comma) with `--charts` flag:

```shell
docker run --rm -v "$(pwd):/workdir" --workdir /workdir quay.io/helmpack/chart-testing:v1.0.5 chart_test.sh --no-lint --config .mytestenv --charts stable/nginx,stable/cert-manager
docker run --rm -v "$(pwd):/workdir" --workdir /workdir quay.io/helmpack/chart-testing:v1.1.0 chart_test.sh --no-lint --config .mytestenv --charts stable/nginx,stable/cert-manager
```

You can force to install one chart with `--charts` flag:

```shell
docker run --rm -v "$(pwd):/workdir" --workdir /workdir quay.io/helmpack/chart-testing:v1.0.5 chart_test.sh --no-lint --config .mytestenv --charts stable/nginx
docker run --rm -v "$(pwd):/workdir" --workdir /workdir quay.io/helmpack/chart-testing:v1.1.0 chart_test.sh --no-lint --config .mytestenv --charts stable/nginx
```

#### GKE Example
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set -o errexit
set -o nounset
set -o pipefail

readonly IMAGE_TAG=v1.0.5
readonly IMAGE_TAG=v1.1.0

# The image goes into two repositories. quay.io/helmpack/chart-testing is used
# for public consumption and is built by Quay via a webhook. The below image
Expand Down
2 changes: 1 addition & 1 deletion examples/docker-for-mac/my_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ set -o errexit
set -o nounset
set -o pipefail

readonly IMAGE_TAG=v1.0.5
readonly IMAGE_TAG=v1.1.0
readonly IMAGE_REPOSITORY="quay.io/helmpack/chart-testing"

main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/gke/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM quay.io/helmpack/chart-testing:v1.0.5
FROM quay.io/helmpack/chart-testing:v1.1.0

ENV PATH /google-cloud-sdk/bin:$PATH
ARG CLOUD_SDK_VERSION=200.0.0
Expand Down

0 comments on commit 75ee8d5

Please # to comment.