kusion icon indicating copy to clipboard operation
kusion copied to clipboard

Feat: Replace `$kusion_path` as part of a resource attribute

Open ffforest opened this issue 1 year ago • 1 comments

What would you like to be added?

$kusion_path.{resource}.{attribute} is a special grammar in kusion spec that is used to reference another resource attribute in the same spec. Currently kusion will replace attributes whose value starts with $kusion_path.{resource}.{attribute} during preview and apply. They will be replaced with the literal value from the resource attribute they reference. This issue is to track the effort to include the case where a resource attribute does not start with $kusion_path.{resource}.{attribute} grammar, but includes it as a substring.

Why is this needed?

There are cases where certain resource attributes (for example data field in a ConfigMap) will contain the $kusion_path.{resource}.{attribute} reference as a substring.

ffforest avatar Dec 10 '24 11:12 ffforest

Relevant code

ffforest avatar Dec 10 '24 11:12 ffforest