API Evolution With CRDs: Best Practices For Authoring & Fuzz Testing APIs
Talkat KubeCon + CloudNativeCon North America 2022 · on Wednesday, 2022-10-26· at 11:00· Portside Ballroom (Room 260)·
summary
Recommend authoring OpenAPI v1 schemas for full server-side validation and defaulting, use Kubebuilder/controller-runtime for types, and avoid long-lived conversion webhooks (cert-manager migrated off one after seven releases). Add schema fuzz testing and roundtrip conversion tests to catch pruning and subtle data loss, run API-focused integration tests with envtest/amp test to exercise real API server behavior, and experiment with CEL for declarative validation and conversion to remove webhook operational risk.
AI-written summary · about
chapters (6)
- 0:00Start
- 3:10Writing a great schema
- 9:15Versioning & conversion
- 15:09Validating & mutating
- 20:10Testing methodology
- 28:06Closing thoughts
related talks
26mTips and tricks for writing API Tests
45mFuzz Testing Web APIs: Overview of Existing Tools
43mImprove your API and OpenAPI
23mSolving Challenges in API Testing to Achieve More Agile Development
24mEffective API schemas testing
01h 39mTutorial: Mastering Multi-version CRDs: From YAML to a Serious Development Project
44mAPI Testing following the Test Pyramid
19mFunctional Testing of GraphQL APIs: Simple Checks That Catch Real Bugs
