Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@pierDipi
Copy link
Member

@pierDipi pierDipi commented Feb 26, 2025

Instead of setting the ready condition during reconciliation steps, set specific conditions since the ready condition is managed and set according to the state of other conditions.

Fixes #

Proposed Changes

  • SinkBinding: Set specific conditions for reconciler steps

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

SinkBinding: Set specific conditions for reconciler steps: `SinkBindingAvailable` and `TrustBundlePropagated`

Docs

@knative-prow knative-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 26, 2025
@knative-prow
Copy link

knative-prow bot commented Feb 26, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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 added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 26, 2025
Instead of setting the ready condition during reconciliation
steps, set specific conditions since the ready condition
is managed and set according to the state of other conditions.

Signed-off-by: Pierangelo Di Pilato <[email protected]>
@pierDipi pierDipi force-pushed the sb-set-specific-conditions branch from a7c75de to 45905c7 Compare February 26, 2025 07:52
@codecov
Copy link

codecov bot commented Feb 26, 2025

Codecov Report

Attention: Patch coverage is 54.54545% with 5 lines in your changes missing coverage. Please review.

Project coverage is 62.83%. Comparing base (adaafa2) to head (45905c7).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
pkg/reconciler/sinkbinding/sinkbinding.go 0.00% 3 Missing ⚠️
pkg/apis/sources/v1/sinkbinding_lifecycle.go 75.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8508      +/-   ##
==========================================
+ Coverage   62.81%   62.83%   +0.01%     
==========================================
  Files         396      396              
  Lines       24233    24235       +2     
==========================================
+ Hits        15223    15227       +4     
+ Misses       8201     8199       -2     
  Partials      809      809              

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


if err := s.propagateTrustBundles(ctx, sb); err != nil {
sb.Status.MarkBindingUnavailable("TrustBundlePropagation", err.Error())
sb.Status.MarkFailedTrustBundlePropagation("FailedTrustBundlePropagation", err.Error())
Copy link
Member

Choose a reason for hiding this comment

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

seems to more correct. thx

@pierDipi pierDipi changed the title [WIP] SinkBinding: Set specific conditions for reconciler steps SinkBinding: Set specific conditions for reconciler steps Feb 26, 2025
@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 Feb 26, 2025
@pierDipi pierDipi requested a review from matzew February 26, 2025 09:14
@matzew
Copy link
Member

matzew commented Feb 26, 2025

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Feb 26, 2025
@matzew
Copy link
Member

matzew commented Feb 26, 2025

/retest

@pierDipi
Copy link
Member Author

/test upgrade-tests

@knative-prow knative-prow bot merged commit 1e889be into knative:main Feb 27, 2025
36 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/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants