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

refactor: remove easyjson #36

Merged
merged 7 commits into from
Aug 1, 2023

Conversation

fabriziosestito
Copy link
Contributor

@fabriziosestito fabriziosestito commented Aug 1, 2023

Description

Removes the easyjson dependency by bumping policy-sdk to the latest version.
Also, bumps reusable-test-policy-go action to the latest version.

Test

Existing tests should pass.

Additional Information

The refactor was very similar to: kubewarden/safe-labels-policy#34
I had to introduce the exact same newtype approach used in safe-label-policy by wrapping the regexp in a struct to simplify marshaling and unmarshaling operations.
I realized the code can be simplified, so I will backport the modifications to safe-labels-policyas well.

validate_test.go Outdated Show resolved Hide resolved
Copy link
Member

@viccuad viccuad left a comment

Choose a reason for hiding this comment

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

LGTM, besides the commented test. From my side feel free to merge once that is solved.

@jvanz jvanz merged commit dcf21ae into kubewarden:main Aug 1, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants