~/talk

Unit Testing Your Kubernetes Configurations Using Open Policy Agent

Talkat KubeCon + CloudNativeCon Europe 2019 · on Tuesday, 2019-05-21· at 11:55· Hall 8.0 B3· [kubernetes]
slides:none on file

Unit tests run Open Policy Agent policies against rendered Kubernetes manifests and other structured outputs, catching issues before cluster deploy. The workflow uses regol (uploader spelling) policies and OPA’s test harness, a local CLI called contest to check manifests from kubectl/Helm/Kustomize/Pulumi or Terraform (terraform show → JSON), and gates as deny or warn. Examples include denying containers without runAsNonRoot and requiring specific labels; bundles publish policies to OCI registries via bundle bar for reuse.

AI-written summary · about

  1. 0:00Introduction to the talk
  2. 2:05What is Open Policy Agent
  3. 4:25Shifting left with testing
  4. 7:35Introduction to Conftest
  5. 13:31Working with the Rego language
  6. 17:06Sharing policies and bundles
  7. 22:46Testing infrastructure configurations
  8. 26:08Terraform and beyond
  9. 32:01Conclusion and future outlook
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.