Commit 7e1e3dd
committed
Report top-level owners for pods
For each pod, report the top-level owner resources for those pods,
that is, the transitive owners which are not owned by any other
resources. Note that a pod may have more than one owner, and therefore
it can also have more than one top-level owner.
Update the `kube` crate to version 1.1.0 and the `k8s-openapi` crate
to version `0.25.0`. Use the "earliest" feature instead of "latest"
to support most API server versions, though there is no significant
difference in support regardless.
Update the Rust version to 1.82.0 to be able to use a recent version
of the `kube` crate.
Implement a cache for ownership resolution and API discovery. The
discovery results are kept between runs, but can be refreshed if
resources from new APIs are referenced. The ownership cache is reset
during each run, as the ownership relationships can change at any
time.
Improve trace logging. Do not `panic!` when AppSignal or Kubernetes
are unreachable.
Update the deployment YAML to provide read-only permissions to all
API groups and resources -- this is necessary due to the owner
traversal logic needing to be able to retrieve arbitrary resources.
Update the deployment YAML for Helm as well, and fix the version
updating script to update the version number on it as well.1 parent f469c3d commit 7e1e3dd
9 files changed
Lines changed: 1299 additions & 343 deletions
File tree
- charts/appsignal-kubernetes/templates
- protocol
- script
- src
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 39 | + | |
| 40 | + | |
44 | 41 | | |
45 | 42 | | |
46 | 43 | | |
| |||
0 commit comments