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

WIP: IntegrationSource CRD #8238

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

matzew
Copy link
Member

@matzew matzew commented Oct 10, 2024

First draft, more to come...

based on this there will be a follow-up PR that will add the IntegrationSink and than one with refactorings.

/hold

…lly the container source for the handling of the kamelet workloads. the logic for applying the env-vars is a bit verbose, but can be improved.

Tests/lifeccyle and some other improvements are still missing. but this works.

Signed-off-by: Matthias Wessendorf <[email protected]>
Signed-off-by: Matthias Wessendorf <[email protected]>
Signed-off-by: Matthias Wessendorf <[email protected]>
@knative-prow knative-prow bot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Oct 10, 2024
Copy link

knative-prow bot commented Oct 10, 2024

[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 /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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. area/test-and-release Test infrastructure, tests or release labels Oct 10, 2024
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

Attention: Patch coverage is 20.00000% with 232 lines in your changes missing coverage. Please review.

Project coverage is 65.85%. Comparing base (aa6f73b) to head (abd59be).

Files with missing lines Patch % Lines
...ler/integrationsource/resources/containersource.go 0.00% 122 Missing ⚠️
pkg/reconciler/integrationsource/controller.go 0.00% 43 Missing ⚠️
.../reconciler/integrationsource/integrationsource.go 0.00% 30 Missing ⚠️
pkg/apis/sources/v1alpha1/register.go 0.00% 11 Missing ⚠️
...kg/apis/sources/v1alpha1/integration_validation.go 76.92% 6 Missing and 3 partials ⚠️
pkg/apis/sources/v1alpha1/integration_lifecycle.go 73.91% 6 Missing ⚠️
...g/reconciler/integrationsource/resources/labels.go 0.00% 5 Missing ⚠️
pkg/apis/sources/v1alpha1/integration_defaults.go 0.00% 3 Missing ⚠️
pkg/apis/sources/v1alpha1/integration_types.go 77.77% 2 Missing ⚠️
cmd/controller/main.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8238      +/-   ##
==========================================
- Coverage   66.57%   65.85%   -0.73%     
==========================================
  Files         371      381      +10     
  Lines       18282    18572     +290     
==========================================
+ Hits        12172    12230      +58     
- Misses       5321     5550     +229     
- Partials      789      792       +3     

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


func selectImage(source *v1alpha1.IntegrationSource) string {
if source.Spec.Timer != nil {
return "quay.io/openshift-knative/kn-connector-timer-source:1.0-SNAPSHOT"
Copy link
Member Author

Choose a reason for hiding this comment

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

@dsimansk for this to get rid of, let's see if we can get the integrations repo setup w/ image push etc.

and yes, this code will be changing too. but is first draft. I am currently more focused on having things work

@matzew matzew mentioned this pull request Oct 11, 2024
Signed-off-by: Matthias Wessendorf <[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 do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants