* build: bump the docker-images group across 5 directories with 4 updates
Bumps the docker-images group with 1 update in the /agent directory: golang.
Bumps the docker-images group with 1 update in the /agent/internal-scripts/docker directory: golang.
Bumps the docker-images group with 2 updates in the /cli/internal/bootstrap/controllerdeploy/manifests directory: [dsx-ai-factory/cluster-api-provider-nico/controller](https://github.com/dsx-ai-factory/cluster-api-provider-nico) and rancher/local-path-provisioner.
Bumps the docker-images group with 1 update in the /deploy/nico/capnico directory: [dsx-ai-factory/cluster-api-provider-nico/controller](https://github.com/dsx-ai-factory/cluster-api-provider-nico).
Bumps the docker-images group with 2 updates in the /management-engine directory: golang and distroless/static.
Updates `golang` from `9578611` to `2920bb1`
Updates `golang` from `5c3e9b4` to `d9b6a1b`
Updates `dsx-ai-factory/cluster-api-provider-nico/controller` from v0.0.45 to v0.1.0
- [Release notes](https://github.com/dsx-ai-factory/cluster-api-provider-nico/releases)
- [Changelog](https://github.com/dsx-ai-factory/cluster-api-provider-nico/blob/main/CHANGELOG.md)
- [Commits](https://github.com/dsx-ai-factory/cluster-api-provider-nico/compare/v0.0.45...v0.1.0)
Updates `rancher/local-path-provisioner` from v0.0.31 to v0.0.37
Updates `dsx-ai-factory/cluster-api-provider-nico/controller` from v0.0.45 to v0.1.0
- [Release notes](https://github.com/dsx-ai-factory/cluster-api-provider-nico/releases)
- [Changelog](https://github.com/dsx-ai-factory/cluster-api-provider-nico/blob/main/CHANGELOG.md)
- [Commits](https://github.com/dsx-ai-factory/cluster-api-provider-nico/compare/v0.0.45...v0.1.0)
Updates `golang` from `9578611` to `2920bb1`
Updates `distroless/static` from `18f4cc2` to `25ac8f0`
---
updated-dependencies:
- dependency-name: golang
dependency-version: 1.27.3
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: docker-images
- dependency-name: golang
dependency-version: 1.27.3-bookworm
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: docker-images
- dependency-name: dsx-ai-factory/cluster-api-provider-nico/controller
dependency-version: v0.1.0
dependency-type: direct:production
dependency-group: docker-images
- dependency-name: rancher/local-path-provisioner
dependency-version: v0.0.37
dependency-type: direct:production
dependency-group: docker-images
- dependency-name: dsx-ai-factory/cluster-api-provider-nico/controller
dependency-version: v0.1.0
dependency-type: direct:production
dependency-group: docker-images
- dependency-name: golang
dependency-version: 1.27.3
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: docker-images
- dependency-name: distroless/static
dependency-version: nonroot
dependency-type: direct:production
dependency-group: docker-images
...
Signed-off-by: dependabot[bot] <support@github.com>
* build: re-vendor CAPNICo v0.1.0 and local-path-provisioner v0.0.37
The image-only bump moved the tags but left every companion pin behind,
which the repository's own guard tests caught.
CAPNICo v0.0.45 -> v0.1.0 is a provider bump, not a digest refresh: the
release ships a NicoIdentity CRD and controller, operatingSystemID on
NicoMachine, primary DPU machine ID, failure-domain status backfill and
Cluster API v1.13.6. Re-vendor capnico.yaml from the v0.1.0
infrastructure-components.yaml asset so the CRDs and RBAC match the
image, re-apply the one NVKE-local edit (the manager's
--reboot-annotation and --repair-annotation arguments, which upstream
does not set), and regenerate the embedded copy and the stack template
with `make -C cli capnico-manifest`.
Move the pins that decide what actually runs: bootstrap-manifest.yaml
holds the digest the default offline install uses, so a tag bump without
it leaves v0.0.45 running. The digest is the multi-architecture index's,
confirmed against the registry.
local-path-provisioner v0.0.31 -> v0.0.37 the same way. The file
declares itself verbatim from the upstream release, and v0.0.37 adds a
health port, startup/liveness/readiness probes, a HEALTH_PORT variable
and fully qualified image names that an image-only edit left out.
Also move the references neither Dependabot nor the guard tests watch:
LOCAL_PATH_PROVISIONER_VERSION, the e2e stack's manifest URL, and the
docs that name either version. NicoIdentity is now served by the release
the install deploys, so that note changes with it.
controller/deploy/capd-e2e/capnico-crds/capnico-crds.yaml and
controller/go.mod are deliberately untouched: those track the Go module
ref, which is a separate bump.
Signed-off-by: Terry Howe <thowe@nvidia.com>
* fix: address review feedback
The FAQ pointed at a releases/download URL for the local-path-provisioner
manifest, which 404s: the project publishes no release assets. Use the
tagged raw path instead, the one the vendored manifest header and
deploy/nvke-deploy-local.sh already use.
Signed-off-by: Terry Howe <thowe@nvidia.com>
* fix: address review feedback
Check that cert-manager is ready before the bootstrap applies CAPNICo. v0.1.0 is the first CAPNICo release whose manifest creates cert-manager Certificate and Issuer resources, and installCAPICore skips clusterctl init, and with it cert-manager, on a kept cluster that already runs CAPI.
Update the Helm install example to chart 0.1.0 to match the clusterctl path.
Signed-off-by: Terry Howe <thowe@nvidia.com>
* fix: address review feedback
Signed-off-by: Terry Howe <thowe@nvidia.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Terry Howe <thowe@nvidia.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* 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>
Spans (the run's root span and its HTTP client spans) are exported to the same OTLP endpoint as the log records. bootstrap site takes --otlp-endpoint and --otlp-insecure, and points the temporary controller in the bootstrap cluster at the same endpoint so its spans join the run's trace. OTEL_EXPORTER_OTLP_HEADERS are now also given to the temporary controller, in a 0600 values file and not a command-line argument, and are masked in nvkectl's output, exported telemetry and diagnostics.
Signed-off-by: Anisha Gupta <anisgupta@nvidia.com>
* feat(controller): allow dev control planes without a VIP
Closes#1892
Signed-off-by: Steven Zhang <stevenzhang@nvidia.com>
* docs: clarify no-VIP development guidance
Signed-off-by: Steven Zhang <stevenzhang@nvidia.com>
* docs: document accepted no-VIP rollout behavior
Signed-off-by: Steven Zhang <stevenzhang@nvidia.com>
* test(e2e): fit CAPD control planes to local memory
Signed-off-by: Steven Zhang <stevenzhang@nvidia.com>
---------
Signed-off-by: Steven Zhang <stevenzhang@nvidia.com>
* feat: add nico bootstrap testing
Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
* fix: port the nico e2e lane to the current bootstrap design
Finish the rebase of the nico e2e work onto site-bootstrap-capnico, which
left it half-applied.
- Keep the controller profiles image (NVKECTL_CONTROLLER_PROFILES_IMAGE),
the OS-independent config profile source, with its tests and docs.
- Drop the tenant credentials Secret hook: bootstrapTenant supplies the
login and bootstrap site creates the Secret.
- run-nico.sh: OVN instead of Calico, bootstrapNico/bootstrapTenant/
bootstrapReleases in the site spec, the fixture release pair for the OS
profile, nvke names, and checks that the ClusterRelease and the tenant
Secret reached the bootstrap cluster.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
* fix: rebase fixes to schema and other bits
Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
* feat: 3 node nico bootstrap succeeds
Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
* fix: nico always requires a VIP
Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
* fix: rebase fixes
Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
* fix: spire updates for nico 3 node bootstrap
Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
* feat: nico e2e hardening
Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
* feat: nico e2e hardening
Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
* fix: local agent review
Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
* fix: update OVN version
Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
* feat: add nico e2e run
Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
* fix: docs update
Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
* fix: linter errors
Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
* fix: rebase after var rename
Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
* fix: code review fixes
Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
* fix: source shared lib
Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
* fix: use NVKECTL_NVKE_CONTROLLER_ instead of NVKECTL_CONTROLLER_
Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
* fix: coderabbit review update
Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
* fix: code rabbit review
Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
* fix: docs update
Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
---------
Signed-off-by: Patrick Christopher <pchristopher@nvidia.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
* feat(nvkectl): name the controller image flag and settings nvke-controller
nvkectl bootstrap site reads the NVKE controller image from
--nvke-controller-image and its deploy settings from
NVKECTL_NVKE_CONTROLLER_{IMAGE,PORT,HELM_TIMEOUT,READY_TIMEOUT,TEMPORAL_CHART,
SPIRE_CHART,SPIRE_CRDS_CHART}. The earlier names (NVKECTL_CONTROLLER_* and
NKECTL_CONTROLLER_* from the cli/v0.2.0 release candidates, NKECTL_CWE_* from
cli/v0.1.x) are never read: one set without its replacement stops the command
and names the replacement; one set beside it logs a warning.
--controller-image is no longer a flag.
Signed-off-by: Aaron Patten <apatten@nvidia.com>
* docs(site-bootstrap): require cli/v0.2.0 for the custom base OS bootstrap example
Signed-off-by: Aaron Patten <apatten@nvidia.com>
* fix(nvkectl): drop the check for earlier controller setting names
bootstrap site reads only NVKECTL_NVKE_CONTROLLER_* and --nvke-controller-image. The earlier NKECTL_CWE_*, NKECTL_CONTROLLER_* and NVKECTL_CONTROLLER_* names were only ever used inside NVIDIA, so they are ignored rather than stopping the command or drawing a warning.
Signed-off-by: Aaron Patten <apatten@nvidia.com>
* docs(cli): regenerate the bootstrap site reference for --nvke-controller-image
Signed-off-by: Aaron Patten <apatten@nvidia.com>
---------
Signed-off-by: Aaron Patten <apatten@nvidia.com>
* test(chart): assert default, legacy-pinned and greenfield renders separately
chart-identity-assertions.py asserted the legacy names against the default render, so moving a default and keeping an existing install on its names could not be told apart. It now renders three scenarios, each with its own expectations: the chart's defaults, hack/testdata/chart-legacy-pinned-values.yaml, and a renamed greenfield install.
A default that moves now changes DEFAULT only. A pin that stops holding the old name fails the legacy-pinned render. The management namespace check is folded into the scenarios, and every check runs so a failure shows which render it was.
Signed-off-by: Terry Howe <thowe@nvidia.com>
* feat(chart)!: default nameOverride and the controller config ConfigMap to nvke-controller
A new install now gets nvke-controller for the Deployment, Service and every object named from the fullname, and nvke-controller-config for the settings ConfigMap. The ServiceAccount, the ServiceMonitor and the nke-rbac objects keep their names; they move separately.
BREAKING CHANGE: an install that predates this must set nameOverride to cloud-workflow-engine and controllerConfig.name to nke-controller-config before it takes this chart. The Deployment's spec.selector is immutable, so an upgrade that moves nameOverride fails, and the ConfigMap rename orphans the live object. hack/testdata/chart-legacy-pinned-values.yaml lists the pins.
The default scenario of chart-identity-assertions.py moves to the new names and the legacy-pinned scenario does not. The chart scripts, the chart test and the e2e helpers that select the ConfigMap by name follow the default; nvke-auth-demo.sh takes it from NKE_CONTROLLER_CONFIGMAP.
Signed-off-by: Terry Howe <thowe@nvidia.com>
* style: gofmt map literal alignment in oidc site_test
Signed-off-by: Terry Howe <thowe@nvidia.com>
* feat(chart)!: default the SPIFFE service path segment to nvke-service
A new install issues the controller the ID spiffe://<trust domain>/nvke-service/<service account>: the chart's default RBAC subjects, the ClusterSPIFFEID and the SPIRE admin ID now agree on nvke-service. The CLI bootstrap, the deploy path, the e2e stacks, Tilt and the e2e helpers that name the controller's ID follow.
BREAKING CHANGE: an install that predates this must set spiffe.servicePathSegment to nke-service and keep its ClusterSPIFFEID and SPIRE admin ID on /nke-service/. Node agents from before the nvke rename admit only that path, and the controller dials every node with one SVID, so moving it on such a site breaks controller-to-node mTLS.
chart-identity-assertions.py checks each scenario's SPIFFE subjects against its segment: nvke-service by default, nke-service in the legacy-pinned render.
Signed-off-by: Terry Howe <thowe@nvidia.com>
* fix: address review feedback
Name the auth demo's controller ConfigMap setting NVKE_CONTROLLER_CONFIGMAP, the prefix AGENTS.md requires for settings that name the controller. Show the default SPIFFE subjects in the chart README under spiffe.servicePathSegment instead of a fixed /nke-service/.
Signed-off-by: Terry Howe <thowe@nvidia.com>
---------
Signed-off-by: Terry Howe <thowe@nvidia.com>
The site spec describes the site, so it can be committed and used unchanged
on any machine. Credentials and machine-local file paths now come from the
environment of the command that needs them, and fields nothing consumed are
removed. A spec that still sets a removed field fails to load, and
generate sitespec --set refuses it, naming the replacement.
- spire.caCertFile/caKeyFile -> NVKECTL_SPIRE_CA_CERT_FILE/_KEY_FILE, with
spire.upstreamCA: true recording that the site uses the CA; with it every
run requires the variables, so none falls back to a self-signed root
- SPIRE_CA_CERT_FILE/SPIRE_CA_KEY_FILE are refused, naming their replacements
- controllerStack.nico.tokenFile -> NVKECTL_NICO_TOKEN
- controllerStack.tenant -> NVKECTL_NODE_USER, NVKECTL_NODE_PASSWORD
- controllerStack.database.passwordFile -> NVKECTL_DATABASE_PASSWORD; the
render no longer generates and writes a password file, and the
removed-field error names the old file whose contents to use
- controllerStack.nktpValuesFile -> nvke-deploy.sh --values-for nktp=<file>
- registry block, --registry-api-key and REGISTRY_* overrides removed: no
code read them; private image pulls use nerdctl login
- validate sitespec checks the environment; bootstrap site logs the CA paths
- CI harnesses and docs follow the same inputs; the bootstrap e2e asserts a
supplied CA is the root SPIRE publishes
Signed-off-by: Abhinav Pandey <abhinavmpandey08@gmail.com>
The generated Postgres password went to helm as --set-string arguments, so a
failed install printed it in the error, and it showed in the host's process
list. The controller chart also put it into the controller pod's spec, so the
diagnostics bundle held it.
The password now goes to each install in a values file created 0600, not on
the command line. The controller is installed with secrets.createDbSecret=true,
so its pod reads the database URL from a Secret and the pod spec never holds
it. The command an error prints is still masked for any registered credential.
As a backstop the diagnostics bundle is scrubbed before it is published, by a
shared redact package: registered credentials, and the password in any
database URL. The dump goes into a private temporary directory outside
--diagnostics-dir, which is the only thing the scrub reads or rewrites, and
only regular files that were scrubbed are copied into place. A file already in
--diagnostics-dir is left exactly as it was, and the bundle is never written
through a symlink or a non-directory already under it. Nothing unscrubbed is
ever written there, and the temporary directory is always removed; if it
cannot be, its path is logged. A file the scrub cannot clean is withheld, not
published. A directory it cannot read and a root that is not a directory are
reported, and a symlinked root is followed.
Signed-off-by: Anisha Gupta <anisgupta@nvidia.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
nvkectl does not read the NKECTL_CWE_* names that nkectl cli/v0.1.x used for the controller deploy settings. bootstrap site now stops before doing any work when one is set without its replacement, naming the replacement, and warns when the replacement is set. The e2e harness passes only the NVKECTL_* image variables.
Signed-off-by: Aaron Patten <apatten@nvidia.com>
* refactor(controller)!: remove control-plane controller flag and node-pool control plane path
Control planes are always provisioned by the control-plane controller.
Remove PROVISION_CONTROL_PLANE_WITH_CONTROL_PLANE_CONTROLLER, the flag-off
node-pool provisioning branches, and the e2e plumbing that toggled it. Run the
control-plane migration unconditionally on worker boot.
Signed-off-by: Eric Staples <estaples@nvidia.com>
* refactor(controller): remove unused NodePoolUpgradeConfig provider capability
The control-plane reconciler no longer resolves node-pool upgrades, so the
capability, its capi and nico implementations, and the factory that
GetProviderClient ran on every resolve have no callers.
Signed-off-by: Eric Staples <estaples@nvidia.com>
* refactor(controller): count surge nodes from the in-memory control plane
reconcileNodesNeedingRollout re-listed the cluster's control-plane nodes to
count controller-managed ones, duplicating the list readControlPlane already
loaded for the same reconcile.
Signed-off-by: Eric Staples <estaples@nvidia.com>
* fix(controller): guard nil controlPlaneConfig before reading desiredCount
Signed-off-by: Eric Staples <estaples@nvidia.com>
* docs(controller): tighten MigrateControlPlaneToController doc comment
Signed-off-by: Eric Staples <estaples@nvidia.com>
* fix(controller): skip clusters with no snapshot source in the migration leftover check
A non-deleting cluster with no configuration_id whose only control-plane
pools are deleting cannot be snapshotted, so its pooled nodes stayed pooled
and tripped the fail-closed check, blocking worker startup.
Signed-off-by: Eric Staples <estaples@nvidia.com>
* test(controller): cover MigrateControlPlaneToController against Postgres
The re-parent, deprecated-generation and cleanup SQL is Postgres-only and had
no coverage. The test runs it on a fresh database named by
NVKE_TEST_POSTGRES_DSN and skips when that is unset.
Signed-off-by: Eric Staples <estaples@nvidia.com>
* fix(controller): warn for each cluster the control-plane migration skips
A non-deleting cluster with pooled control-plane nodes, no configuration snapshot and no active control-plane pool has nothing to migrate from, so the leftover check skips it. Log a warning per skipped cluster with its ID, name and pooled node count so the skip is visible.
MigrateControlPlaneToController now takes a logger.
Signed-off-by: Eric Staples <estaples@nvidia.com>
* test(controller): use the nvke name in control-plane test fixtures
name-check rejects the legacy product name in new lines.
Signed-off-by: Eric Staples <estaples@nvidia.com>
---------
Signed-off-by: Eric Staples <estaples@nvidia.com>
* feat(cli): pin fleet OIDC providers during site bootstrap
Put optional cluster.oidcProviders on the site spec and merge them into the controller Helm values before the single install, so the site API server receives those issuers. Leave the list unset for today's behavior, and reject a list when Kubernetes is older than 1.34.
Signed-off-by: Vignesh Goutham Ganesh <viganesh@nvidia.com>
* refactor(cli): pass site OIDC providers in a second Helm values file
Leave the embedded controller values untouched. When the site spec sets providers, append a values file that only contains oidc.providers so the PEM stays out of --set.
Reject an issuer that is not https, and a caBundle that is not a PEM certificate, before bootstrap continues.
Signed-off-by: Vignesh Goutham Ganesh <viganesh@nvidia.com>
---------
Signed-off-by: Vignesh Goutham Ganesh <viganesh@nvidia.com>
* feat(cli): render a deploy path for the site the site spec describes
nvkectl render deploy-path copies a deploy path and resolves it for the
site: the controller, SPIRE, PostgreSQL and Temporal items get a
site-values.yaml built from the site spec's controllerStack section (the
database password, the OIDC discovery URL, the SPIRE server address and
identity, the controller's admin ID, the TPM attestor checksum, the
bootstrap CA, a registry mirror), template items are rendered with Go
text/template and become manifest items, and site.env names the site.
Secrets are read from the files the spec names and written into the
result, so it is created 0700 and is for one install. The executor
installs the result with no --config. deploy-test joins the merge gate
with the executor's dry-run suite; the executor stops on a parser
failure instead of installing nothing.
Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>
* docs(cli): name the item list file by its current name
Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>
* fix(cli): review fixes for the site render
A rendered tree installs from anywhere: a committed chart.path is written
absolute, and the executor takes an absolute chart.path as is. Secrets
holding a quote, a backslash or a control character are refused by
field, since the templates carry no escaping. spire.ca*File resolve from
the working directory, as bootstrap site reads them. The OIDC domains are
read from the overlay as YAML, so a comment inside the list no longer
truncates it. --out is created first with Mkdir, so an existing directory
is left alone, and --out inside the deploy path is refused. A manifest
item's image: rejects a digest. nktpValuesFile without an nktp item is a
problem. The bootstrap's TPM checksum lookup calls the exported one. The
test suite's mode check is portable and its order check can fail.
Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>
* fix(cli): refuse a checkout path with whitespace in the render
The rendered chart.path is one unquoted token for the deploy path reader,
so a checkout under a directory with a space rendered and then failed at
install time. The render now reports it. The --out guard resolves symlinks
before comparing with the deploy path.
Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>
* refactor(cli): export the TPM attestor checksum lookup as is
Rename tpmPluginChecksum instead of wrapping it; the render tests for an
empty checksum like the bootstrap does.
Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>
* fix(cli): refuse unknown item types and whitespace in absolute chart paths
Items accepts only the four types the executor dispatches. The whitespace
check covers an absolute committed chart.path too. The nested --out test
runs on a copy of the deploy path.
Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>
* feat(cli): keep the database password in the operator's file only
controllerStack.database.passwordFile is required. A missing file is
created with a generated password, 0600. The rendered tree holds no
db-password copy.
Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>
* feat(deploy): reference the SPIRE CA with chart.setFile instead of copying it
A helm item's release.yaml takes chart.setFile: <helm key>=<absolute path>
entries the executor passes as --set-file. The render points the spire
item at the operator's CA files; spire/site-values.yaml holds no PEM.
Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>
* feat(cli): name the credential files of a rendered deploy path
The render lists the files under --out that hold a credential and writes
a .gitignore that ignores the tree, so the operator knows what to delete
and a repository does not pick it up by accident.
Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>
* feat(cli): refuse a rendered deploy path under a shared temp directory
--out under /tmp, /var/tmp, their /private forms or the process temp
directory is refused before anything is written. Tests opt out through
RenderOptions.AllowTempOut; the deploy suite through
NVKECTL_RENDER_ALLOW_TEMP_OUT=1.
Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>
* fix(cli): keep temporal's passwords under a mirror and refuse incomplete site values
A mirror merges into temporal's server values instead of replacing them.
The render refuses a missing profiles image when the deploy path enables
profiles.image, an empty secret file, a template value the templates
cannot carry, an image override with no tag or digest, a template item
with no template, and an item named . or ... A symlinked deploy path is
resolved; copied files keep their owner exec bit.
Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>
---------
Signed-off-by: Lia Campbell <liac@nvidia.com>
The controller now takes the 61 settings nke-controller-config carries
from the mounted file only. Each config.Config field that moved trades
its env tag for a controllerconfig tag naming its config.yaml key, and
controllerconfig.LoadStartupConfig fills them at startup from the file
CONTROLLER_CONFIG_PATH names, which is now required. The chart stops
setting the 61 variables, and config.Validate checks only what the
environment still supplies; the file validates the rest when it loads.
With no tracing.endpoint in the file, the controller falls back to the
OTEL_EXPORTER_OTLP_* variables the OpenTelemetry Operator injects, as
it did before. The exporter gets the endpoint as a URL whose scheme
carries the resolved transport, so an injected http:// endpoint cannot
downgrade a secure tracing.endpoint, and an https:// one stays secure.
Host-local runs and the gofail e2e worker start from
hack/local-controller-config.yaml. The e2e helpers that toggled OIDC
and permissive mode on the Deployment now edit nke-controller-config
and restart the controller.
Rolling back across this change needs the chart and the image rolled
back together: an older image under this chart runs on Go defaults for
every setting the chart no longer passes.
Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@nvidia.com>
The publish workflows push nvke-controller, nvke-agent, nvke-agent-deb,
nvkectl, nvke-controller-chart and nvke-os-image-* ; the controller
Makefile default, the docs, the CLI help and the tests follow. The NICo
overlay keeps its pinned nke-controller tag until a release tag exists
under the new name, and the allowlist entry narrows to that pin and the
pull secret.
Closes#1519
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
* 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>
GitHub's release downloads answer 5xx now and then, and one failed fetch in `helm upgrade --install --repo` ends the site bootstrap. Repeat the command up to three times when helm reports a 5xx on the download; other failures return at once.
Signed-off-by: Davanum Srinivas <dsrinivas@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>
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>
The repository was renamed from dsx-ai-factory/nke to dsx-ai-factory/nvke
on 2026-10-10. Its id is unchanged, so guards, rulesets, environments and
the OIDC subject carried over, and GitHub redirects the old URLs. The
tree still named the old repository where the name is a contract rather
than a URL: the module lines of the 12 Go modules and about 1,700 import
lines, the proto go_package (embedded in node_agent.pb.go, regenerated
here), both THIRD_PARTY_NOTICES.md files (regenerated), the lint
local-prefix and depguard entries, ldflags, the go-licenses ignore lists,
the documented repository URLs and gh commands, and the
ghcr.io/dsx-ai-factory/nke image paths in workflows, the chart default
and the e2e defaults.
Only the organisation and repository segments change. Directories,
identifiers, binary, image, chart, package, label, namespace and
environment variable names, the CODEOWNERS team slugs and CHANGELOG.md
stay as they are.
Closes#1448
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
The bootstrap's ephemeral Kind cluster creates and uses the database
nke-controller, as the Tilt and e2e deploy paths do after #1271. nkectl's
controller values set appDb.dbName to nke-controller, and an embedded
postgres-values.yaml replaces the Postgres chart's init-cwe.sql so it creates
that database. init-temporal.sql and the chart defaults are unchanged.
Signed-off-by: Aaron Patten <apatten@nvidia.com>
* feat(nkectl): read NKECTL_CONTROLLER_* settings, keep NKECTL_CWE_* as deprecated names
nkectl reads the seven controller settings (image, port, helm and ready
timeouts, Temporal/SPIRE/SPIRE CRDs chart locations) as NKECTL_CONTROLLER_*.
The NKECTL_CWE_* names still work for one release: when only the old name is
set, nkectl uses it and logs a warning naming the replacement. Order: flag,
new name, old name, default.
`make -C cli images` reads CONTROLLER_IMAGE and still reads CWE_IMAGE with a
warning. The forge e2e harness sets both image names so a staged published
nkectl, which reads only the old name, still gets the image.
Signed-off-by: Aaron Patten <apatten@nvidia.com>
* docs(nkectl): spell out how cli/Makefile resolves CONTROLLER_IMAGE and CWE_IMAGE
Signed-off-by: Aaron Patten <apatten@nvidia.com>
---------
Signed-off-by: Aaron Patten <apatten@nvidia.com>
Rename cli/internal/bootstrap/cwedeploy to controllerdeploy, cli/internal/cwe
to cli/internal/controller, clients.CWEClient and CWEClientFn to
ControllerClient and ControllerClientFn, and the bundled cwe-values.yaml and
cwe-nodeport.yaml to controller-values.yaml and controller-nodeport.yaml.
Update every path-bound reference: the cli/Makefile ldflag that stamps
capiVersion, the CAPD e2e path filters, the root Makefile's provider manifest
change detection, the regenerated provider manifest header, README links and
path comments. No behaviour change.
Signed-off-by: Aaron Patten <apatten@nvidia.com>