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

Use GetServiceHostname when passing URL to JobSink #8303

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

mgencur
Copy link
Contributor

@mgencur mgencur commented Nov 4, 2024

This allows using Knative Service as the sink in tests simply by adding an option to enviroment for reconciler-test: eventshub.WithKnativeServiceForwarder.

The URL will change from http://sink-jouanbaf to http://sink-jouanbaf.test-ynyxtcbf.svc.cluster.local in most cases.
Before this change, the sender was getting 404.

Fixes #

Proposed Changes

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

This allows using Knative Service as the sink simply by adding an option
to enviroment: eventshub.WithKnativeServiceForwarder
@knative-prow knative-prow bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. area/test-and-release Test infrastructure, tests or release labels Nov 4, 2024
Copy link

codecov bot commented Nov 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.58%. Comparing base (fa6b4c5) to head (77e01b9).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8303   +/-   ##
=======================================
  Coverage   64.58%   64.58%           
=======================================
  Files         373      373           
  Lines       22619    22619           
=======================================
  Hits        14609    14609           
  Misses       7244     7244           
  Partials      766      766           

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

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 Nov 5, 2024
Copy link

knative-prow bot commented Nov 5, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mgencur, 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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 5, 2024
@knative-prow knative-prow bot merged commit 3f2b75b into knative:main Nov 5, 2024
35 of 36 checks passed
mgencur added a commit to mgencur/eventing that referenced this pull request Nov 5, 2024
This allows using Knative Service as the sink simply by adding an option
to enviroment: eventshub.WithKnativeServiceForwarder
pierDipi pushed a commit to openshift-knative/eventing that referenced this pull request Nov 5, 2024
This allows using Knative Service as the sink simply by adding an option
to enviroment: eventshub.WithKnativeServiceForwarder
openshift-cherrypick-robot pushed a commit to openshift-cherrypick-robot/knative-eventing that referenced this pull request Nov 5, 2024
This allows using Knative Service as the sink simply by adding an option
to enviroment: eventshub.WithKnativeServiceForwarder
pierDipi pushed a commit to openshift-knative/eventing that referenced this pull request Nov 5, 2024
This allows using Knative Service as the sink simply by adding an option
to enviroment: eventshub.WithKnativeServiceForwarder

Co-authored-by: Martin Gencur <[email protected]>
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/test-and-release Test infrastructure, tests or release 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