This repository was archived by the owner on Mar 26, 2026. It is now read-only.
Description Problem
Generating ConfigMaps and Secrets with structured content requires building files as @concat strings with manually escaped quotes and \n:
stringData :
config.yaml :
" @concat " :
- " server_name: \" "
- " $.Source.spec.name"
- " \"\n "
- " database:\n "
- " host: \" "
- " $.Source.spec.dbHost"
- " \"\n "
This is error-prone, unreadable, and unmaintainable. Any operator managing applications needs config generation, and @concat doesn't scale for it.
Proposal
@toJson and @toYaml operators that serialize a structured object (with embedded expressions) to a string:
stringData :
config.yaml :
" @toYaml " :
server_name : " $.Source.spec.name"
database :
host : " $.Source.spec.dbHost"
port : " $.Source.spec.dbPort"
Recursively evaluate expressions, then serialize
Nested operators (@concat, @cond, @definedOr) work inside
Output is a string for ConfigMap/Secret values
Reactions are currently unavailable
Problem
Generating ConfigMaps and Secrets with structured content requires building files as
@concatstrings with manually escaped quotes and\n:This is error-prone, unreadable, and unmaintainable. Any operator managing applications needs config generation, and
@concatdoesn't scale for it.Proposal
@toJsonand@toYamloperators that serialize a structured object (with embedded expressions) to a string:@concat,@cond,@definedOr) work inside