Skip to content
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

update validation logic #1417

Merged
merged 4 commits into from
Dec 24, 2020
Merged

update validation logic #1417

merged 4 commits into from
Dec 24, 2020

Conversation

JimBugwadia
Copy link
Member

Related issue

Fixes #1337

What type of PR is this?

Proposed changes

Change validation to match on both new and old resources. Refactor code.

Checklist

Further comments

Copy link
Member

@realshuting realshuting left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have questions for buildResponse, see comments.

pkg/engine/validation.go Outdated Show resolved Hide resolved
pkg/engine/validation.go Show resolved Hide resolved
@JimBugwadia JimBugwadia merged commit 58feb4f into main Dec 24, 2020
@JimBugwadia JimBugwadia deleted the 1337_match_old_resource branch December 24, 2020 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] match / exclude for mutate rules may need to be executed on request.oldObject instead of request.object
2 participants