talira

An open-source constraint-based record and functional language for configuration and policy

open sourceApache-2.0free

KCL (short for Kusion Configuration Language) is a configuration and policy language, hosted by the Cloud Native Computing Foundation as a Sandbox project. It's a Python-like, constraint-based record and functional language: schemas define configuration types with attribute requirements, type checks, range constraints and rules, config blocks merge automatically with several strategies, and values stay immutable. It aims at cloud-native configuration, cutting the per-environment sprawl of Kubernetes YAML with abstractions, and can mutate and validate existing manifests (kcl vet checks Terraform plan files, among others). It supports OpenAPI, Kubernetes CRDs and KRM, has SDKs for Rust, Go, Python, Java and Node.js, IDE extensions, and a package manager whose modules are published to OCI registries and listed on Artifact Hub. Originally developed for the Kusion platform. Apache-2.0 licensed.

Libraries for KCL

Talira doesn't list any yet.

Problems it solves

  • stop maintaining separate Kubernetes YAML files for every environment
  • validate Kubernetes manifests or Terraform plans against policy rules
  • a typed configuration language for cloud-native config
  • which config language should we use for our platform's application config
  • give developers simple abstractions over Kubernetes configuration

Features

  • schemas with type checks, attribute requirements and range constraints
  • automatic merging of isolated config blocks with several strategies
  • immutable values
  • mutation and validation of existing manifests (kcl vet)
  • OpenAPI, Kubernetes CRD and KRM support
  • SDKs for Rust, Go, Python, Java and Node.js
  • package manager with modules in OCI registries

Capabilities

Has a command line toolplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what KCL does.

  1. Pkl A configuration-as-code language with rich validation and tooling
  2. Jsonnet A configuration language for app and tool developers
  3. HCL The HashiCorp configuration language
  4. Nickel Better configuration for less
  5. CUE Validate, define, and use dynamic and text-based data
  6. Starlark A Python dialect designed as a configuration language, made for Bazel

Compare KCL with the top 3