* 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>
* 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>
* 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>
- add an optional DSX IMDS fixture using the real SPIRE plugins
- build the agent plugin into local nodes and emulate NICo host identity
- exercise TLS/JWT exchange and optional external mTLS with local certificates
- install the mock exchange CA only for the enabled local test path
- install packaged CNI manifests after kubeadm init in local node images
Signed-off-by: Vivin Wilson <vwilson@nvidia.com>