-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix: status always success when using custom policy #5156
base: main
Are you sure you want to change the base?
fix: status always success when using custom policy #5156
Conversation
Signed-off-by: ekapratama93 <[email protected]>
d57b7ad
to
e1317da
Compare
@bakuljajan, do you think you could add a test for this? Thanks. |
Signed-off-by: bakuljajan <[email protected]>
Hi @jamengual thanks for looking into this PR, I'm unfamiliar with writing golang code, but enabling the Let me know if you need me to add more test cases. |
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.
lgtm
I think this part of the docs should be updated as well |
what
try to fix #4585. It seems the original code does not return error when the custom policy is enabled.
why
the error status was skipped causing plan/apply combined with custom policy check to always be successful.
tests
manual test only. will need guidance if additional tests are needed.
references
#4585
possibly #4861