Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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.