Watch
0
0
Fork
You've already forked hyperhive
0
Commit graph hyperhive/nix/vm-tests/k8s-controller-switch.nix
Author SHA1 Message Date
maia
766651011f k8s VM tests: wait for the store's active node after the unseal
The tests waited on `bao status`, which answers once the node is
unsealed and before raft has elected it, so the first policy write raced
the election and failed with "local node not active but active cluster
node not found". `unseal_bao` unseals and then waits for sys/leader to
say the node is the leader; the four tests that bootstrap the store use
it at both unseal sites.

Closes #6807
2026-11-27 18:07:59 +01:00
atlas
d9023217fc k8s: the hyperhive namespace enforces pod security restricted
No pod in the namespace has a hostPort any more, and the census found nothing else that restricted refuses. The namespace now carries the restricted level for enforce, warn and audit, so the API server refuses a pod that drifts. The bao-login test's probe pods get the container security context restricted asks for. The controller switch test shows the API server admitting a compliant pod and refusing the same pod with a host port, a kept capability or privilege.
2026-11-27 18:07:59 +01:00
atlas
8cd6ae3037 k8s: the controller's listener is a ClusterIP service the host dials by name
The controller's api port was a hostPort on the node, which Pod Security baseline and restricted forbid. It is a ClusterIP Service now, behind a NetworkPolicy that admits only the node. The host's resolver (the hive's dnsmasq) forwards cluster.local to CoreDNS, and the gateway dials the Service by name through nginx's resolver. tcp.hostAddress goes.
2026-11-27 18:07:59 +01:00
atlas
513be8f7d0 k8s: the controller pod keeps no volume; the state gate goes 2026-11-27 18:07:59 +01:00
atlas
2232acd056 k8s: stt and ci-metrics start without a state gate 2026-11-27 18:07:59 +01:00
atlas
de85c18a33 vm-tests: the state gate refuses an empty volume until the marker is written 2026-11-27 18:07:59 +01:00
atlas
9ab2f4e1b6 vm-tests: k8s-controller-switch moves the controller between its unit and the cluster 2026-11-27 18:07:59 +01:00