@@ -39,7 +39,12 @@ Usage: chart_test.sh <options>
39
39
--verbose Display verbose output
40
40
--no-lint Skip chart linting
41
41
--no-install Skip chart installation
42
+ --all Lint/install all charts
43
+ --charts Lint/install:
44
+ a standalone chart (e. g. stable/nginx)
45
+ a list of charts (e. g. stable/nginx,stable/cert-manager)
42
46
--config Path to the config file (optional)
47
+ -- End of all options
43
48
```
44
49
45
50
## Configuration
@@ -58,8 +63,8 @@ Note that this must be done before the script is sourced.
58
63
| ` LINT_CONF ` | Config file for YAML linter | ` /testing/etc/lintconf.yaml ` (path of default config file in Docker image) |
59
64
| ` CHART_YAML_SCHEMA ` | YAML schema for ` Chart.yaml ` | ` /testing/etc/chart_schema.yaml ` (path of default schema file in Docker image) |
60
65
| ` VALIDATE_MAINTAINERS ` | If ` true ` , maintainer names in ` Chart.yaml ` are validated to be existing Github accounts | ` true ` |
61
- | ` CHECK_VERSION_INCREMENT ` | If ` true ` , the chart version is checked to be incremented from the version on the remote target branch | ` true ` |
62
66
| ` GITHUB_INSTANCE ` | Url of Github instance for maintainer validation | ` https://github.com ` |
67
+ | ` CHECK_VERSION_INCREMENT ` | If ` true ` , the chart version is checked to be incremented from the version on the remote target branch | ` true ` |
63
68
64
69
Note that ` CHART_DIRS ` , ` EXCLUDED_CHARTS ` , and ` CHART_REPOS ` must be configured as Bash arrays.
65
70
@@ -141,6 +146,26 @@ Linting chart 'stable/dummy'...
141
146
Done.
142
147
```
143
148
149
+ #### Linting Unchanged Charts
150
+
151
+ You can lint all charts with ` --all ` flag (chart version bump check will be ignored):
152
+
153
+ ``` shell
154
+ docker run --rm -v " $( pwd) :/workdir" --workdir /workdir quay.io/helmpack/chart-testing:v1.0.5 chart_test.sh --no-install --config .mytestenv --all
155
+ ```
156
+
157
+ You can lint a list of charts (separated by comma) with ` --charts ` flag (chart version bump check will be ignored):
158
+
159
+ ``` shell
160
+ 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
161
+ ```
162
+
163
+ You can lint a single chart with ` --charts ` flag (chart version bump check will be ignored):
164
+
165
+ ``` shell
166
+ 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
167
+ ```
168
+
144
169
### Installing and Testing Charts
145
170
146
171
Installing a chart requires access to a Kubernetes cluster.
@@ -156,12 +181,31 @@ Make sure you set it based on the pull request number.
156
181
docker run --rm -v " $( pwd) :/workdir" --workdir /workdir quay.io/helmpack/chart-testing:v1.0.5 chart_test.sh --no-lint --config .mytestenv
157
182
```
158
183
184
+ #### Installing Unchanged Charts
185
+
186
+ You can force to install all charts with ` --all ` flag:
187
+
188
+ ``` shell
189
+ docker run --rm -v " $( pwd) :/workdir" --workdir /workdir quay.io/helmpack/chart-testing:v1.0.5 chart_test.sh --no-lint --config .mytestenv --all
190
+ ```
191
+
192
+ You can force to install a list of charts (separated by comma) with ` --charts ` flag:
193
+
194
+ ``` shell
195
+ 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
196
+ ```
197
+
198
+ You can force to install one chart with ` --charts ` flag:
199
+
200
+ ``` shell
201
+ 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
202
+ ```
203
+
159
204
#### GKE Example
160
205
161
206
An example for GKE is available in the [ examples/gke] ( examples/gke ) directory.
162
207
A custom ` Dockerfile ` additionally installs the ` google-cloud-sdk ` and a custom shell script puts everything together.
163
208
164
-
165
209
#### Docker for Mac Example
166
210
167
211
An example for Docker for Mac is available in the [ examples/docker-for-mac] ( examples/docker-for-mac ) directory.
0 commit comments