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

adds a script to create rule templates with CRD based naming #193

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

yunus
Copy link
Member

@yunus yunus commented Oct 25, 2019

Since it is cumbersome to deal with CRD, metadata naming and creating all the rego, template and sample files, I have created a script that creates

  • rego file
  • template file
  • sample file
  • rego test file
  • fixtures
    by using Jinja2.

The templates are filled with vm-external-ip example. When you run make create_new_rule it asks for resource, feature, version and human readable name.

@yunus
Copy link
Member Author

yunus commented Dec 3, 2019

Hey there, Is there anyone taking this? Any feedback?

Copy link
Contributor

@morgante morgante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay.

One suggestion: instead of building and maintaining a custom script for generating these, could we simply leverage cookiecutter?

@yunus
Copy link
Member Author

yunus commented Dec 6, 2019

I will check it, looks like a better alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants