{"id":20740693,"url":"https://github.com/direktiv/direktiv-knative-source","last_synced_at":"2025-09-13T05:35:41.892Z","repository":{"id":46198829,"uuid":"419491088","full_name":"direktiv/direktiv-knative-source","owner":"direktiv","description":"Event Source for Direktiv and Knative","archived":false,"fork":false,"pushed_at":"2021-12-11T16:17:04.000Z","size":121,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-17T21:49:38.339Z","etag":null,"topics":["direktiv","events","knative","knative-eventing","serverless"],"latest_commit_sha":null,"homepage":"https://direktiv.io","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/direktiv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-20T21:12:36.000Z","updated_at":"2022-03-13T07:51:06.000Z","dependencies_parsed_at":"2022-09-09T04:50:20.935Z","dependency_job_id":null,"html_url":"https://github.com/direktiv/direktiv-knative-source","commit_stats":null,"previous_names":["vorteil/direktiv-knative-source"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/direktiv/direktiv-knative-source","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/direktiv%2Fdirektiv-knative-source","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/direktiv%2Fdirektiv-knative-source/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/direktiv%2Fdirektiv-knative-source/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/direktiv%2Fdirektiv-knative-source/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/direktiv","download_url":"https://codeload.github.com/direktiv/direktiv-knative-source/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/direktiv%2Fdirektiv-knative-source/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274920191,"owners_count":25373975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["direktiv","events","knative","knative-eventing","serverless"],"created_at":"2024-11-17T06:29:37.040Z","updated_at":"2025-09-13T05:35:41.872Z","avatar_url":"https://github.com/direktiv.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Event Source for Direktiv and Knative\n\nThis repository contains ContainerSources for [Knative Eventing](https://knative.dev/docs/eventing/). The following sources are available:\n\n- [Direktiv](cmd/direktiv-source/README.md) (Image: direktiv/direktiv-source)\n  - type/source are set in flow in [Direktiv](https://github.com/direktiv/direktiv)\n  - Image: direktiv/direktiv-source\n- [SNMP](cmd/snmp-source/README.md) (Image: direktiv/snmp-source)\n  - source: direktiv/snmp/source\n  - type: direktiv.snmp\n- [Oracle Cloud Events](cmd/oci-source/README.md) (Image: direktiv/oci-source)\n  - source/source based on the [event from Oracle](https://docs.oracle.com/en-us/iaas/Content/Events/Reference/eventsproducers.htm)\n\n\n## Logging\n\nAll sources support debug logging via an environment variable *DEBUG*. A value of *true* enables debug logging. The logging output can be changed to JSON format via the environment variale *LOG*. If the value is *json* the logging will be in JSON format.\n\n*Logging Configuration*\n```yaml\napiVersion: sources.knative.dev/v1\nkind: ContainerSource\nmetadata:\n  name: my-source\nspec:\n  template:\n    spec:\n      containers:\n        - image: direktiv/snmp-source:v0.0.1\n          name: snmp-source\n          env:\n            - name: DEBUG\n              value: \"true\"\n```\n\n## Testing\n\nTo test the components an event receiver is required. Knative provides an event display service to log events. The following examples applies to Direktiv environments. For other environments please remove the label and annotation because they are [Direktiv](https://github.com/direktiv/direktiv) specific.\n\n*Test Event Receiver*\n```yaml\ncat \u003c\u003c-EOF | kubectl apply -f -\n---\napiVersion: serving.knative.dev/v1\nkind: Service\nmetadata:\n  name: event-display\n  labels:\n    networking.knative.dev/visibility: cluster-local\n  annotations:\n    network.knative.dev/ingress.class: kong-internal\nspec:\n  template:\n    spec:\n      containers:\n        - image: gcr.io/knative-releases/knative.dev/eventing/cmd/event_display\nEOF\n```\n\nTo install individual resources locally use the script in */hack*. It assumes a docker repository at localhost:5000 and installs the source pointing to the *event-display* service.\n\n```console\n# e.g. hack/install.sh snmp\nhack/install.sh \u003cname\u003e\n```\n\n## Building\n\nTool required for building:\n\n- [go](https://golang.org/)\n- [ko](https://github.com/google/ko)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirektiv%2Fdirektiv-knative-source","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdirektiv%2Fdirektiv-knative-source","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdirektiv%2Fdirektiv-knative-source/lists"}