Skip to content

Commit

Permalink
IntegrationSource CRD (knative#8238)
Browse files Browse the repository at this point in the history
* Add initial raw API types and controller/reconciler. Levering internally 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]>

* adding reflection to make the mapping less verbose, and more flexible to extend...

Signed-off-by: Matthias Wessendorf <[email protected]>

* Add DDB Streams

Signed-off-by: Matthias Wessendorf <[email protected]>

* polish and add minimal tests

Signed-off-by: Matthias Wessendorf <[email protected]>

* Update pkg/apis/sources/v1alpha1/integration_lifecycle.go

Co-authored-by: Pierangelo Di Pilato <[email protected]>

* Update pkg/apis/sources/v1alpha1/integration_lifecycle.go

Co-authored-by: Pierangelo Di Pilato <[email protected]>

* Fix compiler warnings

Signed-off-by: Matthias Wessendorf <[email protected]>

* use other image coordinates

Signed-off-by: Matthias Wessendorf <[email protected]>

* first test for source

Signed-off-by: Matthias Wessendorf <[email protected]>

* Adding initial rekt test

Signed-off-by: Matthias Wessendorf <[email protected]>

* Adding SSL support and test for IntegrationSource

Signed-off-by: Matthias Wessendorf <[email protected]>

* Formatting fixes

Signed-off-by: Matthias Wessendorf <[email protected]>

* Disable OIDC tests for now

Signed-off-by: Matthias Wessendorf <[email protected]>

* use knative nightly images

Signed-off-by: Matthias Wessendorf <[email protected]>

* Fixing linters

Signed-off-by: Matthias Wessendorf <[email protected]>

* addressing comments, Part1

Signed-off-by: Matthias Wessendorf <[email protected]>

---------

Signed-off-by: Matthias Wessendorf <[email protected]>
Co-authored-by: Pierangelo Di Pilato <[email protected]>
  • Loading branch information
matzew and pierDipi committed Nov 6, 2024
1 parent 33d5b6a commit 68b5a79
Show file tree
Hide file tree
Showing 61 changed files with 5,962 additions and 2 deletions.
3 changes: 3 additions & 0 deletions cmd/controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import (
"knative.dev/eventing/pkg/reconciler/channel"
"knative.dev/eventing/pkg/reconciler/containersource"
"knative.dev/eventing/pkg/reconciler/eventtype"
"knative.dev/eventing/pkg/reconciler/integrationsource"
"knative.dev/eventing/pkg/reconciler/parallel"
"knative.dev/eventing/pkg/reconciler/pingsource"
"knative.dev/eventing/pkg/reconciler/sequence"
Expand Down Expand Up @@ -104,6 +105,8 @@ func main() {
apiserversource.NewController,
pingsource.NewController,
containersource.NewController,
integrationsource.NewController,

// Sources CRD
sourcecrd.NewController,

Expand Down
4 changes: 4 additions & 0 deletions cmd/webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import (
"context"
"os"

sourcesv1alpha1 "knative.dev/eventing/pkg/apis/sources/v1alpha1"

"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/types"
"k8s.io/client-go/kubernetes/scheme"
Expand Down Expand Up @@ -92,6 +94,8 @@ var ourTypes = map[schema.GroupVersionKind]resourcesemantics.GenericCRD{
messagingv1.SchemeGroupVersion.WithKind("Subscription"): &messagingv1.Subscription{},

// For group sources.knative.dev.
// v1alpha1
sourcesv1alpha1.SchemeGroupVersion.WithKind("IntegrationSource"): &sourcesv1alpha1.IntegrationSource{},
// v1beta2
sourcesv1beta2.SchemeGroupVersion.WithKind("PingSource"): &sourcesv1beta2.PingSource{},
// v1
Expand Down
1 change: 1 addition & 0 deletions config/300-integrationsource.yaml
447 changes: 447 additions & 0 deletions config/core/resources/integrationsource.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions config/core/roles/source-observer-clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ rules:
- pingsources
- sinkbindings
- containersources
- integrationsources
verbs:
- get
- list
Expand Down
3 changes: 3 additions & 0 deletions config/core/roles/sources-controller-clusterroles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ rules:
- "containersources"
- "containersources/status"
- "containersources/finalizers"
- "integrationsources"
- "integrationsources/status"
- "integrationsources/finalizers"
verbs:
- "get"
- "list"
Expand Down
Loading

0 comments on commit 68b5a79

Please sign in to comment.