Skip to content
A Helm plugin for testing Helm Charts using Open Policy Agent
Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
scripts Support passing conftest options to conftest, and other options to Helm Aug 11, 2019
.gitignore
LICENSE
README.md
plugin.yaml Bump version for new conftest release Aug 10, 2019

README.md

Conftest Helm plugin

A Helm plugin for testing Helm charts with Open Policy Agent, using conftest.

Installation

Install the plugin using the built-in plugin manager.

helm plugin install https://github.com/instrumenta/helm-conftest

Usage

Assuming you have policy defined in the policy folder, you can point the plugin at your chart.

$ helm conftest .
FAIL - release-name-mysql must include Kubernetes recommended labels: https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/#labels
Error: plugin "conftest" exited with error

Conftest has a number of flags which can alter it's behaviour, from changing the output formatting to specifying where to find the policy files. Conftest options are automatically passed to Conftest, with any other options being passed to Helm in the same way as helm template. This means you could set values before validating the chart. eg.

helm conftest charts/stable/nginx-ingress --set controller.image.tag=latest
You can’t perform that action at this time.