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 marker for Trigger to mark OIDCIdentity condition as not supported #7316

Conversation

creydr
Copy link
Member

@creydr creydr commented Sep 28, 2023

Proposed Changes

In #7299 we introduced a new Trigger condition type ( OIDCIdentityCreated) to mark if the Triggers OIDC identity was created successfully.
Anyhow not all broker classes support the OIDC authentication yet and mark their Triggers OIDCIdentityCreated as true as they either created the identity or didn't create it as the feature is disabled.
These broker classes could mark their Triggers OIDCIdentityCreated condition as ready, but with the message "OIDC feature not supported yet".
This PR addresses it and adds helper methods to set the condition accordingly.

@knative-prow knative-prow bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Sep 28, 2023
@codecov
Copy link

codecov bot commented Sep 28, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (3dfc2ea) 77.54% compared to head (c3778d6) 77.55%.
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7316   +/-   ##
=======================================
  Coverage   77.54%   77.55%           
=======================================
  Files         250      250           
  Lines       13529    13533    +4     
=======================================
+ Hits        10491    10495    +4     
  Misses       2514     2514           
  Partials      524      524           
Files Coverage Δ
pkg/apis/eventing/v1/trigger_lifecycle.go 52.88% <100.00%> (+1.88%) ⬆️

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

@creydr creydr requested a review from pierDipi September 29, 2023 06:41
@creydr
Copy link
Member Author

creydr commented Sep 29, 2023

/retest

@creydr
Copy link
Member Author

creydr commented Sep 29, 2023

/cc @pierDipi

@creydr
Copy link
Member Author

creydr commented Oct 2, 2023

@pierDipi could you recheck?

@pierDipi
Copy link
Member

pierDipi commented Oct 3, 2023

/lgtm
/approve

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Oct 3, 2023
@knative-prow
Copy link

knative-prow bot commented Oct 3, 2023

[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

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/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants