-
Notifications
You must be signed in to change notification settings - Fork 18
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!: renames "url" field into "module". #1016
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1016 +/- ##
=======================================
Coverage 63.58% 63.58%
=======================================
Files 17 17
Lines 1071 1071
=======================================
Hits 681 681
Misses 390 390
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
cfe621d
to
05b1cb0
Compare
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.
Looks good! Yet we should change also policies.yml.example
.
Renames the "url" field into "module". This makes the field name the same of the name used in the CRDs. Signed-off-by: José Guilherme Vanz <jguilhermevanz@suse.com>
05b1cb0
to
6847459
Compare
@@ -341,7 +341,7 @@ pub enum PolicyOrPolicyGroup { | |||
#[serde(rename_all = "camelCase")] | |||
Policy { | |||
/// The URL where the policy is located | |||
url: String, | |||
module: String, |
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.
what about using #[serde(alias = "url")]
so we do not break the current behavior?
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.
Thinking it over, this only affects raw policy users, so I'm fine with the breaking changes.
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.
Opened kubewarden/docs#484 for updating the user-facing docs.
Description
Renames the "url" field into "module". This makes the field name the same of the name used in the CRDs.
Fix #906