Files
Carl Danley be19c614c1 feat(controller): accept control-plane component extraArgs at cluster create (#2395)
* feat(controller): add control-plane component extraArgs to the create API

Add apiServer, controllerManager and scheduler, each with an extraArgs
map from flag name to value, to CreateClusterControlPlaneConfig and to
the cluster's controlPlaneConfig. Store them in the control-plane
configuration snapshot, which is JSONB, so no migration is needed.

Refs #2386

Signed-off-by: Carl Danley <cdanley@nvidia.com>

* feat(controller): validate and render control-plane extraArgs

Reject an operator argument for a flag NVKE sets on that component, a
flag name that isn't lowercase words joined by hyphens, a feature-gates
value that doesn't parse, and a gate that contradicts NVKE's. The create
handler runs the check before it writes anything.

Render the arguments into each component's extraArgs in the kubeadm
ClusterConfiguration at init, from the snapshot the init node is pinned
to. feature-gates is merged with NVKE's gates and sorted. Control-plane
nodes that join later read them from kubeadm-config.

A test keeps the list of flags NVKE sets in step with the renderer and
the kubeadm-config rewrites.

Refs #2386

Signed-off-by: Carl Danley <cdanley@nvidia.com>

* feat(controller): reject AllAlpha and AllBeta in operator feature-gates

Each sets every gate of its stage, including gates a later Kubernetes
version adds, so an upgrade would turn on features nobody chose. The
design review agreed to reject them, through a per-version gate catalog
that was later dropped. Keep that decision without it, and record it in
the design doc and the API description.

Refs #2386

Signed-off-by: Carl Danley <cdanley@nvidia.com>

* docs(design): describe the flag-name rule for control-plane extraArgs

The Validation section said only that each map is from a non-empty flag
name to a string value. The controller also requires lowercase words
joined by single hyphens, without the leading "--", because components
turn "_" into "-" when they parse flags. Say so, and why.

Refs #2386

Signed-off-by: Carl Danley <cdanley@nvidia.com>

* chore: allowlist the kubeadm golden bootstrap token in gitleaks

The new extraArgs golden files render the synthetic bootstrap token that
validInitConfig sets, and generic-api-key flags "token: <value>". Allow
that one literal under controller/internal/kubeadmconfig/testdata only,
with condition AND, so a real credential in those files, or the same
literal elsewhere, is still caught.

Refs #2386

Signed-off-by: Carl Danley <cdanley@nvidia.com>

---------

Signed-off-by: Carl Danley <cdanley@nvidia.com>
2026-11-19 10:33:40 -05:00
..

Design records

Design records and proposals. Status is stated at the top of each document. Proposals are not commitments.