Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PR] Add the silent spy-handlers for the raw events, no persistence #86

Closed
2 tasks
kopf-archiver bot opened this issue Aug 18, 2020 · 0 comments
Closed
2 tasks
Labels
archive enhancement New feature or request

Comments

@kopf-archiver
Copy link

kopf-archiver bot commented Aug 18, 2020

A pull request by nolar at 2019-05-29 15:07:41+00:00
Original URL: zalando-incubator/kopf#86
Merged by nolar at 2019-06-02 16:53:40+00:00

Issue: closes #30

Add the simplistic event-handlers for spying on the low-level events of other resources,
not belonging to the operator (and not storing any status fields or finalizers or so).

The syntax is:

import kopf

@kopf.on.event('zalando.org', 'v1', 'kopfexamples')
def event_fn(event, **kwargs):
    pass

The difference from the regular handlers is documented in the docs/handlers.rst (see the changed files). Briefly:

  • No state storage on the objects.
  • No annotations or finalizers added to the objects.
  • No k8s-events posted for the activity (only the stdout/stderr logs).

Altogether, this means "silent" — the objects do not know they are being watched & handled (i.e. spied).

Checklist:

  • Tests.
  • Documentation.
@kopf-archiver kopf-archiver bot closed this as completed Aug 18, 2020
@kopf-archiver kopf-archiver bot changed the title [archival placeholder] [PR] Add the silent spy-handlers for the raw events, no persistence Aug 19, 2020
@kopf-archiver kopf-archiver bot added the enhancement New feature or request label Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
archive enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

0 participants