Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kustomize is messing up special characters in YAML #253

Open
ExtremeSwat opened this issue Aug 21, 2024 · 0 comments
Open

Kustomize is messing up special characters in YAML #253

ExtremeSwat opened this issue Aug 21, 2024 · 0 comments

Comments

@ExtremeSwat
Copy link

🔥 Bug Description

The final config map (in the kustomize file that gets generated in the end) has issues, for example, I'm referencing a property called TenantData which contains various passwords and stuff per tenant

- TenantData={"19d74b3c-2955-4667-9bc5-15d67212469e":{&quot
I have attempted tackling this issue multiple ways, but none work....

I have tried with this:
project.WithEnvironment("TenantData", tenantDataEnv);

By directly attaching the serialized dictionary, or individually per tenant
project.WithEnvironment($"TenantData__{key}__Sql__ConnectionString", tenantDictionary[key].Sql.ConnectionString);

No matter what I do, it will always escape special characters like >, <, &, ", etc

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

No branches or pull requests

1 participant