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

Fix broker condition check #1820

Merged
merged 2 commits into from
Jun 23, 2023
Merged

Conversation

dsimansk
Copy link
Contributor

Description

This's changed on the Eventing end with latest nightly versions.

/cc @vyasgun @rhuss

Changes

  • Fix broker condition check

Reference

Fixes #

Release Note

NONE

@knative-prow knative-prow bot requested review from rhuss and vyasgun June 22, 2023 14:12
@knative-prow
Copy link

knative-prow bot commented Jun 22, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dsimansk

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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 22, 2023
Copy link

@knative-prow knative-prow bot left a comment

Choose a reason for hiding this comment

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

@dsimansk: 0 warnings.

In response to this:

Description

This's changed on the Eventing end with latest nightly versions.

/cc @vyasgun @rhuss

Changes

  • Fix broker condition check

Reference

Fixes #

Release Note

NONE

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@knative-prow knative-prow bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 22, 2023
@@ -44,7 +44,7 @@ func EventtypeList(r *KnRunResultCollector, eventtypes ...string) {
func EventtypeDescribe(r *KnRunResultCollector, name string) {
out := r.KnTest().Kn().Run("eventtype", "describe", name)
r.AssertNoError(out)
assert.Check(r.T(), util.ContainsAll(out.Stdout, name, r.KnTest().Kn().Namespace(), "Ready", "BrokerReady"))
assert.Check(r.T(), util.ContainsAll(out.Stdout, name, r.KnTest().Kn().Namespace(), "Ready", "BrokerExists"))
Copy link
Member

Choose a reason for hiding this comment

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

It should be ReferenceExists:
https://github.com/knative/eventing/blob/main/pkg/apis/eventing/v1beta2/eventtype_lifecycle.go#L27

Since the v1beta2 version is using a KReference, which basically allows us to point to any KResource in that sense

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, I'll do the switch in a follow-up PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see the default broker is gone and that's probably another problem for this test. I'll refactor to v1beta2 a bit sooner than a follow-up PR. :)

@codecov
Copy link

codecov bot commented Jun 22, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (cc1a637) 79.70% compared to head (e03a114) 79.70%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1820   +/-   ##
=======================================
  Coverage   79.70%   79.70%           
=======================================
  Files         179      179           
  Lines       13850    13850           
=======================================
  Hits        11039    11039           
  Misses       2050     2050           
  Partials      761      761           

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@dsimansk
Copy link
Contributor Author

@vyasgun if you may pls.

@vyasgun
Copy link
Contributor

vyasgun commented Jun 23, 2023

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Jun 23, 2023
@knative-prow knative-prow bot merged commit 00e38dc into knative:main Jun 23, 2023
18 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