Skip to content
This repository was archived by the owner on Aug 20, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants