Skip to content

Commit

Permalink
Enable kafka functional tests
Browse files Browse the repository at this point in the history
Signed-off-by: David Farr <david_farr@intuit.com>
  • Loading branch information
dfarr committed Feb 1, 2023
1 parent 31b5ae2 commit b85a505
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ jobs:
include:
- driver: stan
- driver: jetstream
- driver: kafka
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
2 changes: 2 additions & 0 deletions controllers/eventsource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ func buildDeployment(args *AdaptorArgs, eventBus *eventbusv1alpha1.EventBus) (*a
case eventBus.Status.Config.JetStream != nil:
jsConf := eventBus.Status.Config.JetStream
accessSecret = jsConf.AccessSecret
case eventBus.Status.Config.Kafka != nil:
accessSecret = nil // todo
default:
return nil, fmt.Errorf("unsupported event bus")
}
Expand Down
2 changes: 2 additions & 0 deletions controllers/sensor/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ func buildDeployment(args *AdaptorArgs, eventBus *eventbusv1alpha1.EventBus) (*a
case eventBus.Status.Config.JetStream != nil:
jsConf := eventBus.Status.Config.JetStream
accessSecret = jsConf.AccessSecret
case eventBus.Status.Config.Kafka != nil:
accessSecret = nil // todo
default:
return nil, fmt.Errorf("unsupported event bus")
}
Expand Down

0 comments on commit b85a505

Please sign in to comment.