mirror of
https://github.com/helm/chart-testing.git
synced 2026-02-05 09:45:14 +01:00
Re-write it in Go (#35)
* Re-write it in Go
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Fix loading config from home dir
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Print config
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Remove git gc test code
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Remove year in copyright header
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Add alias for lint-and-install
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Fix examples
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Remove OWNERS file
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Add docs generation
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Update CircleCI
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Update readme
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Document building and releasing
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Remove Makefile
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Hide doc-gen command
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Add support for Helm extra args
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Update tool dependencies
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Update Goreleaser
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Upgrade pip
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Update Gopkg.lock
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Add log messages
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Fix CircleCI env var for tag
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Add Docker login
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Readme update for MacOS (#1)
* Add build.sh mac prerequisites, and README markdown linting fixes
Signed-off-by: Scott Rigby <scott@r6by.com>
* Update README.md
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Update Gopkg.lock
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Update config search locations
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Add config files to distro
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Add debug flag
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Add note on config files for linting
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Fix link
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Revert "Update Gopkg.lock"
This reverts commit fcbfbdc9db.
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Fix link
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
* Fix readme
Signed-off-by: Reinhard Nägele <unguiculus@gmail.com>
This commit is contained in:
committed by
Scott Rigby
parent
8e23ec2d74
commit
f632cd5081
28
doc/ct.md
Normal file
28
doc/ct.md
Normal file
@@ -0,0 +1,28 @@
|
||||
## ct
|
||||
|
||||
The Helm chart testing tool
|
||||
|
||||
### Synopsis
|
||||
|
||||
Lint and test
|
||||
|
||||
* changed charts
|
||||
* specific charts
|
||||
* all charts
|
||||
|
||||
in given chart directories.
|
||||
|
||||
### Options
|
||||
|
||||
```
|
||||
-h, --help help for ct
|
||||
```
|
||||
|
||||
### SEE ALSO
|
||||
|
||||
* [ct install](ct_install.md) - Install and test a chart
|
||||
* [ct lint](ct_lint.md) - Lint and validate a chart
|
||||
* [ct lint-and-install](ct_lint-and-install.md) - Lint, install, and test a chart
|
||||
* [ct version](ct_version.md) - Print version information
|
||||
|
||||
###### Auto generated by spf13/cobra on 6-Nov-2018
|
||||
56
doc/ct_install.md
Normal file
56
doc/ct_install.md
Normal file
@@ -0,0 +1,56 @@
|
||||
## ct install
|
||||
|
||||
Install and test a chart
|
||||
|
||||
### Synopsis
|
||||
|
||||
Run 'helm install' and ' helm test' on
|
||||
|
||||
* changed charts (default)
|
||||
* specific charts (--charts)
|
||||
* all charts (--all)
|
||||
|
||||
in given chart directories.
|
||||
|
||||
Charts may have multiple custom values files matching the glob pattern
|
||||
'*-values.yaml' in a directory named 'ci' in the root of the chart's
|
||||
directory. The chart is installed and tested for each of these files.
|
||||
If no custom values file is present, the chart is installed and
|
||||
tested with defaults.
|
||||
|
||||
```
|
||||
ct install [flags]
|
||||
```
|
||||
|
||||
### Options
|
||||
|
||||
```
|
||||
--all Process all charts except those explicitly excluded.
|
||||
Disables changed charts detection and version increment checking
|
||||
--build-id string An optional, arbitrary identifier that is added to the name of the namespace a
|
||||
chart is installed into. In a CI environment, this could be the build number or
|
||||
the ID of a pull request. If not specified, the name of the chart is used
|
||||
--chart-dirs strings Directories containing Helm charts. May be specified multiple times
|
||||
or separate values with commas (default [charts])
|
||||
--chart-repos strings Additional chart repos to add so dependencies can be resolved. May be
|
||||
specified multiple times or separate values with commas
|
||||
--charts strings Specific charts to test. Disables changed charts detection and
|
||||
version increment checking. May be specified multiple times
|
||||
or separate values with commas
|
||||
--config string Config file
|
||||
--debug Print CLI calls of external tools to stdout (Note: depending on helm-extra-args
|
||||
passed, this may reveal sensitive data)
|
||||
--excluded-charts strings Charts that should be skipped. May be specified multiple times
|
||||
or separate values with commas
|
||||
--helm-extra-args string Additional arguments for Helm. Must be passed as a single quoted string
|
||||
(e. g. "--timeout 500 --tiller-namespace tiller"
|
||||
-h, --help help for install
|
||||
--remote string The name of the Git remote used to identify changed charts (default "origin")
|
||||
--target-branch string The name of the target branch used to identify changed charts (default "master")
|
||||
```
|
||||
|
||||
### SEE ALSO
|
||||
|
||||
* [ct](ct.md) - The Helm chart testing tool
|
||||
|
||||
###### Auto generated by spf13/cobra on 6-Nov-2018
|
||||
53
doc/ct_lint-and-install.md
Normal file
53
doc/ct_lint-and-install.md
Normal file
@@ -0,0 +1,53 @@
|
||||
## ct lint-and-install
|
||||
|
||||
Lint, install, and test a chart
|
||||
|
||||
### Synopsis
|
||||
|
||||
Combines 'lint' and 'install' commands.
|
||||
|
||||
```
|
||||
ct lint-and-install [flags]
|
||||
```
|
||||
|
||||
### Options
|
||||
|
||||
```
|
||||
--all Process all charts except those explicitly excluded.
|
||||
Disables changed charts detection and version increment checking
|
||||
--build-id string An optional, arbitrary identifier that is added to the name of the namespace a
|
||||
chart is installed into. In a CI environment, this could be the build number or
|
||||
the ID of a pull request. If not specified, the name of the chart is used
|
||||
--chart-dirs strings Directories containing Helm charts. May be specified multiple times
|
||||
or separate values with commas (default [charts])
|
||||
--chart-repos strings Additional chart repos to add so dependencies can be resolved. May be
|
||||
specified multiple times or separate values with commas
|
||||
--chart-yaml-schema string The schema for chart.yml validation. If not specified, 'chart_schema.yaml'
|
||||
is searched in the current directory, '$HOME/.ct', and '/etc/ct', in
|
||||
that order.
|
||||
--charts strings Specific charts to test. Disables changed charts detection and
|
||||
version increment checking. May be specified multiple times
|
||||
or separate values with commas
|
||||
--check-version-increment Activates a check for chart version increments (default: true) (default true)
|
||||
--config string Config file
|
||||
--debug Print CLI calls of external tools to stdout (Note: depending on helm-extra-args
|
||||
passed, this may reveal sensitive data)
|
||||
--excluded-charts strings Charts that should be skipped. May be specified multiple times
|
||||
or separate values with commas
|
||||
--helm-extra-args string Additional arguments for Helm. Must be passed as a single quoted string
|
||||
(e. g. "--timeout 500 --tiller-namespace tiller"
|
||||
-h, --help help for lint-and-install
|
||||
--lint-conf string The config file for YAML linting. If not specified, 'lintconf.yaml'
|
||||
is searched in the current directory, '$HOME/.ct', and '/etc/ct', in
|
||||
that order
|
||||
--remote string The name of the Git remote used to identify changed charts (default "origin")
|
||||
--target-branch string The name of the target branch used to identify changed charts (default "master")
|
||||
--validate-maintainers Enabled validation of maintainer account names in chart.yml (default: true).
|
||||
Works for GitHub, GitLab, and Bitbucket (default true)
|
||||
```
|
||||
|
||||
### SEE ALSO
|
||||
|
||||
* [ct](ct.md) - The Helm chart testing tool
|
||||
|
||||
###### Auto generated by spf13/cobra on 6-Nov-2018
|
||||
61
doc/ct_lint.md
Normal file
61
doc/ct_lint.md
Normal file
@@ -0,0 +1,61 @@
|
||||
## ct lint
|
||||
|
||||
Lint and validate a chart
|
||||
|
||||
### Synopsis
|
||||
|
||||
Run 'helm lint', version checking, YAML schema validation
|
||||
on 'Chart.yaml', YAML linting on 'Chart.yaml' and 'values.yaml',
|
||||
and maintainer validation on
|
||||
|
||||
* changed charts (default)
|
||||
* specific charts (--charts)
|
||||
* all charts (--all)
|
||||
|
||||
in given chart directories.
|
||||
|
||||
Charts may have multiple custom values files matching the glob pattern
|
||||
'*-values.yaml' in a directory named 'ci' in the root of the chart's
|
||||
directory. The chart is linted for each of these files. If no custom
|
||||
values file is present, the chart is linted with defaults.
|
||||
|
||||
```
|
||||
ct lint [flags]
|
||||
```
|
||||
|
||||
### Options
|
||||
|
||||
```
|
||||
--all Process all charts except those explicitly excluded.
|
||||
Disables changed charts detection and version increment checking
|
||||
--chart-dirs strings Directories containing Helm charts. May be specified multiple times
|
||||
or separate values with commas (default [charts])
|
||||
--chart-repos strings Additional chart repos to add so dependencies can be resolved. May be
|
||||
specified multiple times or separate values with commas
|
||||
--chart-yaml-schema string The schema for chart.yml validation. If not specified, 'chart_schema.yaml'
|
||||
is searched in the current directory, '$HOME/.ct', and '/etc/ct', in
|
||||
that order.
|
||||
--charts strings Specific charts to test. Disables changed charts detection and
|
||||
version increment checking. May be specified multiple times
|
||||
or separate values with commas
|
||||
--check-version-increment Activates a check for chart version increments (default: true) (default true)
|
||||
--config string Config file
|
||||
--debug Print CLI calls of external tools to stdout (Note: depending on helm-extra-args
|
||||
passed, this may reveal sensitive data)
|
||||
--excluded-charts strings Charts that should be skipped. May be specified multiple times
|
||||
or separate values with commas
|
||||
-h, --help help for lint
|
||||
--lint-conf string The config file for YAML linting. If not specified, 'lintconf.yaml'
|
||||
is searched in the current directory, '$HOME/.ct', and '/etc/ct', in
|
||||
that order
|
||||
--remote string The name of the Git remote used to identify changed charts (default "origin")
|
||||
--target-branch string The name of the target branch used to identify changed charts (default "master")
|
||||
--validate-maintainers Enabled validation of maintainer account names in chart.yml (default: true).
|
||||
Works for GitHub, GitLab, and Bitbucket (default true)
|
||||
```
|
||||
|
||||
### SEE ALSO
|
||||
|
||||
* [ct](ct.md) - The Helm chart testing tool
|
||||
|
||||
###### Auto generated by spf13/cobra on 6-Nov-2018
|
||||
23
doc/ct_version.md
Normal file
23
doc/ct_version.md
Normal file
@@ -0,0 +1,23 @@
|
||||
## ct version
|
||||
|
||||
Print version information
|
||||
|
||||
### Synopsis
|
||||
|
||||
Print version information
|
||||
|
||||
```
|
||||
ct version [flags]
|
||||
```
|
||||
|
||||
### Options
|
||||
|
||||
```
|
||||
-h, --help help for version
|
||||
```
|
||||
|
||||
### SEE ALSO
|
||||
|
||||
* [ct](ct.md) - The Helm chart testing tool
|
||||
|
||||
###### Auto generated by spf13/cobra on 6-Nov-2018
|
||||
Reference in New Issue
Block a user