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

Use go:embed from go 1.16 to store OPA policies in separate files #781

Closed
denis-tingaikin opened this issue Mar 23, 2021 · 2 comments · Fixed by #1018
Closed

Use go:embed from go 1.16 to store OPA policies in separate files #781

denis-tingaikin opened this issue Mar 23, 2021 · 2 comments · Fixed by #1018
Assignees

Comments

@denis-tingaikin
Copy link
Member

Motivation

With go 1.16 we can use files from the project. Look at https://golang.org/pkg/embed/

Currently, OPA policies are storing as strings. So now we can move them into separate files to make it easy to find/edit and to reduce the complexity of the go files.

@denis-tingaikin
Copy link
Member Author

@edwarnicke Also https://golang.org/pkg/embed/ can be used for vpp configs :)

@edwarnicke
Copy link
Member

@denis-tingaikin Yes :)

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

Successfully merging a pull request may close this issue.

2 participants