|
Ran
|
Files
28
|
Run time
1s
|
Badge
README BADGES
|
push
github
fix: operator now does not add annotations to unrelated services (#760) ## Related Tickets & Documents - Issue: [724](https://github.com/Twingate/kubernetes-operator/issues/724) ## Changes updated the service `on.update` handler to properly filter out unrelated services ## Notes Added This small change to reduce noise on on unrelated/untagged services. Also the operator was causing extra load on the k8s api server to query available twingate resources for every change on every service on the cluster with this update this is no longer the case ref [change handlers](https://kopf.readthedocs.io/en/stable/filters/#change-filters) I have used the Tuple notations to be able to escape the dots in the annotation key which is undocumented but fully supported, ref: [implementation](https://github.com/nolar/kopf/blob/ca3e0d0e2/kopf/_cogs/structs/dicts.py#L23) --------- Co-authored-by: Clement Tee <56408987+clement0010@users.noreply.github.com> Co-authored-by: Eran Kampf <205185+ekampf@users.noreply.github.com>
199 of 224 branches covered (88.84%)
Branch coverage included in aggregate %.
1221 of 1246 relevant lines covered (97.99%)
0.98 hits per line
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|