Skip to content

Feat: Replace $kusion_path as part of a resource attribute #1340

@ffforest

Description

@ffforest

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new featurepriority/important-longtermP2, may not be staffed and/or may need multiple releases to complete

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions