Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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

```