CUE Has a Free API: The Language That Validates Your YAML, JSON, and Protobuf

go dev.to

Your Kubernetes YAML has 200 lines. Line 147 has a typo. You won't find it until the deploy fails at 2 AM. CUE finds it at write time. What Is CUE? CUE is a data validation language and configuration system from the creator of Go's template package. It unifies types, values, and constraints into one concept. // Define a constraint (schema) #Deployment: { apiVersion: "apps/v1" kind: "Deployment" metadata: { name: string & =~"^[a-z][a-z0-9-]*$"

Read Full Tutorial open_in_new
arrow_back Back to Tutorials