Skip to content

feat: Promote mutation to v1#2305

Merged
maxsmythe merged 3 commits into
open-policy-agent:masterfrom
maxsmythe:mutation-v1
Sep 30, 2022
Merged

feat: Promote mutation to v1#2305
maxsmythe merged 3 commits into
open-policy-agent:masterfrom
maxsmythe:mutation-v1

Conversation

@maxsmythe
Copy link
Copy Markdown
Contributor

@maxsmythe maxsmythe commented Sep 29, 2022

Promotes mutation to v1 as part of designating it GA

Signed-off-by: Max Smythe smythe@google.com

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, using fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when the PR gets merged):
Fixes #2296

Special notes for your reviewer:

Signed-off-by: Max Smythe <smythe@google.com>
@maxsmythe maxsmythe changed the title Promote mutation to v1 feat: Promote mutation to v1 Sep 30, 2022
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Sep 30, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.44%. Comparing base (9a56db9) to head (c12f600).
Report is 804 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2305      +/-   ##
==========================================
+ Coverage   53.41%   53.44%   +0.03%     
==========================================
  Files         116      116              
  Lines       10174    10174              
==========================================
+ Hits         5434     5438       +4     
+ Misses       4320     4318       -2     
+ Partials      420      418       -2     
Flag Coverage Δ
unittests 53.44% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

return c.Watch(
&source.Kind{Type: &mutationsv1beta1.AssignMetadata{}},
handler.EnqueueRequestsFromMapFunc(util.EventPackerMapFuncHardcodeGVK(schema.GroupVersionKind{Group: v1beta1.MutationsGroup, Version: "v1beta1", Kind: "AssignMetadata"})),
&source.Kind{Type: &mutationsv1.ModifySet{}},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

Copy link
Copy Markdown
Member

@ritazh ritazh left a comment

Choose a reason for hiding this comment

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

LGTM

@sozercan
Copy link
Copy Markdown
Member

do we want to update the docs in a seperate pr?

@sozercan
Copy link
Copy Markdown
Member

image

looks like there were some v1beta1 references remaining, do we want to update these?

@maxsmythe
Copy link
Copy Markdown
Contributor Author

looks like there were some v1beta1 references remaining, do we want to update these?

There's value in not updating them: it helps ensure we haven't broken the use of v1beta1 mutators (which will likely be supported indefinitely)

@maxsmythe
Copy link
Copy Markdown
Contributor Author

do we want to update the docs in a seperate pr?

Yeah, that makes sense. Do we need to worry about timing? I'm guessing the staging workflow will sort that out?

@sozercan
Copy link
Copy Markdown
Member

re: docs, we can do it anytime

@maxsmythe maxsmythe merged commit 35b9cbd into open-policy-agent:master Sep 30, 2022
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.

Move mutation to v1

4 participants