gatekeeper icon indicating copy to clipboard operation
gatekeeper copied to clipboard

[gator verify] support specifying "oldObject" in test cases

Open frankh opened this issue 1 year ago • 2 comments

Describe the solution you'd like You should be able to specify oldObject in test cases, exactly like you specify object

I have some policies that have violations depending on changes from the oldObject and these are untestable in gator

Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]

Environment:

  • Gatekeeper version: 3.9.0
  • Kubernetes version: (use kubectl version): 1.22.5

frankh avatar Aug 05 '22 13:08 frankh

This would be fixed by #1819, though we should make it easy to specify/reuse object oldObject across test cases if we can.

maxsmythe avatar Aug 05 '22 23:08 maxsmythe

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 05 '22 01:10 stale[bot]