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

Handle nunjucks syntax for template files #54

Open
sblausten opened this issue Feb 3, 2023 · 1 comment
Open

Handle nunjucks syntax for template files #54

sblausten opened this issue Feb 3, 2023 · 1 comment

Comments

@sblausten
Copy link
Contributor

Describe Request:

Running this against the cli generated example template that contains a contents folder with templated catalog-info file where the name parameter uses nunjucks to dynamically create the name, fails as the validator expects a string matching a limited regex for the name parameter.

Examples:

Adding https://github.com/backstage/software-templates/tree/main/scaffolder-templates/pull-request fails validation due to:

Error: "metadata.name" is not valid; expected a string that is sequences of [a-zA-Z0-9] separated by any of [-_.], at most 63 characters in total but found "${{ values.name | dump }}". To learn more about catalog file format, visit: https://github.com/backstage/backstage/blob/master/docs/architecture-decisions/adr002-default-catalog-file-format.md

Supporting Documentation Links:

@roadie-bot
Copy link

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

2 participants