4 Commits
Author SHA1 Message Date
Terry Howe 8eed5173c8 feat(deploy)!: move the greenfield overlays and the release namespace to nvke-controller (#1889)
* feat(deploy)!: move the greenfield overlays and the release namespace to nvke-controller

This moves them, and with them the persisted identifiers a site carries:
the Helm release and its namespace, the database, and the Temporal
namespace and task queue.

In the three greenfield stacks: nameOverride, fullnameOverride,
namespaceOverride, serviceAccount.name, serviceMonitor.name,
appDb.dbName, the Temporal namespace and queue, the field managers and
the managed-by values, tracing.serviceName, and the objects the stacks
render around them -- the Namespace manifest, the Postgres CREATE
DATABASE, the SPIRE admin ID and ClusterSPIFFEID namespace selectors,
the auth-dev ConfigMap's namespace, the CAPD RBAC ClusterRole and its
subject, and the spire-client probe URL.

Consumers that move with it: controller/Tiltfile (release name,
namespace, SPIRE admin path and the string-matched resource names),
deploy/check-site.sh, the e2e site helpers and their collect script,
cli/internal/bootstrap/controllerdeploy (including the NodePort Service
nvke-controller-external), cli/internal/deploypath's admin path,
management-engine/hack/nvke-controller.sh, and the CI lane scripts.

The discovery paths search the new name first and keep the old one:
nvkectl's authConfigNamespaces, nvke-token.sh, nvke-auth-demo.sh and
dev-env-spire.sh now try nvke-controller, then nke-controller, then
cloud-workflow-engine. The reference health dashboard matches all three
workload names, and Tilt's preflight refuses to take over a cluster
that still runs the nke-controller release rather than failing later.

The published image keeps its name per #1554 decision 2, as do the
nke-controller-config ConfigMap and the nke-controller-chart release
artifact; hack/name-check-allowlist.txt now carries one entry per
reason rather than one blanket token.

Refs #1861, #1554, #1496, #1818

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

Name nke-controller as the intermediate namespace in the authentication
docs, matching authConfigNamespaces, and restore the legacy node-agent
audience in the exchange mock's test.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix(e2e): point the nico bootstrap lane at the nvke-controller namespace

The nico lane still asserted the tenant credentials Secret landed in
nke-controller, so both e2e (nico) jobs failed after the rename.

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix(deploy): carry the nvke-controller rename into the rebased files

The rebase onto main replayed the rename over two files that gained
nke-controller references after the branch was cut: the management-engine
dev overlay, which succeeds the hack script this branch had edited and
was removed in #1918, and an API-authentication example added in #1935.

Refs #1861

Signed-off-by: Terry Howe <thowe@nvidia.com>

* fix: address review feedback

Continue namespace discovery past a Forbidden lookup in nvke-token.sh and
nvke-auth-demo.sh. --ignore-not-found suppresses absence, not denial, so a
kubeconfig scoped to nke-controller alone died on the nvke-controller probe
before reaching the namespace it can read -- the migration case this branch
adds. Keep the first denial, try the remaining candidates, and fail with it
only when none was readable, since falling back to cloud-workflow-engine
needs a confirmed absence.

Refs #1861

Signed-off-by: Terry Howe <thowe@nvidia.com>

---------

Signed-off-by: Terry Howe <thowe@nvidia.com>
2026-10-29 08:17:40 -06:00
Lia 44a136a877 feat(cli): the install reads the release description nvkr release export writes (#1598)
* feat(cli): the install reads the release description nvkr release export writes

The release input is the nvkr.dev/release-description/v1 document: every
output with its reference and digest, a native output's os and arch, a
multi-arch image's index children, and a chart's version. The reader takes
only that schema. The render refuses a chart the release carries at another
version than the item pins. inspect nvkr-release prints the reference, the
root digest and the declared qualification.

The export describes a release and verifies nothing; nvkr release verify
decides that for the same reference.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* fix(cli): the chart-version check applies to repository charts; the reader refuses filtered and malformed descriptions

A path chart's pin is a placeholder the chart at the path overrides, so
the release's version is noted, not compared. A repository chart's pin
selects what installs: the release has to name that version, and a
missing one is refused too. The reader refuses a filtered description,
an image index without children or missing a required platform, an os
without an arch, an output carrying both arch and an index, and a
platform that is not os/arch; a platform outside the supported set is
reported by Select for the output asked for, not at parse. Select takes
a suffixed name's own suffix as its architecture and prefers the suffixed
output named for the architecture. The package doc and the help say the
export is unverified and verify runs first.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* fix(cli): the release decides the version of every chart it carries

A chart the release carries is installed from the release's archive by
digest, so its version is the release's: the rendered release.yaml records
it. A pin that names another version is a warning that points at the
item's values, not a refusal; the pin decides only for a chart the
release lacks. The 0.0.0 placeholder of a chart in this tree is no
difference.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* feat(deploy): a path chart names no version

A repository chart is selected by its version, so release.yaml pins one.
A path chart carries its own in its Chart.yaml, and a release that
carries the chart decides, so the pin is gone from the controller and
nktp items in deploy/nico and the e2e deploy paths. Both readers accept
the absence; the rendered copy records the release's version.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* fix(cli): a platform variant is its architecture; path charts in the e2e paths name no version

Select and the required-platform check compare on os/arch, so a child
published as linux/arm64/v8 serves linux/arm64. The item parser refuses
an empty version on a repository chart like the Go reader does. The e2e
postgresql items lose their version like the controller items did, and
the stack script's words about pins match. gofmt on the test file.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

---------

Signed-off-by: Lia Campbell <liac@nvidia.com>
2026-10-13 13:07:50 -07:00
Aaron Patten 03cba1060d feat(dev): run Tilt and the e2e deploy paths with the nke-controller greenfield profile (#1271)
* feat(dev): run Tilt and the e2e deploy paths with the nke-controller greenfield profile

Tilt and the capd-e2e, capnico-e2e and nke-sbom deploy paths install the
controller the way a greenfield site does: release, namespace, Deployment,
Service and ServiceAccount nke-controller; SPIFFE ID
/nke-service/nke-controller; Temporal namespace nke-controller and queue
nke-controller-tasks; database nke-controller; and the field-manager,
managed-by and Teleport label/prefix values in nke-controller form.
backend-e2e.sh no longer branches on Tilt versus deploy path.

The e2e harness package internal/cwe is now internal/controller and
defaults to nke-controller. The CWE_* settings the dev loop, CI scripts
and e2e suite read are renamed NKE_CONTROLLER_*; the old names are still
read for one release, including when the new name is set but empty.
hack/nke-token.sh and hack/nke-auth-demo.sh find the controller in
nke-controller, then cloud-workflow-engine, as nkectl does.
The Tilt values file, Dockerfile, kind config and CAPD RBAC manifest are
renamed to say controller. The host-debug .env.local.example and README
example point at the nke-controller database, Temporal namespace and
queue, and the NKTP kind-validation doc queries the controller's metrics,
logs and traces under nke-controller.

Tilt stops with a recreate-the-cluster message on a cluster that still
runs the old release cwe in cloud-workflow-engine. The kind cluster name
cwe-capi and the nico-vms bridge cwebr0 are unchanged; renaming them would
force every developer to recreate their cluster or leave a stale bridge.

Chart defaults are unchanged, so existing sites keep their names.
The nke-sbom path now installs on a fresh cluster only, and its README
says so: nothing migrates an install from an earlier revision.

Signed-off-by: Aaron Patten <apatten@nvidia.com>

* fix(dev): name the controller's local SPIFFE ID and auth doc examples nke-controller

scripts/dev-env-spire.sh registers the host-run controller under the
ServiceAccount the cluster runs it as: nke-controller when that
ServiceAccount exists in namespace nke-controller, else
cloud-workflow-engine. The kubectl examples in
docs/authenticating-to-the-api.md use Tilt's names and say what to use on a
site that still runs the old name.

The comments at the cwe-capi and cwebr0 defaults describe the deferred
rename without an internal tracker reference, which docs-check rejects.

Signed-off-by: Aaron Patten <apatten@nvidia.com>

---------

Signed-off-by: Aaron Patten <apatten@nvidia.com>
2026-10-08 16:58:11 +00:00
Jayson Du b341d97b1e feat(deploy): replace the composition generator with three hand-authored deploy paths (#812)
* feat(composition): install the CAPD e2e lane from a generated SBOM deploy path

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* refactor(build): retire nke-stack.sh install and its phase helpers

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(deploy): hand-author the capd-e2e deploy path, one release per component

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(build): per-item values and a spire chart materialiser

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* refactor(build): drop the umbrella's registry half, which nothing invoked

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(ci): install the CAPD e2e lane from deploy/capd-e2e

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* refactor(composition): drop the capd-e2e target, now hand-authored under deploy/

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* refactor(build): retire nke-stack.sh, keeping only the spire materialiser

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(ci): create the staging root before copying into it, and drop the spire release override

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* refactor: delete the generation layer

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(deploy): follow the controller chart's rename to nke-controller

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(deploy): add the capnico-e2e deploy path

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(deploy): make CAPNICo an item of the capnico-e2e deploy path

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(build): render template items against a BootstrapConfig

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(ci): let deploy-sbom.sh drive capnico-e2e as well as capd-e2e

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(deploy): carry CAPNICo's CRDs, and patch the CAPI controllers after spire

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* docs(site-bootstrap): add .Nico to the BootstrapConfig reference

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(ci): run capnico-e2e from its deploy path, with CAPNICo outside it

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(ci): default the NICo lane to its deploy path

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(deploy): drop the Helm ownership metadata from capnico-system

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(ci): run the E2E lanes when the deploy path changes

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(deploy): accept both provider blocks on the capnico-e2e lane

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(deploy): add the capnico-forge deploy path, proven on az61

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* refactor(deploy): install spire from the published chart, drop spire-chart.sh

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(deploy): stop the SPIRE webhook race failing every e2e lane

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* docs(build): mark the three SBOM scripts transitional, tracked in #873

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* build: add licence headers to the two SBOM python scripts

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* refactor(deploy): move the deploy paths under controller/deploy

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* feat(deploy): pin the controller image and the postgres digest on capnico-forge

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* docs(deploy): describe the reference run without naming the site

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(ci): pass the SPIRE attestation method #850 made required

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* docs(deploy): drop references to internal repos, docs and scripts

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(deploy): accept both provider blocks on the site path too

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* refactor(deploy): rename capnico-forge to nke-sbom

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* docs(deploy): say NICo site rather than naming the backend

Signed-off-by: Jayson Du <jaydu@nvidia.com>

* fix(deploy): pin the controller image to a build past the SPIRE change

The nke-sbom path pinned ghcr.io/dsx-ai-factory/nke/controller:v0.1.1-rc.6,
which predates #850 by nine days. #850 removed
infra.spireAttestationMethod from the cluster and node-pool APIs and moved
the choice to nodeAgent.spireAttestationMethod in this chart's own values,
so a site controller running any image built before it rejects this
checkout's nkectl with

  400 Bad Request: infra.spireAttestationMethod is required

at "creating the site cluster".

GHCR cannot supply a fix today: it publishes release tags only, and no
release has been cut past #850 -- its newest, rc.8, is revision 4c5dc9bc
from 2026-09-20, 43 commits short. NVCR publishes one build per commit,
so the pin moves there until a GHCR release catches up.

The tag is this branch's merge base with main, which means the CWE binary,
this chart and the nkectl built from this checkout all come from one
commit rather than three.

Verified on a live site controller: all ten items deploy and CWE reports
1/1 Running on this image.

---------

Signed-off-by: Jayson Du <jaydu@nvidia.com>
2026-09-23 14:44:52 -07:00