Releases: nolar/kopf
Releases · nolar/kopf
0.23rc2
0.23rc1
Originally released on 2019-11-13 14:07:04+00:00 (link).
TL;DR: Massive refactoring, renames, code moves. Generally, should be backward-compatible.
RISKY CHANGES (can be BREAKING, should be not):
- Authentication and API talking are fully reworked:
pykube-ng
andkubernetes
clients are now piggybacked by default to extract the endpoints and credentials, but are not used for the API communication. This can break API connectivity in some cases. #226 #227 - In-memory containers introduced to carry the technical information/objects/flags for individual resources. This can lead to increased memory usage in huge clusters with thousands of monitored resources. #230
@kopf.on.resume()
handlers were fixed, and can now execute when previously they were not executed by mistake, but this could be taken as an expected behaviour. This can lead to massive patches of all objects on every operator startup. #230- Massive internal renames and code moves; not exposed publicly, unless hacks or monkey-patching were used. #209 #210 #211
cause.event
is renamed tocause.reason
to avoid terminology conflicts. #201
New features:
@kopf.on.startup()
handlers for operator initialisation. #225@kopf.on.cleanup()
handlers for operator shutdown. #225@kopf.on.login()
custom authentication handlers. #226@kopf.on.probe()
handlers for liveness metrics. #226- Pod's liveness probes with
kopf run --liveness
. #228 - Explicit owner is not needed in
kopf.adopt()
and hierarchy methods, current object is used by default. #203 retries=
limiter for handlers in addition totimeout=
. #222errors=TEMPORARY
,errors=PERMANENT
,errors=IGNORED
modes for handlers. #222
Bugfixes:
@kopf.on.resume()
handlers are not repeated every few minutes for no reason. #229 #230@kopf.on.resume()
are executed if they go after the on-create/on-update handlers. #230@kopf.on.resume()
can be retried in case of temporary or arbitrary errors. #230@kopf.on.resume()
can have sub-handlers. #230- There can be 2+ of the
@kopf.on.resume()
handlers. #230 spec
,status
,metadata
fields are not added to the body when absent. #198- Ignore asyncio signal handlers on Windows. #220
Internal changes:
- Fully type-annotated in the code (not in the tests). #195 #196 #197 #200 #201
- Fully asynchronous internally (asyncio/aiohttp); synchronous pykube-ng client is removed. #217 #227
- Handler outcomes and persistent state management separated from each other. #221
- E2E tests are now isolated from each other, preventing false-positives. #205
- The latest k8s & minikube versions are used in e2e tests. #193
0.22
Originally released on 2019-10-23 17:19:02+00:00 (link).
Bugfixes:
- Implicit logging events obey the configured level. #192 #188
- Field-changes detect the sub-fields of change's dict-containers. #191 #190
Internal changes:
- Diffs are turned from tuples to classes, diff ops — from strings to enums. #191
0.22rc1
0.21
Originally released on 2019-09-13 11:01:50+00:00 (link).
New features:
Improvements:
kopf --version
added. #175- More logs on reasons of exiting/termination. #179
- Wake up immediately on new changes of the object if currently sleeping for delayed handlers. #162
- Speed up the deletion (finalizer removal) of the objects with failed creation/update handlers. #162
- Terminate the operator better, with graceful period for clean shutdown. #156
- K8s-events for cluster-scoped objects are posted to the current namespace, not "default". #165
- Kopf's handler errors renamed to
kopf.PermanentError/kopf.TemporaryError
. #159 - Kopf's permanent/temporary errors (and these only) will not dump strack-traces anymore. #159
Bugfixes:
- Do not add a finalizer to objects excluded by labels/annotations filters. #173
- Fixed failing with 404 if object was removed too fast or within the handler. #160
- Fixed implicitly forced peering mode for embeddable operator. #174
Internal changes:
0.21rc5
0.21rc4
0.21rc3
0.21rc2
0.21rc1
Originally released on 2019-08-07 17:45:34+00:00 (link).
New features:
- Expose the functions to make Kopf embeddable into other apps. #156
Improvements:
- Terminate the operator better, with graceful period for clean shutdown. #156
- K8s-events for cluster-scoped objects are posted to the current namespace, not "default". #165
- Kopf's handler errors renamed to
kopf.PermanentError/kopf.TemporaryError
. #159 - Kopf's permanent/temporary errors do not dump strack-traces anymore. #159
Internal changes: