BCDevOps / developer-experience

This repository is used to track all work for the BCGov Platform Services Team (This includes work for: 1. Platform Experience, 2. Developer Experience 3. Platform Operations/OCP 3)
Apache License 2.0
8 stars 17 forks source link

Update Provisioner to work around project names in AlertManagerConfigs #5281

Closed IanKWatts closed 1 month ago

IanKWatts commented 1 month ago

Describe the issue Now that AlertManagerConfigs have been updated to include the project name in the email that gets sent out, a project name with quotation marks in it creates a broken template. Update the provisioner to work around this issue.

What is the Value/Impact? ArgoCD cannot sync a project set when a manifest is not parsable.

What is the plan? How will this get completed? Update the AlertManagerConfig template and rebuild the app-provisioner image. Update the Argo Workflow sensors to use the new image.

Identify any dependencies n/a

Definition of done

StevenBarre commented 1 month ago

I wonder if we can do some better escaping in the Jinja to be able to accept quotes and other problematic characters? It would be nice if the email could have the name as entered in the Registry instead of striping out chars.

But if its going to be a huge pain, I'm onboard with doing whatever is easiest.

IanKWatts commented 1 month ago

Double quotes are not a problem. For single quotes, adding a backslash does not help. Not sure what it would take, but I'm open to suggestions. Otherwise I'll go with the simple fix for now.

IanKWatts commented 1 month ago

Fixed using Steven's suggestion to move the problematic bits to a new line so that the enveloping single quotes are no longer required.