-
Notifications
You must be signed in to change notification settings - Fork 600
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
Going OIDC for Integration Source #8383
Going OIDC for Integration Source #8383
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: matzew 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 |
I think this requires the rebuild of integrations images |
1d1f7de
to
fca5f08
Compare
/retest |
fca5f08
to
23d62c7
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8383 +/- ##
==========================================
- Coverage 64.25% 64.22% -0.04%
==========================================
Files 388 388
Lines 23313 23324 +11
==========================================
- Hits 14980 14979 -1
- Misses 7539 7550 +11
- Partials 794 795 +1 ☔ View full report in Codecov by Sentry. |
This currently fails, since the /cc @dsimansk Doing a local build for the timer-source, the OIDC test passes just fine (based on latest |
/test reconciler-tests |
/hold will update some tests |
@creydr do I need to enable the new OIDC test differently ? locally it works. I run the running:
|
@@ -76,7 +78,10 @@ func (r *Reconciler) ReconcileKind(ctx context.Context, source *v1alpha1.Integra | |||
} | |||
|
|||
func (r *Reconciler) reconcileContainerSource(ctx context.Context, source *v1alpha1.IntegrationSource) (*v1.ContainerSource, error) { | |||
expected := resources.NewContainerSource(source) | |||
|
|||
feature.FromContext(ctx).IsOIDCAuthentication() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably a left over
- Generating OIDC specific evn_vars for Knative client of camel - Adding rekt-test for OIDC feature of the source Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
23d62c7
to
cbf331a
Compare
You need OIDC for the test being enabled:
|
yeah I used that But I do NOT need to register the OIDC test somewhere. based on the test, it will enable OIDC, as you see in the code - right? |
/unhold |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice 💪
PASS test/rekt.TestIntegrationSourceSendsEventsWithOIDC/SendsEventsWithSinkRefOIDC/Prerequisite/transport_encryption_is_strict (0.04s)
PASS test/rekt.TestIntegrationSourceSendsEventsWithOIDC/SendsEventsWithSinkRefOIDC/Prerequisite/should_not_run_when_Istio_is_enabled (0.04s)
PASS test/rekt.TestIntegrationSourceSendsEventsWithOIDC/SendsEventsWithSinkRefOIDC/Prerequisite/OIDC_authentication_is_enabled (0.04s)
PASS test/rekt.TestIntegrationSourceSendsEventsWithOIDC/SendsEventsWithSinkRefOIDC/Prerequisite (0.00s)
PASS test/rekt.TestIntegrationSourceSendsEventsWithOIDC/SendsEventsWithSinkRefOIDC/Setup/install_sink (55.42s)
PASS test/rekt.TestIntegrationSourceSendsEventsWithOIDC/SendsEventsWithSinkRefOIDC/Setup (0.00s)
PASS test/rekt.TestIntegrationSourceSendsEventsWithOIDC/SendsEventsWithSinkRefOIDC/Requirement/install_integrationsource (0.15s)
PASS test/rekt.TestIntegrationSourceSendsEventsWithOIDC/SendsEventsWithSinkRefOIDC/Requirement/integrationsource_goes_ready (3.08s)
PASS test/rekt.TestIntegrationSourceSendsEventsWithOIDC/SendsEventsWithSinkRefOIDC/Requirement (0.00s)
PASS test/rekt.TestIntegrationSourceSendsEventsWithOIDC/SendsEventsWithSinkRefOIDC/Assert/integrationsource_as_event_source_Set_sinkURI_to_HTTPS_endpoint (0.07s)
PASS test/rekt.TestIntegrationSourceSendsEventsWithOIDC/SendsEventsWithSinkRefOIDC/Assert/integrationsource_as_event_source_Set_sinkCACerts_to_non_empty_CA_certs (0.09s)
PASS test/rekt.TestIntegrationSourceSendsEventsWithOIDC/SendsEventsWithSinkRefOIDC/Assert/integrationsource_as_event_source_uses_integrationsources_identity_for_OIDC (3.04s)
PASS test/rekt.TestIntegrationSourceSendsEventsWithOIDC/SendsEventsWithSinkRefOIDC/Assert/integrationsource_as_event_source_delivers_events (3.00s)
PASS test/rekt.TestIntegrationSourceSendsEventsWithOIDC/SendsEventsWithSinkRefOIDC/Assert (0.00s)
PASS test/rekt.TestIntegrationSourceSendsEventsWithOIDC/SendsEventsWithSinkRefOIDC/Teardown (0.00s)
PASS test/rekt.TestIntegrationSourceSendsEventsWithOIDC/SendsEventsWithSinkRefOIDC (71.72s)
PASS test/rekt.TestIntegrationSourceSendsEventsWithOIDC (129.26s)
/lgtm
base work OIDC support on data-plane was done in here: |
Fixes #
Proposed Changes
Pre-review Checklist
Release Note
Docs