gatekeeper
gatekeeper copied to clipboard
Refactor `gator test`'s pkg/ files into their own sub-package
Currently, the pkg/gator
package holds all the code for gator test
. With the addition of the gator test
command, this structure will no longer make sense.
As part of this issue, complete the following:
- [ ] Create a
pkg/gator/test
package that holds the mosttest
specific functionality. - [ ] Update
cmd/gator/test
to use the new package - [ ] Move the
ToTemplate
function (or something like it) into a sharedutil.go
atpkg/gator
- [ ] Update
pkg/gator/validate
to use that new package
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
Still a good idea
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
I think we can close this once https://github.com/open-policy-agent/gatekeeper/pull/2398 is merged. This PR included a big refactor of the Gator CLI to break up commands into their own subpackages.