- Examples of Konstraint
konstraint
confest
gator
konstraint create .
konstraint docs .
conftest verify -p .
- For tracing:
conftest verify -p . --trace
- For reporting:
conftest verify -p . --report {full|notes|fails}
- For tracing:
opa test . --ignore *.yaml -v
- For coverage:
opa test . --ignore *.yaml -v --coverage
- For coverage:
gator verify path/to/suite.yaml/dir/
./scripts/test-and-run.sh
- Run tests by Conftest, OPA, and Gator
- Generate
constraint.yaml
,template.yaml
./scripts/kind-with-argocd-and-gatekeeper.sh
- Create kind cluster
- Install ArgoCD
- Install Gatekeeper
./scripts/apply-gatekeeper-constraint.sh
- Run
kubectl apply -f constraint.yaml
recursively - Run
kubectl apply -f template.yaml
recursively
- Run