Repository navigation
Description
Problem
The help for devops k8s bootstrap (src/devops_cli/lang/en/help.py:266) says the cluster gets Calico. cluster_runtime.py:95,100 starts minikube with no --cni, so it uses minikube's default, which does not enforce NetworkPolicy. The sandbox egress policies (#702) and the namespace perimeters (#913) rely on enforcement, so on a bootstrapped cluster they silently do nothing. Found while refining #702 on 2026-10-02.
Acceptance criteria
devops k8s bootstrapstarts minikube with--cni=calico, so policies are enforced and the help text is true. Or, if Calico's cost is not wanted, the help text says NetworkPolicy is not enforced and names the flag that enables it. Pick one, and say why in the task file.- An offline test pins the minikube argv, and the help text matches it.
uv run devops cipasses, and the generated docs are regenerated.
Key questions
- Calico, or correct the text? Calico (proposed). The repository's own perimeters assume enforcement, and minikube supports
--cni=calicodirectly.
Proposed design
Problem statement
The devops k8s bootstrap command claims to set up a cluster with Calico for network policy enforcement, but it actually starts minikube without specifying a CNI plugin, causing the default CNI (which does not enforce policies) to be used. This breaks the functionality of sandbox egress policies and namespace perimeters that rely on NetworkPolicy enforcement.
Acceptance criteria
- Criterion 1: The
devops k8s bootstrapcommand starts minikube with--cni=calicoflag so that network policies are enforced.
Verification: Rundevops k8s bootstrapand verify that the minikube cluster is started with--cni=calicoin the command line arguments. - Criterion 2: The help text for
devops k8s bootstrapaccurately reflects that Calico is used for network policy enforcement.
Verification: Check that the help text insrc/devops_cli/lang/en/help.pycorrectly states that Calico is used and that policies are enforced. - Criterion 3: An offline test verifies the minikube argv includes the correct CNI flag.
Verification: Write an offline test that pins the minikube argv to ensure it contains--cni=calico. - Criterion 4: The generated documentation is updated and
uv run devops cipasses.
Verification: Runuv run devops ciand confirm all checks pass, including documentation generation.
Key questions
- Calico, or correct the text?: Calico (proposed). The repository's own perimeters assume enforcement, and minikube supports
--cni=calicodirectly. [sources: src/devops_cli/lang/en/help.py:266]
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsIn Review
Activity
dan-petty commentedon Oct 20, 2026
Status set to Ready at 2954109 (see proposed design in issue body).
fix(k8s): start minikube with calico cni and align bootstrap help (#2122
chore(main): release 0.4.0 (#1960)
docs(openspec): plan #2570 add local-path addon to minikube start (#2998