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

Provision contract fields for authorization #4064

Conversation

creydr
Copy link
Contributor

@creydr creydr commented Aug 16, 2024

Fixes #4041

Proposed Changes

  • provision applying EventPolicies from Broker, KafkaChannel and KafkaSink in their contracts

Hint: currently only the Broker exposes the applying policies in its status. KafkaChannel and KafkaSink are open/WIP #4038 and #4039)

@knative-prow knative-prow bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. area/control-plane labels Aug 16, 2024
@knative-prow knative-prow bot requested a review from aliok August 16, 2024 08:23
@knative-prow knative-prow bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 16, 2024
@knative-prow knative-prow bot requested a review from matzew August 16, 2024 08:23
@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 16, 2024
@creydr creydr changed the title [WIP] Provision contract fields for authz simple [WIP] Provision contract fields for authz Aug 16, 2024
Copy link

codecov bot commented Aug 16, 2024

Codecov Report

Attention: Patch coverage is 93.50649% with 10 lines in your changes missing coverage. Please review.

Project coverage is 48.48%. Comparing base (fb652e8) to head (51759b5).
Report is 1 commits behind head on main.

Files Patch % Lines
control-plane/pkg/reconciler/broker/broker.go 85.18% 2 Missing and 2 partials ⚠️
control-plane/pkg/reconciler/sink/kafka_sink.go 91.66% 2 Missing and 2 partials ⚠️
control-plane/pkg/reconciler/channel/channel.go 88.88% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4064      +/-   ##
==========================================
+ Coverage   48.23%   48.48%   +0.24%     
==========================================
  Files         244      244              
  Lines       14641    14712      +71     
==========================================
+ Hits         7062     7133      +71     
+ Misses       6868     6867       -1     
- Partials      711      712       +1     

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

@creydr creydr force-pushed the provision-contract-fields-for-authz-simple branch 2 times, most recently from 16412ea to 7fdc00c Compare August 20, 2024 10:48
@creydr creydr force-pushed the provision-contract-fields-for-authz-simple branch from 7fdc00c to bcb5ead Compare August 20, 2024 11:51
@knative-prow knative-prow bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 20, 2024
@creydr creydr force-pushed the provision-contract-fields-for-authz-simple branch from bcb5ead to c7c740a Compare August 20, 2024 12:07
@creydr creydr changed the title [WIP] Provision contract fields for authz Provision contract fields for authz Aug 20, 2024
@knative-prow knative-prow bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 20, 2024
@creydr creydr changed the title Provision contract fields for authz Provision contract fields for authorization Aug 20, 2024
@creydr creydr force-pushed the provision-contract-fields-for-authz-simple branch from d05188d to 51759b5 Compare August 20, 2024 14:39
@creydr
Copy link
Contributor Author

creydr commented Aug 20, 2024

/retest

@creydr creydr requested a review from pierDipi August 20, 2024 15:53
Copy link
Member

@pierDipi pierDipi 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 Aug 20, 2024
Copy link

knative-prow bot commented Aug 20, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: creydr, 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

@knative-prow knative-prow bot merged commit ba49d0f into knative-extensions:main Aug 20, 2024
37 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. area/control-plane lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[control-plane] Provision allowed Subjects in the contract
2 participants