You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(tmachine): add a multi-node k3s environment for node-local SPIRE Broker coverage #6249
I maintain OpenShell's Kubernetes E2E coverage. I need a multi-node k3s environment so the node-local SPIFFE Broker test can run in CI instead of existing only as code.
Description
The destructive suite has a kubernetes-spire-node-local package that moves the gateway between nodes and checks that it reaches the SPIRE agent on its own node, with TCP 8443 restricted to that node. It needs at least two nodes. Every tmachine k3s environment runs one node, and tests/tmachine/ansible/playbooks/openshell-k3s.yaml fails if there is more than one, so the package has no e2e-suites.yml row.
The k3s-spire-node-local installer already exists in tests/tmachine/config.nix (Postgres + SPIRE fixtures, no Broker Service).
kube_support::spire::expose_token_service points a selectorless Service at the only node's InternalIP, where the test host's token service listens. On several nodes it must use the address of the node that runs the tests instead.
OPENSHELL_TEST_SPIRE_MIN_AGENTS should report the node count.
Definition of Done
A tmachine k3s environment with two or more nodes.
The token service is reachable from the gateway on any node.
An e2e-suites.yml row runs destructive/kubernetes-spire-node-local on k3s-spire-node-local, and it passes.
Activity