Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 907 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 907 Bytes

KRM KCL Examples

Go Report Card GoDoc License

The KCL programming language can be used to:

  • Add labels or annotations based on a condition.
  • Inject a sidecar container in all KRM resources that contain a PodTemplate.
  • Validate all KRM resources using KCL schema.
  • Use an abstract model to generate KRM resources.

The examples are divided into three categories:

  • Abstraction: Input KCL params and output KRM list.
  • Mutation: Input KCL params and KRM list and output KRM list.
  • Validation: Input KCL params and KRM list and output KRM list and the validation result.