Skip to content

Conversation

asimpleidea
Copy link
Member

@asimpleidea asimpleidea commented Apr 20, 2021

This pull requests brings the ability to watch for services on Kubernetes and generate events starting from them.

Status:

  • create the k8s command
  • watch for services
  • generate openapi Services and Events
  • send events
  • unit tests
  • documentation

@asimpleidea asimpleidea added the enhancement New feature or request label Apr 20, 2021
@asimpleidea asimpleidea requested review from arnatal and ljakab April 20, 2021 12:12
@asimpleidea asimpleidea self-assigned this Apr 20, 2021
asimpleidea added a commit to asimpleidea/cnwan-reader that referenced this pull request Apr 20, 2021
This commit adds the kubernetes command and adds it to
the watch command.

Signed-off-by: Elis Lulja <[email protected]>
asimpleidea added a commit to asimpleidea/cnwan-reader that referenced this pull request Apr 20, 2021
This commit adds a k8s watcher, which watches kubernetes services
updates. These are later processed and converted into openapi.Service
and openapi.Event types.

Signed-off-by: Elis Lulja <[email protected]>
asimpleidea added a commit to asimpleidea/cnwan-reader that referenced this pull request Apr 20, 2021
Events generated by kubernetes services are now sent to the adaptor.

Signed-off-by: Elis Lulja <[email protected]>
asimpleidea added a commit to asimpleidea/cnwan-reader that referenced this pull request Apr 22, 2021
This commit adds the kubernetes command and adds it to
the watch command.

Signed-off-by: Elis Lulja <[email protected]>
asimpleidea added a commit to asimpleidea/cnwan-reader that referenced this pull request Apr 22, 2021
This commit adds a k8s watcher, which watches kubernetes services
updates. These are later processed and converted into openapi.Service
and openapi.Event types.

Signed-off-by: Elis Lulja <[email protected]>
asimpleidea added a commit to asimpleidea/cnwan-reader that referenced this pull request Apr 22, 2021
Events generated by kubernetes services are now sent to the adaptor.

Signed-off-by: Elis Lulja <[email protected]>
Watch command is now defined and added to the root command.

Signed-off-by: Elis Lulja <[email protected]>
This commit adds the kubernetes command and adds it to
the watch command.

Signed-off-by: Elis Lulja <[email protected]>
This commit adds a k8s watcher, which watches kubernetes services
updates. These are later processed and converted into openapi.Service
and openapi.Event types.

Signed-off-by: Elis Lulja <[email protected]>
Events generated by kubernetes services are now sent to the adaptor.

Signed-off-by: Elis Lulja <[email protected]>
@asimpleidea asimpleidea marked this pull request as ready for review April 27, 2021 08:07
This commit adds the --context flag to override the current context and
watch for services on another kubernetes cluster.

Additionally, --help has been enriched and updated.

Signed-off-by: Elis Lulja <[email protected]>
This commit adds yaml file for cluster role and cluster role binding to
use for the cnwan reader roles and a script to generate a kubeconfig
to use for the cnwan reader.

Signed-off-by: Elis Lulja <[email protected]>
New sections instructing usage with Kubernetes are now included in
the documentation.

Signed-off-by: Elis Lulja <[email protected]>
@ljakab
Copy link
Member

ljakab commented Jul 19, 2021

Hi @SunSince90, since this PR shared one file with the etcd support work, it will need to be rebased now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants