Commit Graph
6 Commits
Author SHA1 Message Date
Akshay Kumar d242af22c3 fix(cli): load images pinned by digest into the bootstrap kind cluster (#1924)
Signed-off-by: Akshay Kumar <akshaykumar@nvidia.com>
2026-10-26 00:37:03 -07:00
Pat Christopher 116232b2a1 fix: prevent bootstrap cluster pods getting IPs from kind CIDR (#1835)
* fix: prevent bootstrap cluster pods getting IPs from kind CIDR

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: resolve coderabbit comments

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: nerdctl bridge check

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: prevent nerdctl networking from getting into the site node networking

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: local agent review

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: prevent env var being set to cause networking being forced into nerdctl that gets shared to cluster

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

---------

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
2026-10-22 10:38:50 -04:00
Pat Christopher 0c48b2612e feat: bootstrap site can use capnico for initial node creation (#1356)
* fix: rebase

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: rebase repair

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* feat: make bootstrap nico follow patterns of tenant nico registry

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* feat: dry-run catches mTLS mismatches

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: code review updates

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: linter fixes

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: code review comments

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: refactor, comment update

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: review changes, use approved schema

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: nico bootstrap troubleshooting

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: capnico manifest

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: review comments

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: more review comments

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: review comments

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: local agent reviews

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: local agent review

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* feat: move credentials from sitespec to env vars

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: more agent fixes

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: more agent review

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: more agent reviews

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

* fix: more agent review

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>

---------

Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
2026-10-16 03:35:53 -07:00
Davanum SrinivasandClaude Fable 5.1 3baba6d1b4 ci: give the name check its launch allowlist, and move the stragglers to the new name (#1484)
* chore: move test doubles, examples and stale references to the new name

What the name check still reported outside the Tier 2 identifiers:
synthetic names in tests (nke-site, nke-old, nke-injected, nke-role,
nke-key-1 and friends), registry and path examples in documents and
flag help (registry.example.com/nke, ghcr.io/my-org/nke, ~/dev/nke),
development defaults (DEV_NAME, kind contexts, the promtail job, the
mutagen example), stale references to packages renamed earlier
(internal/nke, nke.NewClient, nkecli, nkeutils), the `nke#1399` issue
shorthand, the CI image tag nke/capd-reboot-controller, the prune
script's package names, and a few comments and messages. The
UpdateNKERBAC rpc's errors now start with the rpc name, which no caller
parses.

Kept: the two synthetic fixture profiles' image URLs, because
osprofiles-to-crs refuses to change a published MachineImage spec; the
salt of the bring-up VMs' default password hash; the legacy installer
path the kubeadm-distro test asserts is absent; the fleet names existing
sites carry. The postgresql chart's description changes with a patch
bump.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>

* ci: give the name check its launch allowlist

hack/name-check-allowlist.txt grows from two entries to 48, each with
its reason: the Tier 2 identifiers that stay until the post-launch
release (PR4 Kubernetes, PR5 node, PR6 OS image and packages), the
permanent keeps (migration names and texts, the NKEAuth magic and its
package, fleet release and profile names, the identity of existing
sites), the settings-coupled names (the old NGC token secret, the
CODEOWNERS team slugs, the S3 and apt names, the old CLI name), and the
files that keep the bare word (the agent version line the updater
parses, the OIDC upstream CA subject, the Keycloak lab, the two NVCR
workflows whose NGC organisation is named NKE).

With it, NAME_CHECK_MODE=fail make name-check passes on this tree:
5,908 hits, all allowed, every entry in use. The make target keeps
report mode until the launch flips it (W4).

Closes #1483

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>

---------

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-10 19:24:52 -04:00
Davanum SrinivasandClaude Fable 5.1 668bc38a9b feat(cli)!: rename nkectl to nvkectl, keeping the old names for one release (#1456)
The binary, its directory, its config directory and its environment
variables take the new name. For one release the previous names still
work: every NVKECTL_* setting is also read under its NKECTL_* name with a
deprecation warning (the NKECTL_CWE_* names of the generation before are
no longer read), a config file left under nkectl/ is read and copied to
nvkectl/ once, and releases publish both nvkectl-<os>-<arch> and
nkectl-<os>-<arch>, to GitHub and to S3 under the existing prefix.

The e2e helper package, the e2e test, the smoke and fetch scripts and
the bootstrap e2e workflow follow the binary; the fetch script accepts a
release that carries only the old asset name. The CLI's own documents
and the two installation documents that print the download URLs change
with it.

Kept on purpose: the NVCR repository name until an nvkectl repository
exists in the NGC org, the S3 prefix the publishing role's policy names,
and the prose in the other documents.

BREAKING CHANGE: the CLI is installed and invoked as nvkectl. The
previous binary name, environment variable names and config directory
are honoured for one release, as described above.

Closes #1455

Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-10 17:04:03 -04:00
Lia b433b4ea23 refactor(cli): move the bootstrap-only packages under internal/bootstrap (#1017)
Six packages exist only for `bootstrap site`: bootstrapengine, cwedeploy,
sitespec, sitecluster, etcdkey and spireentrydump. They move under
cli/internal/bootstrap/, so cli/internal separates what serves the
bootstrap from what serves the site-controller client. bootstrapengine
becomes bootstrap/engine and is imported under its former name; the
others keep theirs.

A pure move: import paths, the paths in cli/Makefile, the root Makefile,
controller/Makefile.dev, hack/mirror-bootstrap-images.sh, the capd-e2e
push glob and the e2e-pr-path-filter regex that must stay in step with
it, docs and comments, and one relative path in a test. No code changes.

Co-developed-by: Claude <noreply@anthropic.com>

Signed-off-by: Lia Campbell <liac@nvidia.com>
2026-09-29 09:44:37 -07:00