KusionStack / KusionStack/kusion
Feat: Replace `$kusion_path` as part of a resource attribute
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 1.3k
- Forks
- 107
- Avg merge
- 11m
- Merged PRs (30d)
- 1
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how $kusion_path.{resource}.{attribute} references are handled during preview and apply, including resource attributes such as a ConfigMap's data field. Done means references embedded as substrings are replaced with the referenced literal value while preserving the surrounding attribute content.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, kubernetes
- Domain
- devops, infrastructure
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100