This application is a webserver which leverages the Rust ecosystem's kube-rs to act as a K8s operator inside the NAIS clusters. At time of writing, it:
- It reactively receives events on
EndpointSlices
by the K8s API - Ignores all events on EndpointSlice(s) we can't map to a Service owned by a NAIS Application
- It checks if both (a) it contains pod IPs and (b) a minimum of 1x of them show 'Ready' readiness status
- Send HTTP request w/NAIS app's readiness status to the statusplattform backend
Mandatory:
- Rust
Optional (w/benefits):
- Nix (flaked)
All branches get deployed to dev.
Only commits that have a tag that starts with the letter v (as in v1.0.0, very-cool-tag[!] or, genereally vx.y.z) get deployed to prod.
Images are tagged as $CARGOVERSION-$REVCOUNT-$SHORTHASH where
- CARGOVERSION is the package version from Cargo.toml
- REVCOUNT is the current git depth and
- SHORTHASH is the eight first characters of the commit sha