Skip to content

Conversation

gianlucam76
Copy link
Member

When instantiating referenced resource, Sveltos fecthes the content of referenced ConfigMap/Secret instances. The result is a map[string]string

The only section that is a template, is the value (keys can be assumed to be constant). This PR replaces the json.Marshal of the string with code that walks of keys in the map, and instantiated the values.

Fixes #349

When instantiating referenced resource, Sveltos fecthes the content
of referenced ConfigMap/Secret instances. The result is a map[string]string

The only section that is a template, is the value (keys can be assumed to
be constant). This PR replaces the json.Marshal of the string with code
that walks of keys in the map, and instantiated the values.
@gianlucam76 gianlucam76 merged commit 425b2ca into projectsveltos:main Aug 11, 2025
6 checks passed
@gianlucam76 gianlucam76 deleted the template branch August 11, 2025 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: EventTrigger fails template instantiation with unexpected \"\\\\\" in operand
1 participant