-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RBAC token to be passed from the plugin to the event mesh backend (#66)
* refactored listers to kube client * added token to config & test refactoring * tests fixed * added token to config * added token place holder * hardcoded namespace fixed to all namespaces & copy config provided to fetchers (#34) * Bearer added to header (#34) * (fixed go imports #34) * fixed go imports (#34) * removed permissions for eventtypes, brokers and triggers (#34) * reverted test namespaces (#34) * token check added (#34) * permissions deleted (#34) * go lint fix (#34) * Update docs Signed-off-by: Ali Ok <[email protected]> * Get rid of listers and other injection Signed-off-by: Ali Ok <[email protected]> * Read the token in `Bearer: <token>` format Signed-off-by: Ali Ok <[email protected]> * Update backstage/plugins/knative-event-mesh-backend/README.md * Update backstage/plugins/knative-event-mesh-backend/README.md * Update backstage/plugins/knative-event-mesh-backend/README.md * Update backstage/plugins/knative-event-mesh-backend/README.md * Use kncloudevents.HTTPEventReceiver to start the HTTP server Signed-off-by: Ali Ok <[email protected]> * ./hack/update-deps.sh Signed-off-by: Ali Ok <[email protected]> * Remove some TODOs Signed-off-by: Ali Ok <[email protected]> * Goimports Signed-off-by: Ali Ok <[email protected]> * Address more comments Signed-off-by: Ali Ok <[email protected]> --------- Signed-off-by: Ali Ok <[email protected]> Co-authored-by: Ali Ok <[email protected]>
- Loading branch information
1 parent
2f438d2
commit 8e25fee
Showing
239 changed files
with
17,505 additions
and
15,508 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,12 @@ | ||
package main | ||
|
||
import ( | ||
"context" | ||
|
||
"knative.dev/backstage-plugins/backends/pkg/reconciler/eventmesh" | ||
|
||
"knative.dev/pkg/configmap" | ||
"knative.dev/pkg/controller" | ||
"knative.dev/pkg/injection" | ||
"knative.dev/pkg/injection/sharedmain" | ||
"knative.dev/pkg/signals" | ||
) | ||
|
||
const ( | ||
component = "eventmesh-backend" | ||
) | ||
|
||
func main() { | ||
|
||
sharedmain.MainNamed(signals.NewContext(), component, | ||
|
||
injection.NamedControllerConstructor{ | ||
Name: "backend", | ||
ControllerConstructor: func(ctx context.Context, watcher configmap.Watcher) *controller.Impl { | ||
return eventmesh.NewController(ctx) | ||
}, | ||
}, | ||
) | ||
ctx := signals.NewContext() | ||
eventmesh.NewController(ctx) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.