* chore: say NVKE in the comments that still said NKE
The word NKE in comments becomes NVKE: Go comments through the token
scanner, so no string literal moves; proto doc comments, with the
generated *.pb.go files regenerated by `make -C agent protos`; and the
comment lines of YAML, shell, Make, Tilt, systemd, Packer, Nix and
template files. The provisioned provider's CRD description comes from a
doc comment, so `make -C cluster-api-provider-provisioned manifests` and
`make -C cli provider-manifest` regenerated the CRD and the CLI's
embedded copy of it.
Kept on purpose: the comment quoting the "NKE Agent Version:" line the
updater parses, and the comments about the NGC organisation that is
named NKE.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
* chore: say NVKE in the display text that still said NKE
User-facing text that carried the word NKE now says NVKE: nvkectl help
text; log, error and condition messages; Ginkgo suite and spec names;
deb and OCI package metadata; systemd unit descriptions; workflow step
names and input descriptions; Helm render failures; and the nine
Markdown lines the prose sweep (#1462) missed. The tests that assert
these strings move with them.
Kept on purpose, because something parses or persists them: the
"NKE Agent Version:" and "NKE Agent Updater Version:" lines the updater
reads; the "update NKE RBAC:" errors of the UpdateNKERBAC rpc; the 2025
migration text; the OIDC upstream CA's CN and OU, since re-issuing that
CA would break tenant trust; the nico-sim tenant "Forge-Tenant-NKE"; the
Keycloak lab realm; and the NGC organisation that is named NKE.
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>
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>
* fix(e2e): configure CAPD userspace tunnel networking
Signed-off-by: Eric Staples <estaples@nvidia.com>
* fix(e2e): keep the nkectl substrate off the OVS uplink bridge
The nkectl bootstrap substrate builds FROM the CAPD node image and runs Calico. Since the uplink is always moved into the userspace br-phy bridge, kind and the fake nodes cannot reach each other on the substrate network.
Signed-off-by: Eric Staples <estaples@nvidia.com>
---------
Signed-off-by: Eric Staples <estaples@nvidia.com>
The CAPD shim now reads /var/lib/nico-containers/cloud-init/status. The
fixture still wrote the old nico-mock path, so NodePreflight never left
"status: running" and the site cluster stayed Provisioning.
The fake nodes boot with a software TPM and a spire-agent already looking
for its server, which is what a pre-provisioned machine looks like by the
time nkectl hears about it. The suite generates a bootstrap CA, reads each
node's EK thumbprint, renders them into the inventory, and asserts every
agent attests once `bootstrap site` has deployed SPIRE.
That is the first end-to-end check that any of the identity wiring works.
The unit tests can only see the helm arguments nkectl builds, so nothing
until now could catch a chart that installed cleanly and then issued no
identity.
Restores the external-service manifest and publishSpireExternally, dropped
from the SPIRE commit while external reachability was deferred. This is
where it belongs: the agents are configured with an address and a port
before the cluster exists, so they can only reach the server through a node
port fixed in advance. The suite attaches the bootstrap cluster to the node
network to make that route exist, which is enough for fake nodes on a docker
network and is not yet a general answer for real hardware.
Also drops comments describing a software bundle and a second registry
credential, neither of which still exists.
https://jirasw.nvidia.com/browse/NKX-14771
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
* feat(nkectl): add e2e harness and inventory fixture
Adds the walking-skeleton entrypoint for nkectl's e2e suite: an inventory
fixture matching the fake-node IPs a later change will bring up, and a
`make test-e2e` target that currently asserts `bootstrap site` reaches its
not-yet-implemented dispatch stub. The script grows one stage at a time
alongside bootstrap site's real implementation.
Co-developed-by: Claude <noreply@anthropic.com>
* ci(nkectl): wire the e2e harness into the required merge gate
Adds an "nkectl e2e" workflow (calls `make -C cli test-e2e`) and requires it
through merge-gate.yml's `gate` job, alongside the existing controller-test
and go-build lanes. Required from the start rather than added once the suite
passes: cli/e2e/run.sh's stages land one at a time alongside bootstrap site's
real implementation, so the job stays green throughout instead of going red
until some later change fixes it.
Co-developed-by: Claude <noreply@anthropic.com>
* feat(nkectl): add fake-node fixture, scope e2e naming to bootstrap site
Adds the three-node docker-compose fixture (kindest/node + nke-agent) that
bootstrap-site's real dispatch will target in a later change, and brings it
up in the e2e run now to prove the fixture itself before anything depends on
it: fetch nke-agent from this repo's own GHCR feed, build the node image,
start the nodes, and verify node-agent answers on each.
Renames the harness from generic "e2e"/"test-e2e" to "bootstrap
e2e"/"test-e2e-bootstrap" (and cli/e2e/run.sh -> cli/e2e/bootstrap/run.sh):
it currently covers "bootstrap site" specifically, not nkectl as a whole, and
cli/e2e/ is meant to hold one subdirectory per command as more suites like
this are added.
Also corrects nodeAgentPort in the inventory fixture: the agent/ module's
nke-agent defaults its gRPC port to 15005, not the 50051 that
inventory.DefaultNodeAgentPort assumes (verified against a running fixture
node) -- that constant looks stale, inherited from a GitLab-side spike that
fetched a different node-agent build, and is worth a separate look.
Co-developed-by: Claude <noreply@anthropic.com>
* fix(nkectl): avoid leaked containers and starved node timeouts in e2e run.sh
Cross-review (Claude Code + Codex + CodeRabbit, unanimous) on PR #212 found
two bugs in the e2e entrypoint:
- `nodes_up` was set true only after `make nodes-up` returned. A partial
failure inside that target (e.g. node3 fails to start after node1/node2
succeed) exits the script under `set -e` before the flag flips, so the
EXIT trap's cleanup sees `nodes_up=false` and skips teardown, leaking the
containers/volumes/network docker compose already created. Set the flag
before the call instead -- `nodes-down` is safe to run against a partial
or nonexistent stack.
- The node-agent reachability deadline was computed once above the node
loop and shared across all three IPs, so a slow node1 could starve
node2/node3 of wait time within the same 120s budget. Moved inside the
loop so each node gets its own 120s window.
Co-developed-by: Claude <noreply@anthropic.com>
* refactor(nkectl): derive the e2e node image from capd-kindest-node, replace compose with a Go substrate
Addresses review feedback from jonathanmeier5 on PR #212:
- The node image is now a thin derivation of
controller/hack/capd-kindest-node's CAPD node image
(cli/e2e/bootstrap/substrate/node/Dockerfile), instead of a
from-scratch build duplicating nke-agent install, CNI bundle baking
and systemd units the CAPD image already gets right. It changes
exactly one thing on top: inject --disable-mtls into AGENT_ARGS and
disable spire-agent/swtpm, since a pre-provisioned host has no CAPI
bootstrap secret to hand it a trust bundle. Pattern matches (and this
Dockerfile is closely adapted from) the preprovisioned-provider E2E
substrate in CWE gitlab MR !996.
- docker-compose.yaml and the systemd-unit-file fixture are replaced by
a Go package (cli/e2e/bootstrap/substrate) modelled on that same
MR's substrate.go: it builds the node image, starts/tears down the
containers, and waits for nke-agent readiness by probing from inside
each container via `docker exec` rather than dialing from the host --
which also incidentally fixes readiness checks being unreliable under
Docker setups where the host can't reach container IPs directly
(Colima, Docker Desktop). Adapted for nkectl's case: this substrate
creates its own private network with deterministic addresses (no
existing kind network to join yet, and the inventory fixture needs a
stable IP to reference), where CWE's substrate joins an existing kind
network and discovers addresses after the fact.
- nke-agent is now compiled from this checkout's own agent/ module
(`make -C cli ensure-capd-image`, via capd-kindest-node's
CAPD_NODE_AGENT_LOCAL_BUILD path) instead of fetched from GHCR, so
the CI workflow no longer needs oras or a GHCR login step.
- The now-unreachable nke-dev.s3 bucket reference is gone entirely
along with the bundle-serving fixture files it lived in;
capd-kindest-node's own BUNDLE_SERVER_URL/INDEX_FILE_URL defaults
(the CloudFront host used throughout controller/) carry over via the
base image.
Verified locally end to end, including a cold build with no cached
images (agent compile, SPIRE bundle fetch, TPM tooling install, both
image builds, all three nodes reaching ready, and the bootstrap-dispatch
stub check).
Co-developed-by: Claude <noreply@anthropic.com>
* DCO Remediation Commit for Lia Campbell <liac@nvidia.com>
I, Lia Campbell <liac@nvidia.com>, hereby add my Signed-off-by to this commit: 5c25cb644e
I, Lia Campbell <liac@nvidia.com>, hereby add my Signed-off-by to this commit: 87bb761e3a
I, Lia Campbell <liac@nvidia.com>, hereby add my Signed-off-by to this commit: d70c7906e4
I, Lia Campbell <liac@nvidia.com>, hereby add my Signed-off-by to this commit: b9df17e6bb
I, Lia Campbell <liac@nvidia.com>, hereby add my Signed-off-by to this commit: d2d89a8b29
Signed-off-by: Lia Campbell <liac@nvidia.com>
Co-developed-by: Claude <noreply@anthropic.com>
---------
Signed-off-by: Lia Campbell <liac@nvidia.com>