-
Notifications
You must be signed in to change notification settings - Fork 777
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: check for CT generateVap intent before generating vapbinding #3479
Merged
sozercan
merged 15 commits into
open-policy-agent:master
from
JaydipGabani:generatevap-check
Aug 9, 2024
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
adef05d
checking for possibility of VAP existing in cluster before generating…
JaydipGabani 62ac785
fixing unit tests
JaydipGabani d4148f5
fixing tests
JaydipGabani 6868702
adding rego in test
JaydipGabani b0f26cb
adding rego engine in tests
JaydipGabani 70478ee
adding test for rego only engine
JaydipGabani af0988f
updating warning when template will not generate VAP
JaydipGabani 34eb883
updating logs and test names
JaydipGabani ebb02b5
updating logs and test names
JaydipGabani 2327de8
fixing test name
JaydipGabani 589312a
fixing test name
JaydipGabani 59cebbf
adding warning in CT when VAP API is not available
JaydipGabani a1ab00b
adding warning for CT when VAP API is not enabled and generation is on
JaydipGabani 24dd83d
logging errors and reporting the same on CT and C, when generation in…
JaydipGabani d064c85
Merge branch 'master' into generatevap-check
sozercan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should be consistent everywhere in terms of logs and status reporting for these. if api is not enabled and other conditions for generateVap are not met, should they be considered errors or warnings? constraint and CT status reporting currently only has errors. @maxsmythe @sozercan thoughts? depending on this decision, please make all logs and status reporting consistent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's an error -- the user has signaled intent to trigger the generation pipeline but the pipeline is not generating.
If users don't care about the generation pipeline, they can interpret the severity of the error however they'd like.
If users would like to remove the error, they can change the expressed intent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sgtm. then lets log error and report error as part of CT and Constraint status.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sgtm, I am updating the PR.