You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ konstraint create
Error: parse policies: imported library not found: data.utils.kubernetes
Usage:
konstraint create <dir> [flags]
Flags:
-h, --help help for create
Global Flags:
--ignore string A regex pattern which can be used for ignoring directories and files (default "^$")
--lib string The name of the folder where the Rego librarie(s) are (default "lib")
From the error message, it seems to be complaining about:
You'll most likely need to either change your utils folder to lib or set the --lib flag to utils.
I do have some thoughts on trying to make this flag/setting obsolete. I don't think it should be a requirement as we should be able to figure it out import folders based on import statements in the .rego
I am trying to create the constraints for:
But, hitting an issue:
From the error message, it seems to be complaining about:
which lives here:
conftest doesn't complain, so I presume its valid rego. Any idea?
The text was updated successfully, but these errors were encountered: