Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paulczar/conftest-helm-example
example testing helm chart best practices with conftest
https://github.com/paulczar/conftest-helm-example
Last synced: 4 days ago
JSON representation
example testing helm chart best practices with conftest
- Host: GitHub
- URL: https://github.com/paulczar/conftest-helm-example
- Owner: paulczar
- Created: 2019-07-09T16:27:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-09T16:31:46.000Z (over 5 years ago)
- Last Synced: 2024-08-02T13:30:06.161Z (3 months ago)
- Language: Smarty
- Size: 4.88 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# conftest for helm charts
A quick demo showing how you can apply helm chart best practices into tests that can be
run by conftest.conftest [here](https://github.com/instrumenta/conftest)
```bash
$ helm template . | conftest test -
Pod/release-name-test-test-connection must specify a container image tag (busybox)
Service/release-name-test should contain label app.kubernetes.io/component
Service/release-name-test should contain label app.kubernetes.io/part-of
Pod/release-name-test-test-connection should contain label app.kubernetes.io/component
Pod/release-name-test-test-connection should contain label app.kubernetes.io/part-of
Deployment/release-name-test shouldn't use latest image tag (nginx:latest)
Deployment/release-name-test should contain label app.kubernetes.io/component
Deployment/release-name-test should contain label app.kubernetes.io/part-of```