fix: support source field in Constraints#2552
Merged
davis-haba merged 13 commits intoMar 22, 2023
Merged
Conversation
Signed-off-by: davis-haba <davishaba@google.com>
Signed-off-by: davis-haba <davishaba@google.com>
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #2552 +/- ##
==========================================
- Coverage 53.46% 53.11% -0.35%
==========================================
Files 120 120
Lines 10634 10560 -74
==========================================
- Hits 5685 5609 -76
- Misses 4512 4515 +3
+ Partials 437 436 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 5 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
Signed-off-by: davis-haba <davishaba@google.com>
Signed-off-by: davis-haba <davishaba@google.com>
Signed-off-by: davis-haba <davishaba@google.com>
acpana
reviewed
Feb 1, 2023
davis-haba
commented
Feb 2, 2023
maxsmythe
requested changes
Feb 3, 2023
Contributor
|
Overall approach LGTM, though I think we can make the bash file much simpler (IMO that file should be nearly trivial) |
Signed-off-by: davis-haba <davishaba@google.com>
maxsmythe
reviewed
Feb 15, 2023
Contributor
maxsmythe
left a comment
There was a problem hiding this comment.
Couple of comments, but definitely on-track.
Contributor
Signed-off-by: davis-haba <davishaba@google.com>
Signed-off-by: davis-haba <davishaba@google.com> exclude matchcrd_constant.go from linter Signed-off-by: davis-haba <davishaba@google.com>
79f224f to
daaa257
Compare
ritazh
reviewed
Mar 14, 2023
Contributor
|
@davis-haba good to merge? |
davis-haba
added a commit
to davis-haba/gatekeeper
that referenced
this pull request
Mar 31, 2023
Signed-off-by: davis-haba <davishaba@google.com> Co-authored-by: Rita Zhang <rita.z.zhang@gmail.com>
salaxander
pushed a commit
to salaxander/gatekeeper
that referenced
this pull request
Apr 5, 2023
Signed-off-by: davis-haba <davishaba@google.com> Co-authored-by: Rita Zhang <rita.z.zhang@gmail.com> Signed-off-by: Xander Grzywinski <xandergr@microsoft.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
This fixes an issue where the
match.sourcefield was not recognized in Constraints. It also adds code to auto generate theJSONSchemaPropsfor theMatchtype, to prevent this manner of error in the future.An e2e test for the source field on Constraints is added.
Which issue(s) this PR fixes (optional, using
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when the PR gets merged):Fixes #2485