Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 152 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ k8s-openapi = { version = "0.24", features = ["v1_31"], optional = true }
prometheus-client = { version = "0.23", optional = true }
axum = { version = "0.8", optional = true }
futures = { version = "0.3", optional = true }
chrono = { version = "0.4", optional = true }

[features]
agent = ["kube", "k8s-openapi", "prometheus-client", "axum", "futures"]
agent = ["kube", "k8s-openapi", "prometheus-client", "axum", "futures", "chrono"]

[dev-dependencies]
tempfile = "3"
Expand Down
11 changes: 11 additions & 0 deletions deploy/kubernetes/reaper-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ rules:
- apiGroups: [""]
resources: ["namespaces"]
verbs: ["get", "list"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get"]
- apiGroups: [""]
resources: ["nodes/status"]
verbs: ["patch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down Expand Up @@ -102,6 +108,11 @@ spec:
imagePullPolicy: IfNotPresent
securityContext:
runAsUser: 0
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
args:
- --config-namespace=reaper-system
- --config-name=reaper-config
Expand Down
2 changes: 1 addition & 1 deletion docs/TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ List of tasks to do, not ordered in any specific way.
- [x] Evaluate if Reaper can be configured using a Kubernetes ConfigMap instead of relying on a node-level config file. (Implemented via `reaper-agent` DaemonSet — PR #27)
- [x] reaper-agent Phase 2: Overlay GC — reconcile overlay namespaces against Kubernetes API, delete overlays for namespaces that no longer exist
- [ ] reaper-agent Phase 2: Binary self-update — watch ConfigMap version field, download and replace shim/runtime binaries
- [ ] reaper-agent Phase 2: Node condition reporting — patch Node object with `ReaperReady` condition
- [x] reaper-agent Phase 2: Node condition reporting — patch Node object with `ReaperReady` condition
- [x] reaper-agent Phase 2: Mount namespace cleanup — detect and unmount stale `/run/reaper/ns/*` bind-mounts
- [ ] Fix known bugs documented in [docs/BUGS.md](BUGS.md)
Loading