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

Add EventPolicy to storage version migrator #8384

Merged

Conversation

pierDipi
Copy link
Member

@pierDipi pierDipi commented Dec 13, 2024

While this is not strictly needed right now, this prevents issues we could run into eventually with version migrations.

Fixes #

Proposed Changes

  • Add EventPolicy to storage version migrator

Pre-review Checklist

  • At least 80% unit test coverage
  • E2E tests for any new behavior
  • Docs PR for any user-facing impact
  • Spec PR for any new API feature
  • Conformance test for any change to the spec

Release Note


Docs

While this is not strictly needed, this prevents issues we could run
into eventually with storage version migrations.

Signed-off-by: Pierangelo Di Pilato <[email protected]>
@knative-prow knative-prow bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Dec 13, 2024
@pierDipi
Copy link
Member Author

/cc @creydr @matzew

@knative-prow knative-prow bot requested review from creydr and matzew December 13, 2024 08:00
@@ -55,6 +55,7 @@ spec:
- "subscriptions.messaging.knative.dev"
- "triggers.eventing.knative.dev"
- "jobsinks.sinks.knative.dev"
- "eventpolicies.eventing.knative.dev"
Copy link
Member

Choose a reason for hiding this comment

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

Just to be sure, as I haven't worked with the storage-verion-migrator so far: this does not fail, when we only have one version available so far?

Copy link
Member

Choose a reason for hiding this comment

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

there is a noop if no changes are. For most of the others we also only have on version, e.g. v1

Copy link
Member

Choose a reason for hiding this comment

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

This reminds me of doing the same for the IntegrationSource/sink bits 😅

Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.25%. Comparing base (f82811b) to head (e7d896b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8384   +/-   ##
=======================================
  Coverage   64.25%   64.25%           
=======================================
  Files         388      388           
  Lines       23313    23313           
=======================================
  Hits        14980    14980           
  Misses       7539     7539           
  Partials      794      794           

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

Copy link
Member

@matzew matzew left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Dec 13, 2024
Copy link

knative-prow bot commented Dec 13, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: matzew, pierDipi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@matzew
Copy link
Member

matzew commented Dec 13, 2024

/test reconciler-tests

1 similar comment
@matzew
Copy link
Member

matzew commented Dec 13, 2024

/test reconciler-tests

@matzew
Copy link
Member

matzew commented Dec 13, 2024

/retest

@knative-prow knative-prow bot merged commit 414af5c into knative:main Dec 13, 2024
31 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants