gatekeeper icon indicating copy to clipboard operation
gatekeeper copied to clipboard

Refactor `gator test`'s pkg/ files into their own sub-package

Open julianKatz opened this issue 2 years ago • 3 comments

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 most test specific functionality.
  • [ ] Update cmd/gator/test to use the new package
  • [ ] Move the ToTemplate function (or something like it) into a shared util.go at pkg/gator
  • [ ] Update pkg/gator/validate to use that new package

julianKatz avatar Dec 29 '21 00:12 julianKatz

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.

stale[bot] avatar Aug 01 '22 18:08 stale[bot]

Still a good idea

julianKatz avatar Aug 02 '22 00:08 julianKatz

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.

stale[bot] avatar Oct 01 '22 22:10 stale[bot]

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.

davis-haba avatar Dec 14 '22 19:12 davis-haba