mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-07 04:35:58 +08:00
pull-request/2575
64
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
a014a8280b |
fix(deploy): retry a chart download refused with a 429 or a 6xx (#2553)
On 2026-11-30 and 2026-12-01 GitHub's release downloads refused chart downloads with "618 jwt:expired". helm_install retried only a 5xx, so the install failed at the first try and the CI job failed with it. The cause of the 618 is not known. helm_install now retries a 429 and a 6xx too. It makes up to 4 tries, not 3, and waits 5, 20 and 60 seconds between them, not 5 each time. In one job the download worked again a second after the fault, so the first wait stays short. In another job the same chart failed four times in 3.5 minutes, so the later waits are longer. The log line names the code and the wait. The worst case for one chart is 85 seconds of waiting before helm's error and exit code are returned. A fault that lasts longer still fails the install. An install that passes can wait that long for each chart it downloads: 255 seconds for the three charts of the e2e deploy paths. That stays inside the 15 minutes that deploy-stack.sh waits for the controller chart's CRDs. The deploy tests run the install against a stand-in helm and sleep. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> |
||
|
|
55f98ca375 |
build: bump the docker-images group across 2 directories with 1 update (#2290)
Bumps the docker-images group with 1 update in the /controller/deploy/k8s/capi-spiffe-exec-auth directory: alpine. Bumps the docker-images group with 1 update in the /deploy/launchlayer/capll directory: alpine. Updates `alpine` from 3.24.3 to 3.24.4 Updates `alpine` from 3.24.3 to 3.24.4 Updates `alpine` from 3.24.3 to 3.24.4 Updates `alpine` from 3.24.3 to 3.24.4 --- updated-dependencies: - dependency-name: alpine dependency-version: 3.24.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: docker-images - dependency-name: alpine dependency-version: 3.24.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: docker-images ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
a83ace8713 |
refactor(controller): render the release CRDs from the controller chart (#2350)
* refactor(controller): render the release CRDs from the controller chart The NVKE controller and management-engine no longer share CRDs, so the nvke-crds subchart only added a helm dependency build step. Render the three release CRDs from the controller chart's own files/crds and remove the subchart, its Chart.lock and the build plumbing around it. Signed-off-by: Miancheng Lin <mianchengl@nvidia.com> * fix(controller): address review of the chart-owned release CRDs Embed the controller chart file by file, so a stale charts/nvke-crds-*.tgz in an existing checkout is not embedded and rendered a second time. Point the generated-CRD check at the generator's fixed output path instead of the overridable CHART. Keep the .gitignore entries for built chart dependencies and dist/, which existing checkouts and the CLI build still use. Signed-off-by: Miancheng Lin <mianchengl@nvidia.com> --------- Signed-off-by: Miancheng Lin <mianchengl@nvidia.com> |
||
|
|
534e033790 |
feat(e2e): add a third DSX datahall for the GB300 lane (#2302)
* feat(e2e): run the GB300 datahall through the qualify-e2e lane Adds datahall-3, the GB300 stream that selects it, and a label to run it, through stage full. Every machine the datahall owns is an arm64 GB300 NVL72 tray with no DPU, which sets it apart from the other two DSX datahalls in three ways, and the harness now handles each: - Its VPC is FLAT. A host with no managed DPU can only be placed in a FLAT VPC, which has no prefix; NiCO attaches the instance itself when the create carries autoNetwork. dsx.yaml declares `autoNetwork: true` in place of `vpcPrefixID`. The site node is created that way and its address read from the NiCO machine, and the tenant's control plane and workers are NicoMachines with `autoNetwork: true` and no interfaces. A pool that names a prefix as well is refused. - It mints tokens from a Keycloak realm on its own API host, not from SSA. `issuerPath` names the realm's issuer base. A realm has no `carbide` scope and answers a request for one with 400 invalid_scope, so a datahall with an issuerPath asks for no scope, both when the suite mints and in the client CAPNICo is handed, and the nico-credentials template writes `scope` only when there is one. A token is reused until a minute before the issuer's expires_in, capped at the old five minutes. - Its API is served under a private CA, DSX_<DATAHALL>_CA_CERT. The suite's API and token clients trust it beside the roots they already have, and CAPNICo gets it as `ca.crt` in nico-credentials, base64 in `data` so the PEM renders on one line through either renderer. nvkectl's template context gains the field, left empty. dsx and dsx-arm64 leave the new stream out, and a new dsx-gb300 scope names it. The qualify-e2e-dsx-gb300 label runs that scope at the dsx environment's stage, without changing QUALIFY_E2E_SCOPE. A datahall that declares none of this behaves exactly as before. Signed-off-by: Jayson Du <jaydu@nvidia.com> * fix(ci): withhold the DSX API hosts from artifacts and the job log A DSX API host names its datahall, which is why the workflow takes it as a secret. But GitHub masks a secret only in the job log, and only in the form it was stored in, so the host still reached three places: - run-inputs.txt, an uploaded artifact, printed the datahall-1 and datahall-2 api rows in full. The resolved-inputs table now withholds DSX_*_API by shape, as it already does the jump hosts and the join token. - The withhold step scrubbed only the jump hosts and SSA_ISSUER from the log and reports it uploads. It now finds DSX_*_API too, and the suite's own redaction of the archives it writes takes the same values. - An error can name a host without its scheme, as a DNS lookup or a certificate mismatch does, and that is not the form the secret was stored in. Each withheld value is now also scrubbed as its host alone, and the run step masks those hosts in the job log, which a public repository publishes. Matched by shape, so a datahall added later is withheld without editing a list. Signed-off-by: Jayson Du <jaydu@nvidia.com> * build: update CAPNICo to v0.3.0-rc.1 v0.3.0-rc.1 is the first CAPNICo release with NicoMachine autoNetwork (dsx-ai-factory/cluster-api-provider-nico#279), which a FLAT VPC needs: without it CAPNICo cannot place a machine there, and a host without a managed DPU can join no other kind. capnico.yaml's header now says so, so the pin is not moved below it. NicoMachine and NicoMachineTemplate gain autoNetwork and phoneHomeEnabled and no longer require interfaces, and NicoIdentity gains a next-check time. Nothing else in the manifest changes apart from the image. Re-vendor capnico.yaml from the v0.3.0-rc.1 infrastructure-components.yaml asset, re-apply the two nvke manager args, and copy it into the embedded manifests with `make -C cli capnico-manifest`. The body is the asset byte for byte apart from those args. Move the pins that decide what runs: release.yaml, and the bootstrap manifest's ref and digest. The digest is the multi-architecture index's (amd64 and arm64), read from GHCR. The tests that pin them and the docs that name the deployed release move with them. The NicoIdentity debug page also takes rc.1's token-issuer messages: a 400 other than invalid_client, such as an unknown scope, is now AuthenticationFailed rather than ValidationFailed. controller/go.mod, management-engine/go.mod and the CRD fixtures stay at v0.1.0, so the lanes that build CAPNICo from go.mod, and gofail, keep testing v0.1.0 until the Go module follows in its own change. The clusterctl example in docs/site-bootstrap/infrastructure-providers.md also stays at v0.1.0: the rc.1 metadata.yaml lists only release series 0.0 and 0.1, so a validated clusterctl init refuses v0.3.0-rc.1. Signed-off-by: Jayson Du <jaydu@nvidia.com> * fix(ci): trim a withheld URL before taking its host host_of stripped a URL's port before its trailing whitespace, so an API stored as " https://api.example:443 " was masked and scrubbed as api.example:443, and an error naming api.example alone, such as a DNS lookup, kept the host. The provider trims the value, so that error is reachable. All whitespace now goes first: a value wrapped in newlines used to emit an empty ::add-mask:: and print the bare host on the next line of the job log. An IPv6 host also loses its brackets, as URL.Hostname drops them, so an error naming the bare address is masked and scrubbed too. Signed-off-by: Jayson Du <jaydu@nvidia.com> * test(e2e): cover the datahall CA's transport refusal and a missing issuer With a datahall CA set, New refuses a client whose transport is not an *http.Transport, because the CA cannot be added to an arbitrary RoundTripper. Options.HTTPClient now says so, and a test checks the refusal with a CA and the unchanged client without one. SSAClientFor and MintToken take the datahall's issuerPath or fall back to SSA_ISSUER. A test calls both with neither set and checks that each refuses before any exchange, naming the variable and the datahall. Signed-off-by: Jayson Du <jaydu@nvidia.com> * test(release): pin the streams each shipped DSX scope selects The scope matching tests use synthetic scopes, so nothing failed if a later DSX stream widened what a hardware label runs. The new test reads release/policy.yaml and checks exactly what dsx, dsx-amd64, dsx-arm64 and dsx-gb300 select. A DSX stream added later fails it until it is placed in those scopes on purpose. Signed-off-by: Jayson Du <jaydu@nvidia.com> * docs: say the DSX labels run stage full by default A labelled run takes its stage from QUALIFY_E2E_STAGE and falls back to full, so "at stage full" read as a pin the workflow does not have. Both qualify-e2e-dsx-gb300 rows, and the qualify-e2e-dsx row next to one of them, now say full by default. Signed-off-by: Jayson Du <jaydu@nvidia.com> * test(e2e): put the full-stage check back on one line The variable held the run environment for a CA check that has since gone, and only its Provider is read now. The line is back to what main has. Signed-off-by: Jayson Du <jaydu@nvidia.com> --------- Signed-off-by: Jayson Du <jaydu@nvidia.com> |
||
|
|
51dc0c4dae |
feat!: make apiAuth the only API authentication source (#1938)
apiAuth in nvke-controller-config becomes the only place the controller reads its API authentication configuration from. This is the breaking second step of phase 2. - The controller refuses to start when AUTH_CONFIG_PATH is set, naming apiAuth as the replacement, and passes authn.Setup only the apiAuth section. authn.Load and Options.ConfigPath stay for management-engine's --auth-config. - The chart no longer renders or mounts nvke-auth-config. It refuses apiAuth.configMap and an AUTH_CONFIG_PATH env entry by name, and a caBundlePath into the old mount, pointing at jwks.caBundle. - apiAuth.permissive requires apiAuth.enabled, in the chart and at startup. Tilt passes it only with authentication on. - controllerconfig, which decodes the apiAuth section, gets the decoder-strictness tests. - nvkectl and the token scripts keep their fallback to the authentication ConfigMap for controllers from before this change. - The e2e suite reads the enforcement mode from apiAuth alone. - The pod template carries a checksum of nvke-controller-config, so an upgrade that changes apiAuth rolls the controller without Reloader, which the NVKE stack does not install. - API authorization (#2125) counts authentication as on exactly when apiAuth.enabled is. BREAKING CHANGE: AUTH_CONFIG_PATH and apiAuth.configMap are removed. A site that managed its own authentication ConfigMap moves audiences and issuers into apiAuth.config, CA bundles into jwks.caBundle, and sets apiAuth.enabled. apiAuth.permissive without apiAuth.enabled is refused. nvkectl older than the previous step gets 401. Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@nvidia.com> |
||
|
|
c65ced3dca |
chore: remove the in-tree NKTP chart (#2300)
Signed-off-by: Vineeth Bandi <vbandi@nvidia.com> |
||
|
|
6cf775d50c |
fix(deploy): accept block-style items in nvke-deploy.yaml (#2013)
The items parser accepted only the inline form,
" - {name: x, type: manifest}", and refused the block form a
hand-edited list naturally uses. Accept " - name: x" followed by
" type: x" as well, mixed freely with the inline form, and keep the
parser strict: a block item without a type, a stray or repeated key,
or an unknown type is still a hard error. The suite checks that both
forms parse identically. Fixes #1990.
AI assistance was used to write this change.
Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com>
|
||
|
|
ef31c6efe7 |
feat(deploy): add a LaunchLayer deploy path that installs CAPLL (#2113)
* feat(deploy): add a LaunchLayer deploy path that installs CAPLL deploy/nico installs NVKE with CAPNICo. deploy/launchlayer is the same path with CAPNICo swapped for CAPLL, so a site built with NVKE's own tooling can run its tenant clusters on LaunchLayer: - capll: a template item from CAPLL v0.1.0-rc.15's release asset, whose manager flags (base URL, per-service overrides, identity Secret) are rendered from the stack config, plus a Secret get grant in nvke-system, where NVKE writes the bootstrap Secrets CAPLL reads. - nvke-base-config renders launchlayer-credentials in capll-system in place of nico-credentials. - The controller accepts launchLayer, turns the NICo grant and controllers off, and attests nodes with dsxImds. - The items the two paths share are copies of deploy/nico, held to it by a test: a file both hold must be identical unless it is one of the four LaunchLayer changes, so a pin bump in deploy/nico that misses deploy/launchlayer fails. The stack config gains an optional launchLayer object, with the client secret from NVKECTL_LAUNCHLAYER_CLIENT_SECRET. Each provider's values are required by the path that installs it, so deploy/nico and every existing stack config are checked and rendered exactly as before. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * refactor(deploy): install CAPLL from its chart on the LaunchLayer path The capll item becomes a helm item installing CAPLL's published chart, after spire, in place of a copy of its release YAML. The manager's flags reach the chart as site values, and its values add the SPIFFE exec-auth plugin and workload API socket the CAPI controllers get, which CAPLL needs to read a tenant kubeconfig once nvkeOIDCAuth is on. capll-system joins the nvke-service SPIFFE identity, and the Secret get grant in nvke-system moves to nvke-base-config, bound to the chart's ServiceAccount. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * chore(deploy): pin CAPLL's chart to 0.2.0 on the LaunchLayer path 0.2.0 labels the manager app.kubernetes.io/name=cluster-api-provider-launchlayer, as CAPLL's release YAML does, so nvkectl get providers finds a chart install. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * chore(deploy): install NKTP from NGC on the LaunchLayer path Copies deploy/nico's nktp item, which #2237 moved to NGC's public chart. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * docs(deploy): make the LaunchLayer path's image requirements readable Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * docs(deploy): trim comments on the LaunchLayer path Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * docs(deploy): keep only the LaunchLayer-specific comments in its controller overlay The rest repeated deploy/nico's overlay, which the header now points to. Values are unchanged; the rendered chart is byte-identical. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> --------- Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> |
||
|
|
d4577508bd |
feat(deploy): install NKTP from NGC (#2237)
* feat(deploy): install NKTP from NGC Signed-off-by: Vineeth Bandi <vbandi@nvidia.com> * fix(deploy): probe NGC egress in check-site Signed-off-by: Vineeth Bandi <vbandi@nvidia.com> * fix(deploy): address coderabbit comments Signed-off-by: Vineeth Bandi <vbandi@nvidia.com> --------- Signed-off-by: Vineeth Bandi <vbandi@nvidia.com> |
||
|
|
08d0bcd575 |
refactor(helm): extract shared NVKE catalog CRDs (#2166)
Extract the shared MachineImage, ClusterRelease and NodePoolRelease definitions into a catalog chart, preserving the NVKE controller’s default installation and ownership. Reuse canonical definitions across Helm, Kustomize, generation and CLI packaging. Closes #2165 Created with AI assistance Signed-off-by: Mark Stillwell <mstillwell@nvidia.com> |
||
|
|
2d65c11e98 |
fix(deploy): drop the shadowed env key and correct the profiles comment in deploy/nico (#2137)
The controller overlay defined env twice: an empty list commented as empty on this path, and the NODE_AGENT_PORT list further down. Helm keeps the last key, so NODE_AGENT_PORT was the effective value, but the file relied on that and the first comment was wrong. The empty key goes; the rendered chart is unchanged. The profiles comment said to supply the image with --values-for. Without a release, the render requires images.profiles in the stack config and stops before reading any --values-for file, as deploy/README.md says. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> |
||
|
|
ba862e2f62 |
test(e2e): move CI and dev defaults to 1.36 (#2132)
Moves CI and local development off Kubernetes 1.34, which reached end of life on 2026-10-27. The CAPD node image's kindest/node base, which supplies the kubelet and kubeadm of every container node, moves from v1.34.8 to v1.36.4. kubeadm deploys a control plane at most one minor version older than itself, so every cluster version on that base moves with it: tenant defaults to 1.36.3, and site clusters and the control-plane roll target to the base's 1.36.4. The other 1.34.2 defaults move to 1.36.3: the nico-vms entries, the sample scripts and Tilt buttons, the nvkectl smoke suite and the kind smoke lane's site spec. The upgrade test starts at 1.35.3 and upgrades to 1.36.3, and the no-VIP spec, which took its target from that chain, asks for the roll target instead. The e2e kubectl image moves to alpine/k8s 1.36.4. The local development channel keys its release under "1.36". Implements part of #2041. Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@nvidia.com> |
||
|
|
0f48a09aa9 |
build: re-vendor CAPNICo v0.1.0 and local-path-provisioner v0.0.37 (#2100)
* 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> |
||
|
|
64de058d13 |
ci: drop the dead nke-controller ghcr fallbacks and wait for the promoted image (#2066)
* ci: drop the dead nke-controller ghcr fallbacks and wait for the promoted image The nke-controller, controller and pre-rename chart packages no longer exist on GHCR, so every fallback that probed them could only fail. chart-publish.yml raced image-nvcr.yml on the same tag push and failed when it looked for the image before Promote to GHCR had created it; it now waits up to 30 minutes for the image instead. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: address review feedback Warn instead of failing the backfill when a pre-rename chart version is absent from GHCR, and correct the chart-publish header that still said the cloud-workflow-engine and controller charts stay published. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: address review feedback Tolerate a missing controller image or chart in the malware backfill only for tags older than controller/v0.3.0-rc.1, the first release on GHCR under nvke-controller. For a current tag a miss is an outage or permission error and fails the scan instead of passing without it. Signed-off-by: Terry Howe <thowe@nvidia.com> * docs: correct the nico overlay note on the pre-rename controller images The nke/controller and nke-controller GHCR repositories no longer exist; the note said they stay in place. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: address review feedback Signed-off-by: Terry Howe <thowe@nvidia.com> * chore: name the nvcr image manifest key in the allowlist note image-nvcr.yml records the published digest under component nke-controller. That key is read outside this repository, so it stays, exactly as nke-controller-chart does. The allowlist comment covering the token named only the docs record and the local build tags, which left a reader unable to tell the kept key apart from an oversight. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: address review feedback Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: Terry Howe <thowe@nvidia.com> |
||
|
|
1ce10b480c |
fix(e2e): follow up on the DSX review comments from #1879 (#2055)
* fix(e2e): follow up on the DSX review comments from #1879 Six of the seven comments Terry left after the approval on #1879, which merged before they could be folded in. The environment now keys off the stream's own provider rather than the scope it arrived in. A scope is single-provider by convention only, and this file's neighbour invites the `full` selector to come off -- the day it does, scope is `full` and every dsx leg would take `forge` and read the datahall's identifiers as empty. `matrix` is available in a job-level `environment`, and matrix.provider is already what the env block below keys PROVIDER off. render-template.py now calls numeric zero false, as Go's `if` does. A replica count or a port of 0 is the case that matters. Python would treat it as falsy anyway; spelling it out keeps the rule beside the others rather than leaving it to coincidence. Two comments in environment.go described a derivation this PR's parent removed: the API host is declared in `api` now, and nothing is derived from Key. The DSX example in the README carried a bare label filter while the prose directly above it prescribes `site-controller && !nico-forge`, and the Forge example beside it already carries its own. release/policy.yaml said DSX was a CPU substrate and that only Forge can run `full`. The first was never true of this datahall --- it is accelerator hardware that advertises no GPU model --- and the second stopped being true when nicoDSXTenant landed. The `full` selector stays on anyway, and now says why: no DSX tenant has yet reached provisioned, so taking it off would put a known-red lane into every weekly run. Not addressed: the observation that nothing enforces QUALIFY_E2E_DEPLOY_PATH_REF. deployPathRef() already derives an unset one from the controller version and fails loudly when that cannot resolve, with TestDeployPathRefFollowsTheController covering it, so the concern may be about something this reading missed. Left for Terry rather than guessed at. Signed-off-by: Jayson Du <jaydu@nvidia.com> * chore(controller): use a generic region in the identity-exchange test The last datahall name left in the tree. #1879 took the real ones out of the DSX environment and the lane so that nothing pins them to one datahall; this fixture kept `az51-dev4` as a sample region. Nothing resolves it -- exchangeSubject is a string transform and the test asserts a rewrite, so any region reads the same. The cost is to the reader: a real site in a fixture suggests the test depends on that datahall, and the two cases beside it already use a generic `capd`. `datahall-1` matches what the environment files call one. The case name loses the site too: what it covers is a DSX bare-metal node agent, not the hall it happened to be written against. Signed-off-by: Jayson Du <jaydu@nvidia.com> --------- Signed-off-by: Jayson Du <jaydu@nvidia.com> |
||
|
|
79bd55fb81 |
chore: move the nico pin and e2e default to nvke-controller (#2054)
The controller image is published to GHCR as nvke-controller from controller/v0.3.0-rc.1 onward (#1950). Until that tag existed there was nothing under the new name to point at, so these three references stayed on nke-controller deliberately. The tag now exists, so they move. deploy/nico pins a repository and a tag together, and each name holds a different span of tags, so both lines move at once: v0.2.0-rc.2 exists only under nke-controller. The comment above the block now records all three names and which tags each one holds, rather than only the #827 rename. The e2e default joins SITE_NVKE_CONTROLLER_REPOSITORY in the e2e Makefile, which already defaults to nvke-controller. A run qualifying a release cut before the rename passes the old repository explicitly, which qualify-e2e.yml already probes for and sets. Images under the older names stay in place; nothing is removed. Signed-off-by: Terry Howe <thowe@nvidia.com> |
||
|
|
2e7c973485 |
refactor(e2e): generic DSX datahall naming, a GPU site controller, and a tenant spec (#1879)
* refactor(e2e): name the DSX datahall generically, as forge.yaml does
environments/dsx.yaml named a real datahall in a file this repository
publishes. forge.yaml settled that question already: its keys are site-1 and
site-2, and which site each is lives in a variable. Its header says why --
this repository is the staging ground for a public one, and an org, site, VPC
or subnet id names infrastructure that is not.
So the key becomes datahall-1 and every DSX_<DATAHALL>_* becomes
DSX_DATAHALL_1_*.
One thing Forge did not have to solve: the DSX key doubled as the API host,
derived as carbide-rest-api-<key>.dev.dsx.nvidia.com. A generic key cannot
imply a host, so `api` carries it, is required, and the derivation is gone
rather than left as an unreachable fallback -- with it, an unset api would
dial carbide-rest-api-datahall-1, which resolves to nothing and fails as a
network error a long way from the cause.
Two tests move with it:
- the endpoint test no longer checks a derivation. It checks that the
declared host is returned, trimmed of a trailing slash and surrounding
space, and that validate names a missing api.
- TestCheckedInEnvironmentsParse asserted a site's endpoint contained its
own key, which was the guard against a site pointed at another datahall.
A generic key cannot carry that. It now asserts no two sites share an
endpoint, which is the form that hazard takes under this scheme: a
copy-paste of the wrong variable would otherwise run both streams against
one datahall, silently.
Renaming now rather than after a second datahall is added: the change is
mechanical with one site and doubles with two.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* refactor(e2e): drop the remaining datahall names from the DSX files
The previous commit removed the datahall this lane runs against and left the
ones it used to, which is the same class of information and made the rule look
arbitrary.
These were not leftovers. Each named a datahall to cite where a decision came
from: a run log confusing two datahalls' ids, the SSH timings measured during
bring-up, the day lost on 2026-10-12 to a pinned machine. The evidence is what
makes those comments worth reading.
So the dates and the measurements stay and only the names go. "ten, fifteen
and twenty-seven minutes were measured during an earlier bring-up" carries the
same weight as naming the site, and "two datahalls at one site --- dh2 and dh3
of the same one" keeps the shape of the hazard without identifying it.
Test fixtures move to datahall-1 for the same reason, including the derived
variable names they assert on.
Left alone: controller/hack/dsx-identity-exchange-mock, which uses a region in
SPIFFE IDs. Different component, and not this PR's to change.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* test(e2e): run the DSX site controller on GPU hardware
datahall-1 has no CPU machines -- all fourteen of its machines are VR
NVL72 trays -- so the instance type backing the lane binds a tray rather
than a CPU box. Declare that honestly as `provides: {machineType: gpu}`
instead of claiming cpu, and fall back to a GPU shape when a datahall
declares no CPU one, so the site is selected rather than skipped with
"no declared site offers a arm64 CPU shape".
Resolve and Place both go through matchSiteControllerType. They have to
agree on the shape -- Place's own comment says so -- and changing only
Resolve resolves a run against one type and then refuses to place it:
dsx: site "datahall-1" offers no instance type providing
{arch=arm64, machineType=cpu}; it offers datahall-1-nvke-tenant
This puts the site controller on accelerator hardware. At a datahall
whose every machine is a tray there is nothing else to put it on, and a
datahall with CPU boxes declares cpu and resolves to one, so the
fallback never fires there.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* test(e2e): build a tenant on a DSX datahall
The tenant half has only ever spoken Forge: nicoForgeSpec decodes the
environment as a Forge declaration and fails on anything else, which is
what -e2e.site-stage full refuses every other provider over.
Most of what a DSX tenant needs is already here. The nico-forge backend
is named for the provider its payloads were first written for rather
than for an API: buildNicoForgeRequest asks for an iPXE script and
pre-kubeadm commands and nothing else, both from BuildForgeNodePayloads,
which the DSX provider already renders its own site node with. The
control-plane config is prefix-based, which is DSX's model, and the
site's CAPNICo is pointed at the datahall at install time.
So this is the identifiers and the fabric, not a second backend:
- nicoDSXSpec resolves through dsxEnv rather than forgeEnv
- dsxNodePoolSpecs and dsxControlPlaneConfig drop the subnet half; a DSX
fabric is FNN and declares a prefix only, so there is no choice to make
- the entry reuses nicoForgeTenant's shape and timeouts, because the
constraint is the same one
A GB200 control plane needs no special case. Resolve fills Selection.CPU
from matchSiteControllerType, which falls back to a GPU shape at a
datahall with no CPU machine, so datahall-1 puts both roles on a tray
and a datahall that gains CPU boxes stops doing so without this file
changing.
fullStageSupported still refuses dsx, so none of this is reachable yet.
That is deliberate: a tenant create there authenticates with an SSA
token that expires in fifteen minutes and CAPNICo cannot refresh, so
letting a run through today would spend three trays to fail at the
create. The guard comes off with the credential.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* feat(e2e): give CAPNICo the SSA client rather than a token
A DSX token lives fifteen minutes. The deploy minted one and wrote it into
the Secret CAPNICo reads, where nothing refreshes it, so a site stopped
being able to create machines a quarter of an hour after an install that
needs no live authentication to finish. The failure landed on the first
tenant create, a long way from its cause.
CAPNICo has had the other path all along: SecretConfig.TokenSource takes
either a static token or tokenURL + clientID + clientSecret and wraps the
latter in oauth2.ReuseTokenSource, minting and re-minting on its own. We
were handing it the perishable output of a mint instead of the durable
input. Nothing new has to be issued -- DSX_<DATAHALL>_SSA_CLIENT_ID and
_SECRET already mint the token this replaces.
So site.Nico carries both forms, Validate takes CAPNICo's own either/or,
Credentials reports whichever field is the secret, and newDSXNicoConfig
passes the client. Forge is untouched: its API key is issued, not minted,
and stays a static token.
The branch is on tokenURL, not on token. An external render deliberately
holds no credential, so a condition on the secret reads every site as the
OAuth one and tells the operator to supply the wrong fields -- which is
what TestRender_ExternalCredentials caught. The token URL is configuration,
present exactly when the OAuth form is in use.
Two renderers had to learn the field. nvkectl's TemplateContext is a
struct, and Go evaluates the fields of the branch it takes, so an external
render failed to render at all. render-template.py rejected `if` by name;
it now resolves one level of if/else, dropping the branch not taken before
any lookup -- otherwise the empty field that made the branch false would
itself be fatal. Its output is byte-identical to text/template on the same
input. An absent field is false there, unlike a lookup, so a
BootstrapConfig written before these fields existed still renders.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* feat(e2e): let a full run build a DSX tenant
The guard refused every provider but Forge because Forge owned the only
tenant spec. DSX has one now, so the refusal was answering a question that
had changed: a DSX full run failed in BeforeAll naming a spec that exists.
The shape changes with it. It was a not-Forge test, which made the list of
providers with a tenant spec implicit in a negation; it is now the list
itself, so a provider that gains a spec is added here and one that has
none meets the same wall as before.
What the guard is for does not change. A full run takes machines through
provision, bootstrap and deploy before it reaches the tenant, so a
provider that cannot build one has to fail before the first machine is
asked for rather than forty minutes in.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* feat(e2e): check DSX allocation capacity before a full run
Opening the full stage to DSX reached the next thing behind the guard:
requireRunCapacity type-asserts a checker and refused with "provider
*dsx.Provider cannot check Forge allocation stats". Run 39747693974 died
there in 0.051 seconds, which is the check working -- no machine had been
asked for -- but it refused a datahall that can answer rather than one
that cannot.
It can answer with the same call. The datahall gates on unusedUsable the
way Forge does and reports it from the same field, so this asks the same
question of the same API; dh1 returns
{total:3 used:0 unused:3 unusedUsable:2} for the type backing the lane
today.
What differs is that a datahall with no CPU machine resolves both roles to
one instance type -- Resolve fills CPU from matchSiteControllerType, which
falls back to a GPU shape -- so the site node, the tenant control plane and
the worker all land on the same id. The demands have to sum there rather
than be checked apart, which is why the map is keyed by instance type id.
The refusal message loses its Forge wording: the limitation is that a
substrate may not be able to answer, not which substrate it is.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* ci(qualify-e2e): take the DSX identifiers from a dsx environment
The datahall's identifiers were repository-wide, which hands every pull
request in the repository access to them. They now live on a `dsx`
environment, and a job gets exactly one environment, so the DSX arm has to
select it.
Reading SCOPE would be the obvious condition and is not available: the env
context cannot be used in `environment`. The condition therefore repeats
SCOPE's own first three terms, and a change to one has to change the other.
The arm is first because the failure it prevents is a quiet one. A DSX run
that took `forge` reads every DSX_DATAHALL_1_* as empty, and an unset
identifier skips the site rather than failing the run -- by design, so a
datahall nobody has onboarded does not break everyone. Resolve then reports
"no declared site offers a arm64 CPU shape", which reads as missing
hardware rather than a missing variable, against a datahall whose hardware
is sitting there idle.
On `dsx` the job no longer sees FORGE_INSTANCE_TYPE_{CPU,GPU}_ID, which are
on `forge`. The DSX provider does not read them; they print as <unset> in
the resolved-inputs table, which is honest about what the run had.
`dsx` already permits main and refs/pull/*/merge, matching `forge`, so the
label path is unchanged. The secrets have not moved yet and are still
repository-wide.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* fix(e2e): trim every trailing slash from a DSX endpoint
TrimSuffix removes one. A value ending in "//" kept a slash, every path
the caller joined carried it, and Resolve compares endpoints as strings,
so one host written two ways read as two datahalls.
The README export block also omitted DSX_DATAHALL_1_API, so following it
verbatim left api empty and Site.validate refused the run.
Both found by review on #1879.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* ci(qualify-e2e): let a run name the deploy path ref
The deploy path is exported from the controller version, because it
carries the controller chart and the two have to agree. That is right for
a qualification and wrong while the deploy path is being changed: the
suite then renders this branch, against a template exported from a
controller that predates it.
That is what the DSX full run hit. 20-nico-credentials.yaml.tmpl branches
on .Nico.TokenURL here, newDSXNicoConfig supplies an OAuth client and no
static token, and the staged template came from the beta --- where the
branch does not exist and the only line is token: {{ .Nico.Token }}. The
render died on an empty token that nothing was ever going to set.
site.deployPathRef already covers this; its own comment says to override
it "only when developing the deploy path itself". The workflow just had
no way to set it. Empty still follows the controller, so a run that names
nothing behaves exactly as before.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* fix(ci): cover deploy-path-ref in the resolved-inputs table
The deploy-path-ref knob added `inputs.deploy-path-ref` and
`vars.QUALIFY_E2E_DEPLOY_PATH_REF` without the row that names them, so the
table's own coverage check failed the run: "the resolved-inputs table does
not cover vars.QUALIFY_E2E_DEPLOY_PATH_REF inputs.deploy-path-ref".
That check exists so a variable cannot be read without the summary saying
where its value came from. A knob the table does not name is one a reader
cannot account for, which is the thing it refuses.
It fails late -- after the Teleport join, before any machine -- so the cost
was a trigger rather than a tray.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* fix(ci): read the datahall API host from a secret, not a variable
GitHub prints job-level `env` in every step's log header, and only a secret
is masked there. The API host is an HTTPS URL whose hostname carries the
datahall's name, so as a variable it was published in clear in the log of
every DSX run -- the name this branch exists to keep out of the repository,
relocated from the source to the logs.
Observed on run 40150135758: JUMP_HOST and SSA_CLIENT_ID, both secrets,
rendered as `***`; API, SITE_ID, TENANT_ID, VPC_ID and INSTANCE_TYPE_ID,
all variables, printed their values.
The resolved-inputs row loses its variable columns to match DSX jump host,
the other secret: the summary names where a value came from, and a secret
comes from neither an input nor a variable.
The four identifiers left as variables are opaque UUIDs rather than names.
Moving them is a separate judgement about how much a site id discloses.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* feat(e2e): add a deployment stage between bootstrap and full
A site run could stop after Kubernetes (bootstrap) or run everything
including a tenant (full), with nothing between. The stack deploy and its
readiness checks only ran at full, so a tenant failure hid whether the site
controller itself had come up healthy, and any run that wanted the stack took
the machines a tenant needs.
deployment provisions the node, bootstraps Kubernetes, deploys the NVKE stack
and runs the checks that follow, then stops. It asks for one machine rather
than the two or three full needs. The tenant specs stay full-only.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* fix(qualify): let a stage variable outrank the DSX label's default
The DSX label short-circuited SITE_STAGE to provision before
QUALIFY_E2E_STAGE was read, so the only way to run the stream at a
later stage was a repository-wide QUALIFY_E2E_SCOPE, which every other
run in flight also reads. Putting the variable first lets the stage
live in the dsx environment, where a Forge run cannot see it.
The push guard stays with the variable: a tag push still qualifies the
whole thing. provision stays the label's default, so nothing changes
for a run that sets no variable.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* feat(e2e): point the DSX lane at a datahall with amd64 capacity
The datahall the lane ran on reached its nodes through a jump host that
was an instance in a second datahall, and that second one went down on
2026-10-28 with 19 of its 20 machines reporting "missing on Site". The
lane reaches every node through that host, so testing stopped even
though the datahall under test was healthy.
The datahall this moves to has the objects the lane needs and a jump
host inside the tenant VPC prefix rather than in another datahall, so
the same outage cannot repeat there. Its machines are amd64 GPU trays,
so the stream it answers is amd64, not arm64.
The stream is renamed with it: a name is the key of everything recorded
for a stream, so dsx-arm64 results and dsx-amd64 results are filed
separately rather than one silently continuing the other.
This costs the GB200 arm64 DSX coverage the previous datahall provided. No DSX datahall
found so far offers arm64.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* feat(qualify): let a stream's environment name the controller it installs
QUALIFY_E2E_CONTROLLER_VERSION feeds the plan, which runs under
ci-shared, so it is repository-wide: setting it to bring up one lane
changes what every concurrent run qualifies. There was no way to point
a single stream at a different controller.
SITE_NVKE_CONTROLLER_VERSION is read in qualify-run, after the stream
has selected its environment, so a variable consulted there can be
scoped to one datahall and stays invisible to the others.
It overrides what is installed, not what the plan records, which is the
reason the comment says so twice: a run using it reports one controller
and runs another, which is right for bringing up a lane against an
unreleased build and wrong for anything else.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* fix(qualify): give the installed-controller override a provenance row
The resolved-inputs check refuses a variable the table does not cover,
which is what it is for: a run has to be able to say where every value
came from. The new QUALIFY_E2E_SITE_CONTROLLER_VERSION had no row, so
the step failed before a machine was taken.
It reports the same resolved value as the controller-version row, and
names the variable that overrode it, so a table showing both says which
controller the plan chose and which one the node will run.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* fix(qualify): run only the tenant entry the lane can read
At -e2e.site-stage full the site lane registers one tenant entry per
infrastructure dialect and selects them with a single label filter, so
every entry reaches every run. Each entry then decodes the environment
as its own declaration, strictly: a DSX environment is "unknown field
api" to Forge's decoder, and a Forge one is "unknown field subnetID" to
DSX's. The entry that does not match fails the run rather than skipping.
Nothing has hit this yet only because the two halves have never met --
DSX has run below full, and the nightly builds from main, which carries
the Forge entry alone. Merging the DSX entry would break the Forge
nightly on its own, with no DSX run involved.
Excluded by name rather than selected by it: the site-level specs carry
site-controller and no nico-* label, so a filter requiring nico-forge
would drop the site build along with the foreign tenant. Measured on the
DSX environment at full -- site-controller selects 122 specs,
"site-controller && !nico-dsx" selects 80 and leaves only nico-forge,
and the mirror holds for the other lane.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* feat(qualify): default the DSX lane to the full stage
The qualify-e2e-dsx label carried its own provision default for two
reasons, neither of which still holds: the datahall bound one machine to
its instance type, and the suite had no DSX tenant spec, so a full run
was refused before a machine was taken. the datahall binds eight, and
the tenant spec landed with the rest of this branch.
The DSX clause is removed rather than changed to full, because the
expression already ends in full -- the clause existed only to make DSX
the exception. The variable still sits ahead of the default, so a lane
pins a shorter stage in its own environment rather than through a
repository-wide override.
The resolved-inputs table stops attributing SITE_STAGE to the label with
it. That attribution was already half wrong: the variable has outranked
the label since the ordering was fixed, so the label was not what
produced the value even when it was the trigger.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* docs(qualification): correct the DSX datahall's shape and stage
Three find/replaces in "name the DSX datahall generically" left doubled
text -- "the the DSX datahall datahall" in two files and "The DSX
datahall, the DSX datahall" in a third. TerryHowe flagged the
surrounding lines on 2026-10-24; this is the rest of that review.
The content around them had gone stale twice over. policy.yaml still
described the datahall as aarch64 Grace placing both halves of a run on
CPU machines, and environments.md still showed
`provides: {machineType: cpu, arch: arm64}`: the lane moved to a
datahall whose machines are amd64 GPU trays, and the declaration has
said `{gpu, amd64}` since. The README
told a hand-run to ask for arm64 and stage arm64 images, which is now
exactly backwards.
The stage claims went with the move: `full` is no longer refused, the
label no longer pins `provision`, and the datahall binds eight machines
rather than one. A hand-run at `full` needs the lane's own label filter
to skip the tenant entry belonging to the other provider, so the README
names it.
No behaviour changes here -- every edit is a comment, a doc, or the
README's example command.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* docs(deploy): describe how resolve_ifs actually handles nesting
The docstring claimed the pattern refuses a nested if. It does not: the
then group's negative lookahead means an outer if whose body contains an
if fails to match at that position, so search finds the inner one first.
Nothing raises, and the order is innermost-first rather than
innermost-last.
Reported by TerryHowe in review.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* fix(qualify): take the lane's environment from the plan's scope
qualify-run's `environment:` re-derived the scope from the label, the
input and the repository variable rather than reading what the plan
resolved. That is not the same rule: SCOPE in the plan job ignores
QUALIFY_E2E_SCOPE on a push, and the l40s label outranks it. Neither
precedence survived the second derivation, so a tag push -- or an l40s
label run -- with QUALIFY_E2E_SCOPE left on `dsx` by an earlier label
run would attach the `dsx` environment to a Forge stream. The lane
would then read the datahall's identifiers for a run planned against
Forge, and Forge's would be empty.
The plan already publishes what it resolved as `scope`, and `needs` is
available in a job-level `environment` even where `env` is not. One
derivation, in the job that owns it.
Reported by TerryHowe in review.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* docs(qualification): put the shape correction on the right example
7f527d3e0 set out to correct the DSX instance type's `provides` in
environments.md and edited the Forge one instead. site-2's `cpu.arm`
came out claiming `{gpu, amd64}` where forge.yaml says `{cpu, arm64}`,
and the DSX block it was aiming at still read `{cpu, arm64}` where
dsx.yaml says `{gpu, amd64}`. Each now matches the file it quotes.
The same commit told a DSX hand-run to stage amd64 OS images and then
left `<arm64 url>` in the example under that sentence.
66129fbd4 stopped the workflow selecting a tenant entry built for
another dialect, but the e2e README still showed a Forge `full` run
under a plain `site-controller` filter. That filter now reaches the
nico-dsx entry, which decodes the environment as a DSX declaration and
fails the run on "unknown field subnetID". The example excludes it by
name, as the workflow does.
The spec table said the same thing in numbers, so it was measured
again with `-ginkgo.dry-run` against this tree: at `full`,
`site-controller` selects 122 rather than 80, and the 80 belongs to
`site-controller && !nico-dsx`.
Reported by TerryHowe in review.
Signed-off-by: Jayson Du <jaydu@nvidia.com>
---------
Signed-off-by: Jayson Du <jaydu@nvidia.com>
|
||
|
|
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> |
||
|
|
c521a57310 |
fix: local site setup repairs (#1843)
* fix: cleanups from 1725 Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: code review comments from original site-bootstrap work Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: coderabbit repairs Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: back out colima auto upgrade Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: image variable passing Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix: check nerdctl image version Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> --------- Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> |
||
|
|
ddab4187b5 |
feat: read API authentication from apiAuth first (#1935)
Prepare for apiAuth in nvke-controller-config to be the only source of the NVKE API authentication configuration. Nothing here is breaking; retiring AUTH_CONFIG_PATH and the external-ConfigMap mode follows once an nvkectl with this change is released. - nvkectl, the e2e token helper and hack/nvke-token.sh read apiAuth from nvke-controller-config first and fall back to the authentication ConfigMap when the section is off or absent. - permissiveMode moves to apiAuth.permissive, beside the rest of the section and matching the Helm value. A config.yaml that still sets the top-level key is refused with an error naming the new one. - Issuers take an inline jwks.caBundle as an alternative to caBundlePath, so a private CA no longer needs a file mounted from nvke-auth-config. - Tilt and the CAPNICo e2e path render the configuration from chart values, as CAPD already does, and their nvke-auth-dev manifests drop the ConfigMap. Nothing in the repository uses apiAuth.configMap.create=false any more. - The design document replaces its phase 2 outline with the design. Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@nvidia.com> |
||
|
|
e7ebbc4b1b |
feat(controller): read chart-rendered API authentication from nvke-controller-config (#1812)
When the chart renders the API authentication configuration (apiAuth.configMap.create), the controller now reads it from an apiAuth section of nvke-controller-config instead of the file at AUTH_CONFIG_PATH. auth/authn stays the only owner of the schema: the section reuses authn.Issuer and is validated with the new Config.ValidateStartup, which authn.Load also uses. The section is required and carries an explicit enabled switch, so a missing section is a startup failure rather than "off". A section filled in but switched off is refused, and enabling it while AUTH_CONFIG_PATH is set is a startup failure. A ConfigMap managed elsewhere keeps the AUTH_CONFIG_PATH path, and the chart still renders the authentication ConfigMap for nvkectl and extraFiles. The CAPD e2e lane moves to the chart-rendered configuration; Tilt and capnico-e2e keep the external ConfigMap, so CI covers both. The e2e suite and the token and demo scripts treat either source as authentication being on, whichever name the settings ConfigMap has. The auth-mode gauge now follows whether authn.Setup built an authenticator. Also renames the remaining references to the settings ConfigMap, nke-controller-config, to nvke-controller-config, the chart's default since #1769, in docs, comments, test messages and help text. Kept: the legacy pins and fallbacks for installs that predate the rename, and the "Loaded nke-controller-config" startup log line, which the e2e OIDC site helper matches and released images still print. Includes the design doc, controller/docs/api-auth-in-controller-config-design.md. Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@nvidia.com> |
||
|
|
789a42d745 |
feat(deploy): issue the OIDC upstream CA with the NVKE subject on new sites only (#1890)
* feat(deploy): issue the OIDC upstream CA with the NVKE subject on new sites only The CA's subject still said NKE. Changing it re-issues the CA with a new private key, which invalidates the trust anchor every tenant of an existing site has embedded, and nothing distinguished a first install from a re-run of `nvkectl ... install`. Add a create-if-absent directive to the manifest-item contract: a .yaml file naming `<kind>:<name>:<namespace>` is applied only when that object is not in the cluster. The probe is a read, so it runs under --dry-run too and a dry run still describes the install that would happen; a probe that fails for any reason other than NotFound stops a real install rather than read an unanswered API server as "absent", which is the direction that re-creates the object. Split the Certificate out of oidc-upstream-ca.yaml so the two Issuers beside it, which carry no key material, keep being applied every install, and gate the Certificate on its CA Secret -- the Secret holds the key material tenants trust. Then move the subject to NVKE. Closes #1863 Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: address review feedback Name the CA certificate, not its private key, as the trust anchor tenants embed, and say what the leaf losing its chain means. Say that the gate belongs to the executor: a tool that does not read the directive applies the Certificate and re-issues the CA. Add it as step 5 of what another executor has to do, with the GitOps shape of it. Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: Terry Howe <thowe@nvidia.com> |
||
|
|
48dc309320 |
fix(chart): run the controller as an unprivileged user (#1874)
The chart defaulted podSecurityContext.runAsNonRoot to true, but the controller image had no USER and the chart set no runAsUser, so the kubelet would refuse to start the pod. Every deploy path worked around it by setting podSecurityContext to null and turning the read-only root filesystem off, which ran the controller as root everywhere. That contradicted controller/SECURITY.md, which assumes the chart's non-root and read-only-root settings are enforced. The image now declares USER 65532:65532. The chart sets the same uid explicitly, with runAsGroup, fsGroup and the RuntimeDefault seccomp profile, and the container drops every capability and disallows privilege escalation. Setting the uid in the chart rather than relying on the image covers the materialize-profiles init container too, whose operator-built content image usually has no USER. That init container now copies with cp -R, since an unprivileged cp -a fails to preserve the image's root ownership on every file, and it takes the controller container's securityContext, so it too drops every capability and runs on a read-only root. The overrides come out of the nvkectl bootstrap values and the deploy/nico, capd-e2e and capnico-e2e overlays. Tilt keeps running as root on a writable root filesystem: live_update syncs the binary into /usr/local/bin in the running container, which uid 65532 on a read-only root would refuse. Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@nvidia.com> |
||
|
|
3b1892f7f6 |
feat(nktp): upgrade opentelemetry-operator and tune collector memory budgets (#1872)
* feat(nktp): upgrade opentelemetry-operator and tune collector memory budgets Operator and monitor compatibility: - Upgrade opentelemetry-kube-stack from 0.22.0 to 0.25.1 and regenerate Chart.lock; Operator and Target Allocator move to 0.161.0. - Default the node allocator denyFSAccessThroughSMs to false, matching the large-target allocator, to support monitors with local credential files. Document migration to Secret/ConfigMap references before restricting access. Collector resources and scheduling: - Adjust resource requests, memory limits, runtime memory targets and exporter queues. Increase gateway and large-target scaling ceilings, accelerate scale-up, and rotate gateway connections every minute. - Split large scrapes with a batch processor before exporter queue admission. - Add a configurable priority class for Collector Pods and disable the node-exporter cpufreq collector to avoid hanging scrapes on affected arm64 nodes. Management-cluster gateway sizing: - Retain the 1Gi container memory limit and scale gateway memory settings to the same ratios as the base chart's 4Gi containers: GOMEMLIMIT is 384MiB (37.5%, reduced from 896MiB), and each sending queue holds 128849018 serialized bytes (12%, about 123MiB). - Keep the runtime memory target below the memory limiter's 55% soft refusal threshold. Document tuning queues and runtime targets with container limits. Dashboards and documentation: - Fix reference queries that return empty results and distinguish nodes with the same name across clusters. Clarify NKTP Health failure descriptions. - Update component, sizing and monitor-access documentation. Keep deployment sizing separate from base chart defaults. Validation: - make nktp-chart-check: 115 resources valid, none invalid or skipped. - Management-cluster overrides: strict Helm lint and schema validation pass for all 98 resources; rendered gateway queue/memory ratios verified. - Existing priority-class and per-Collector opt-out rendering verified. - make docs-check, relative documentation links and git diff --check pass. Signed-off-by: Matthew Wong <matwong@nvidia.com> * fix(nktp): require kubernetes 1.31+ since metrics-server requires it Signed-off-by: Matthew Wong <matwong@nvidia.com> --------- Signed-off-by: Matthew Wong <matwong@nvidia.com> |
||
|
|
6f84d0e01b |
feat(chart)!: move the remaining chart names, mount paths and filenames to nvke (#1818)
* refactor(controller): move the controller pod's mount paths to /etc/nvke The controller pod mounts its authentication ConfigMap, its controller-config ConfigMap and its node-agent client identity under /etc/nke. Nothing outside the pod observes any of them: the chart owns both the mount and the path it joins into AUTH_CONFIG_PATH and CONTROLLER_CONFIG_PATH, and the client identity paths are compiled constants the chart's volumeMounts match. So the three move together with no values key and nothing for an existing site to pin -- an upgraded pod simply mounts them one directory over. Moved: /etc/nvke/auth, /etc/nvke/controller-config, /etc/nvke/node-agent-client-tls and the e2e mock's /etc/nvke/dsx-identity. Not moved: the node-side paths (/etc/nke/spire.env, /etc/nke/trust-bundle.pem, /etc/nke/controller-ca.crt, /etc/default/nke-agent). Those are the node contract, they are chosen per node from the agent's version, and they belong to #1497. While here, chart-node-agent-auth-assertions.sh asserted the absence of `mountPath: /etc/nke/node-agent-tls`, a path the chart never rendered under either name, so the check could not fail. It now names the real mount. Related: #1554, #1496 Signed-off-by: Terry Howe <thowe@nvidia.com> * feat(chart)!: default the authentication ConfigMap to nvke-auth-config apiAuth.configMap.name was already a value an install can pin, so this moves only the default. A new install mounts nvke-auth-config; an install that predates the rename keeps nke-auth-config by pinning the key, which chart-legacy-pinned-values.yaml now carries and chart-auth-assertions.sh now proves. The consumer moved first. nvkectl discovers the API audience by reading this ConfigMap, and the name was a compiled constant, so flipping the default alone would have left one nvkectl unable to talk to the other kind of site. cli/internal/auth now searches both names in every controller namespace -- greenfield name first, pinned legacy name second -- in the same shape it already searched the two namespaces, because a site that pinned one of the two need not have pinned the other. Also moved with it, all of them internally consistent and none observable outside this repository: the e2e authtoken constant and the nvke-auth-dev scaffolding that creates the ConfigMap the suite reads, the two e2e copies of it, and the pod-internal volume names (nke-auth-config, nke-controller-config) in deployment.yaml. nvke-token.sh and nvke-auth-demo.sh take NKE_AUTH_CONFIGMAP, defaulting to the new name, alongside the NKE_CONTROLLER_CONFIGMAP that #1769 added. The chart's two env-refusal messages named nke-controller-config literally and so went stale whenever the value moved. They now interpolate controller.controllerConfig.name and say whatever the install configured. Related: #1554, #1496 Signed-off-by: Terry Howe <thowe@nvidia.com> * feat(chart)!: name the chart nvke-controller Chart.yaml's name is the last path segment of the OCI repository helm pushes to, so this moves the published GHCR chart from ghcr.io/dsx-ai-factory/nvke/charts/nke-controller to .../charts/nvke-controller and the packaged tarball with it. It is an artifact-location change: what an install renders comes from nameOverride, not from here. chart-publish-nvcr.yml rewrites this line with an anchored sed before pushing, so its anchor moves too -- left behind, the rename would silently not apply and the chart would push to NVCR under whatever name Chart.yaml happened to carry. NVCR already publishes as nvke-controller-chart and is otherwise unaffected. malware-backfill.yml pulls the chart by path to scan published tags, including tags that predate this rename. It already chained fallbacks for the two earlier chart renames; the new name goes at the front of that chain. Not moved, deliberately: - image.repository. #1554 decision 2 settled that the chart moves and the image does not, so ghcr.io/dsx-ai-factory/nvke/nke-controller and the sed in chart-publish.yml that pins it stay as they are. - `component: nke-controller-chart` in the record-digest step. That is a key in the release manifest, read outside this repository, and nothing in #1554 calls for moving it. Related: #1554, #1496 Signed-off-by: Terry Howe <thowe@nvidia.com> * feat(deploy)!: rename the OIDC upstream CA Issuer to nvke-oidc-upstream-ca The cert-manager Issuer that signs the OIDC discovery provider's leaf serving certificate. #1554 lists it as a Secret; it is an Issuer -- the Secret it reads is oidc-provider-upstream-ca and carries no nke. Renaming the Issuer is safe: spec.ca.secretName is unchanged, so the renamed Issuer signs with the same CA key, and nothing a tenant holds is derived from the Issuer's name. All ten references move together (deploy/nico, both e2e stacks, helm-values/spire.yaml, deploy/k8s, the Tiltfile and the identity exchange mock), so the issuerRef never dangles. NOT changed, and it needs a decision before anyone does: the CA subject (commonName "NKE OIDC Upstream CA", OU "NKE") on the Certificate in the same file. #1554 wants it moved "for new sites only", but these items are what `nvkectl ... install` applies, and the file's own comment says any subject change forces a re-issue with a new private key, which invalidates every tenant's embedded trust anchor. Nothing here distinguishes a new site from an existing one re-running install, so moving the subject would re-key the CA under an existing site. That gate has to exist first. Related: #1554, #1496 Signed-off-by: Terry Howe <thowe@nvidia.com> * refactor: rename the nke-prefixed chart templates and deploy manifests Filenames only. Nothing these files render changes: Helm takes no object name from a template's filename, and the two renamed Go files keep package nvkerbac and every identifier in it. templates/nke-rbac.yaml -> templates/nvke-rbac.yaml templates/rbac-nke-system.yaml -> templates/rbac-nvke-system.yaml deploy/k8s/nke-auth-dev.yaml -> deploy/k8s/nvke-auth-dev.yaml deploy/k8s/nke-spire-client.yaml -> deploy/k8s/nvke-spire-client.yaml deploy/k8s/spire-nke-services-spiffe-id.yaml -> spire-nvke-services-spiffe-id.yaml internal/nvkerbac/nkerbac{,_test}.go -> internal/nvkerbac/nvkerbac{,_test}.go and the e2e stacks' copies of the first three, whose directories were already named nvke-*. rbac-nke-system.yaml was named for the management namespace, which moved to nvke-system in #1698, so its filename was already one rename behind. Every reference moves with them, including the two Tilt resource names derived from the filenames (nke-auth-dev and spire-nke-services-spiffe-id), the _controller_resource_deps list that names both, and the resource_deps of two opt-in providers -- the dsx-identity-exchange mock and dsx-imds-attestation -- that wait on nvke-auth-dev. Those two matter more than they look. Tilt matches resource_deps by string and SILENTLY DROPS a name it does not know: with the stale name, the Tiltfile still loads and `tilt alpha tiltfile-result` still reports no error, but dsx-identity-exchange-ca comes out depending on ["oidc-upstream-ca-ready"] alone, having lost its wait on the scaffolding that creates the namespace it writes a ConfigMap into. That is a race, not a failure, and no lane would have caught it -- both providers are off by default. Verified by loading the Tiltfile against a kind cluster with the provider enabled, before and after. The allowlist entry for this group loses its `nkerbac` alternative, which now matches nothing, and its comment says why `nke-rbac` is still there: the ConfigMap's name is a compiled constant in that package, so it needs to become a chart value before the name itself can move. Related: #1554, #1496 Signed-off-by: Terry Howe <thowe@nvidia.com> * docs(chart): document the pins an existing site needs before upgrading Addresses both CodeRabbit findings on #1769, which are the same finding twice: the legacy pins existed in the test fixture and in the pull request body, but not where an operator planning an upgrade would read them. - nameOverride's doc comment was a plain `#` comment, so helm-docs never rendered it and the README's row for the one value that FAILS an upgrade was empty. It is now a `# --` comment and reaches the README. - controllerConfig.name said an install that predates nvke-controller-config pins "nvke-controller-config". It pins "nke-controller-config"; a rename in #1769 caught the legacy value too. This is the key sentence on the key the finding is about, and it was telling operators to pin the new name. - apiAuth.configMap.name, whose default moved earlier in this branch, gains the same note. - A new "Upgrading an existing site: names and identity" section collects every pin in one block, beside the management-namespace section that already existed, and says which failure mode each one has: nameOverride is rejected by the API server, the rest succeed and quietly leave something behind. - The README title was still nke-controller after this branch renamed the chart. The section states what the second finding asks for and what the fixture cannot: chart-identity-assertions.py proves the chart still honours the pins, not that any site supplies them, so the deployed values of all 41 sites have to be checked before a chart carrying these defaults is published. teleport.* is deliberately excluded from the pin block. Those defaults moved to nvke-* in #1563, in a chart every existing site already runs, and no site ever pinned them -- so pinning them now would be a behaviour change rather than a preservation, whatever their own value descriptions say. The section says so. Related: #1554, #1496, #1769, #1563 Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: address review feedback Three findings on the authentication ConfigMap search, all of them consequences of this branch adding a second name to look for. A denied read of the greenfield name no longer ends the search. RBAC scoped to resourceNames denies every name it does not grant, so a site pinned to nke-auth-config can deny nvke-auth-config while permitting the name it actually runs -- and with one name that denial was correctly terminal, while with two it stopped nvkectl before the readable one. Forbidden is now kept and the search continues; it is returned only if nothing turns out to be readable, so a denied read still never degrades into "authentication is off" and a bare request the controller rejects with a confusing 401. Any other error stays terminal. The regression test reproduces the reviewer's case and fails without the fix. A second test covers the other half: when no candidate is readable, the Forbidden is surfaced rather than reported as authentication being off. The e2e helper searched one name too. On a pinned site RawConfig found nothing, which does not fail a run -- it quietly turns the authn specs into assertions about an unauthenticated NVKE and skips the SPIRE one. It now searches both names, and ConfigMapName stays the name the suite's diagnostics quote. cli/README.md and cli/docs/user-flow.md named only nvke-auth-config. Both now name each ConfigMap the CLI looks for and state the narrower condition for sending no token: neither name found in either namespace. Both also say that an unreadable ConfigMap is not that condition. Signed-off-by: Terry Howe <thowe@nvidia.com> * style(cli): gofumpt the forbidden-reactor helper golangci-lint's gofumpt wants the closing paren of a split call on its own line. I checked the new test with gofmt, which accepts it; the gate is golangci-lint fmt (gci + gofumpt), which does not. Kept as its own commit rather than squashed into fd51855ea: the review replies on this pull request cite that SHA, and rewriting it would strand them. Signed-off-by: Terry Howe <thowe@nvidia.com> * docs: name the chart nvke-controller in the publication reference Two rows in artifact-publication.md still said the controller's chart is nke-controller. This branch moved the published chart to charts/nvke-controller while deliberately leaving the image at nke-controller, so a row naming both artifacts with one name is now wrong about the chart. - the NVKE_GITHUB_PUBLISH table listed "`nke-controller` image and chart" - the SBOM section listed the chart among "`nke-controller` and `nktp`" Every other nke-controller in the file is the image and stays. Reported on the chart-publish row; the SBOM row is the same defect one section further down. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix(e2e): make the legacy auth ConfigMap name a constant gochecknoglobals is on in controller/test/e2e and rejected the package-level slice the two-name search was reading: internal/authtoken/token.go:41:5: ConfigMapNames is a global variable LegacyConfigMapName joins ConfigMapName as a const and RawConfig ranges over an array literal of the two, so there is no package-level variable. Nothing else referenced the slice. I had run `make lint` for cli and not for controller/test/e2e, which is a separate module with its own lint job. Both now pass, as does controller -- the three modules this branch touches Go files in. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: address review feedback Keeps the authentication mount at /etc/nke/auth, and fixes the same Forbidden-stops-the-search bug in the e2e helper that was already fixed in the CLI. The mount path move was wrong, and my own commit message argued it was safe on a premise that does not hold. It claimed "nothing outside the pod observes either" path. An operator's auth.yaml does: jwks.caBundlePath is an absolute path into that mount, written by whoever configured the issuer, and it lives in their values or in a ConfigMap they supply. Pinning apiAuth.configMap.name preserves the ConfigMap's name but not where it is mounted. Confirmed by rendering the chart with a pre-rename configuration (caBundlePath: /etc/nke/auth/spire-ca.crt plus the matching extraFiles): the render SUCCEEDS and emits auth.yaml naming /etc/nke/auth/spire-ca.crt while mounting the file at /etc/nvke/auth/spire-ca.crt. The guard does not catch it either -- it only rejects an unlisted file under the current mount, so a legacy path reads as "a CA outside the mount" and is left alone. An enforcing controller then cannot load that issuer's CA, which is an authentication outage on upgrade, arriving silently. So /etc/nke/auth stays. The other three mounts this branch moved are kept at /etc/nvke: controller-config, node-agent-client-tls and the e2e mock's dsx-identity. Those are chart-owned or compiled constants -- checked that nothing outside the chart names them, and that the only values an operator can point into a mount are caBundlePath, which names the auth mount, and profilesDir/runbooksPath, which name a different one this branch never touched. authtoken.RawConfig had the same defect as cli/internal/auth did: it returned on a Forbidden read of the greenfield name and never tried the pinned one. It now keeps the denial, continues, and returns it only when no candidate is readable -- so a denied read is never reported as authentication being absent. Docs, all four of them saying something that is no longer true: - cli/docs/user-flow.md and cli/README.md said the first name that *exists* is used; it is the first *readable* one, and they now say why that differs. - controller/docs/configuring-api-authentication.md said nvke-auth-config is the single name fixed in the CLI, and that any read error stops the command. - controller/test/e2e/README.md said the suite sends no token when nvke-auth-config is missing; it sends none only when neither name exists. Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: Terry Howe <thowe@nvidia.com> |
||
|
|
9ac6832ac9 |
fix(nktp): disable node-exporter cpufreq, which hangs on arm64 (#1819)
node_exporter 1.12.1 hangs in its cpufreq collector on arm64 nodes that use the cppc_cpufreq driver. Scrapes of the exporter time out, so the site lane's node-exporter scrape-job check fails (prometheus/node_exporter#3791). The fix, prometheus/procfs#879, is not in a node_exporter release yet. Turn the collector off in the management cluster's nktp values until the chart ships a node_exporter that has the fix. No nktp dashboard or check reads the cpufreq series. Refs #1810 Signed-off-by: Dan Jaglowski <djaglowski@nvidia.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
1697fa157b |
docs: remove the manual management-plane install path (#1784)
The published documentation carried two ways to install the management plane: the hand-run `deploy/check-site.sh` and `deploy/nvke-deploy.sh` procedure, and the local-site flow added in #1725. This removes the first and leaves the second as the only documented path. Deletes docs/operate/install-management-plane-services.md, which was the manual procedure end to end, and its entries in docs/index.yml and docs/README.md. Seventeen pages named it as a prerequisite; each now points at Run NVKE end to end on one machine. Rewrites the install commands in Secure the NVKE API, Configure OIDC for workload clusters and cli/docs/user-flow.md onto `deploy/nvke-deploy-local.sh install`, which takes the same pass-through flags and reads its inputs from the NVKE_* variables env.sh exports. Removes the `deploy/check-site.sh` references from Troubleshoot, Supported platforms, the NKTP pages and cli/docs/sitespec.md. No script is removed or changed in behaviour. deploy/check-site.sh, deploy/nvke-deploy.sh, deploy/nvke-deploy-local.sh and deploy/nico stay as they are; local-site runs on them. Two script comments that named the deleted page now name the local-site page. Signed-off-by: Jonathan Meier <jomeier@nvidia.com> Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|
|
e34e07e355 |
feat(chart)!: default the controller chart names and SPIFFE service path segment to nvke (#1769)
* 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> |
||
|
|
df9890c530 |
feat: make local-site-setup prepares the local site for the operator flow (#1725)
hack/local-site.sh setup stands in for what a data center, a build and the lab hand an operator: it starts a container node from the bootstrap substrate and records its hosts.csv and SPIRE CA, builds the controller image and the profile content image from the checkout and stages them into the node's containerd, writes the stack config naming them, the API NetworkPolicy with the lab's networks, the release set and a tenant request for the machine's architecture, starts nico-sim with its container backend and bridges the two container networks, and writes a workspace with env.sh. The operator flow is then typed as on real hardware: nvkectl generate sitespec, nvkectl bootstrap site, clusterctl init, the install, the NetworkPolicy, set-site, the releases, a tenant. deploy/nvke-deploy-local.sh install wraps the executor for that flow: the lab StorageClass before, nvke-deploy.sh install on deploy/nico with the inputs read from NVKE_SITESPEC, NVKE_STACK_CONFIG and NVKE_KUBECONFIG, and the SPIRE exec-auth patch after. The local-site page shows that sequence and links each step's operator page. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> |
||
|
|
f0a043d73e |
docs: call NVKE's cluster the management cluster, not the site controller (#1744)
Replace "site controller" with "management cluster" (the cluster) or "management plane" (the NVKE API and controllers) in docs, CLI docs and help text, examples, and deploy-path comments. Identifiers such as nke.site-controller.internal, the site-controller e2e lane and the dashboard UID are unchanged. Supersedes #1737, which was closed so the launch batch had no ordering dependency on #1733. Signed-off-by: echapman13 <echapman@nvidia.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
6e8871aa40 |
feat!: make the management namespace configurable and default it to nvke-system (#1698)
* feat(controller): make the management namespace configurable The shared management-plane namespace was the compile-time constant constants.NamespaceNVKESystem. It is now the nke-controller-config key managementNamespace, read through config.Config.ManagementNamespaceOrDefault and threaded to what addresses that namespace: the tenant-access publish and Secret-reconcile paths, the nke-rbac read, the CAPI cluster and machine activities, failure-domain discovery, the Teleport token controller, the OIDC rollout operation and the Secret cache the manager builds. An unset key resolves to nke-system, which is what a config.yaml written before the key existed decodes to, so a controller upgrade alone never moves a site. The old constant is renamed LegacyManagementNamespace to say which of the two it is. Signed-off-by: Terry Howe <thowe@nvidia.com> * feat(chart): default the management namespace to nvke-system nvkeSystemNamespace.name is new and defaults to nvke-system. One helper, controller.managementNamespace, feeds the Namespace object, the nke-rbac ConfigMap, the Role and RoleBinding scoped to it and the managementNamespace key the controller reads, so the grant and the namespace it covers cannot drift apart. This moves the default a new install gets. The old namespace is not also read, so a site installed before the value existed must pin nvkeSystemNamespace.name to nke-system before it upgrades; the chart README says so and chart-identity-assertions.py now renders that pin and asserts every object and the controller config land on it. Signed-off-by: Terry Howe <thowe@nvidia.com> * feat(cli): read kubeconfig Secrets from a configurable namespace nvkectl get kubeconfig reads nvke-system and then nke-system, so it finds the Secret whether or not the site has pinned the old management namespace, and --namespace names one outright. The error from a miss names the last namespace searched rather than reporting only the first. The bootstrap engine installs the chart with default values, so its own constant moves to nvke-system with the chart default. Signed-off-by: Terry Howe <thowe@nvidia.com> * chore: move the greenfield deploy, e2e and docs to nvke-system The base-config Namespace manifests, Tilt, the e2e lanes, the CI helper scripts and the user-facing docs all name the management namespace. They describe a new install, so they follow the chart default. Nothing here is read by a site that has pinned nke-system. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: address review feedback fix: address CI failures Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: address CI failures The CLI falls back from nvke-system to nke-system and its not-found error names the last namespace tried, so the smoke test accepts either. Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: Terry Howe <thowe@nvidia.com> |
||
|
|
46f04ce59e |
feat: write labels and annotations under nvke.nvidia.com and read both domains (#1713)
* feat(controller): add the keys package for the nvke.nvidia.com label domain The labels, annotations, taints and node conditions this controller owns move from nke.nvidia.com to nvke.nvidia.com. The rename is not atomic: objects labelled by an earlier build keep the old keys until something rewrites them, and a reboot or terminate request applied by hand arrives under whichever domain the operator knows. keys.Key holds the bare name and renders it under either domain. Callers write Key.String(), always the new one, and read with Get/Value/Has/ Matches, which accept both. Key.All() is the delete form, because removing only the new key leaves a legacy copy the next read would find. Both domains are compiled in, as cluster-api-provider-nico did for its own rename: there is no third domain anything could read, so there is nothing to configure. Signed-off-by: Terry Howe <thowe@nvidia.com> * feat(controller): write object keys under nvke.nvidia.com and read both domains Routes every label, annotation, taint and node-condition key the controller owns through internal/keys, and deletes the string constants that held them. Writes land on nvke.nvidia.com; reads accept either domain, preferring the new one. Three places need more than a mechanical swap: - Node topology labels are rewritten on reconcile, which drops the legacy key rather than leaving a node carrying both. - Taint removal strips both domains. A node joined before the rename carries the provisioning taint under the legacy key, and a workflow untainting it may now be asking for the new one; removing only the requested form would leave the node NoSchedule for good. - Reboot and terminate completion clears both forms of the request label, which an operator or an external automation may have applied under either. Secret ownership labels converge the same way: a rewrite drops the legacy key so a Secret carries one domain, not two that could drift. Signed-off-by: Terry Howe <thowe@nvidia.com> * feat(nico): point the capnico reboot and repair annotations at nvke.nvidia.com cluster-api-provider-nico watches exactly one Machine annotation for a reboot and one for a repair, named by --reboot-annotation and --repair-annotation, and silently ignores a request under any other key. A mismatch is not an error anywhere: reboot and repair requests are simply never actioned. So the controller writes both annotations under both domains until every deployment has moved, and these manifests move to the new one. Both keys are owned by the same field manager, so clearing the annotation still clears both. The dev capd-reboot-controller reads either form. Sites that deploy capnico from their own manifests can move the flags on their own schedule; see docs/operations/label-domain-migration.md. Signed-off-by: Terry Howe <thowe@nvidia.com> * feat(cli): write the etcd key cluster-name annotation under nvke.nvidia.com nvkectl writes this annotation onto the etcd encryption key Secret it saves to disk, and reads it back to match a file to a cluster. The legacy key stays exported so a file written by an earlier nvkectl is still readable. Signed-off-by: Terry Howe <thowe@nvidia.com> * feat(capp): write the SPIRE agent path annotation under nvke.nvidia.com The provider owns this Machine annotation, so it is the thing that moves a Machine over: the write drops the legacy key rather than leaving two for the controller to choose between. Signed-off-by: Terry Howe <thowe@nvidia.com> * docs: describe the nvke.nvidia.com label and annotation domain What an existing site has to do (check the capnico flags, and anything outside NVKE that matches on these keys), what it does not (relabel objects, coordinate the upgrade, change how reboots are requested), and which nke.nvidia.com names are deliberately not part of this change. Signed-off-by: Terry Howe <thowe@nvidia.com> * chore: link the capnico dual-write to the issue that removes it The two Machine annotations written in both domains are scaffolding for a rollout, not a design. FIXME them against #1718 so the next reader knows what has to be true before they go, and say in the migration guide that a stale --reboot-annotation or --repair-annotation becomes a silent failure once the dual write is gone. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: address review feedback - nodestatus: try the current domain before the legacy one when reading NeedsRecycle and NeedsRepair. Status.Conditions has no ordering guarantee, so matching either form took whichever came first: a stale legacy False left by an earlier build could mask a current True and drop the recycle or repair request it records. - nico_spiffe_controller_test: assert absence against the rendered key. testify compares map keys without converting types, so a keys.Key needle made the NotContains pass even with the annotation present. - capd-reboot-controller: honour a legacy reboot-complete timestamp. It already read a legacy reboot request but checked only the current completion key, so it replayed the simulated reboot and overwrote the completion it had already recorded. - management-engine: reserve nvke.nvidia.com in the userParams.labels CEL rule, not just in the doc comment. The rule excluded the legacy domain only, so a label under the domain this controller now writes could pass CRD admission and collide with one NVKE owns. The REST API validator already rejected both domains; this aligns the two. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: address review feedback Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: Terry Howe <thowe@nvidia.com> |
||
|
|
a037fc56e1 |
refactor(dev): name the dev kind cluster controller-capi, with trust domain controller-capi.nvke.local (#1700)
make capd-up and tilt up stop with delete instructions when they find the old cwe-capi cluster. The five places that derive the trust domain from the kind cluster name move to .nvke.local together, so Tilt, CI and the e2e harness agree. Signed-off-by: Aaron Patten <apatten@nvidia.com> |
||
|
|
9c8ff900e9 |
feat(cli): the render keeps credentials out of the values files (#1610)
* feat(cli): the render keeps credentials out of the values files No values file the render writes carries a credential. Every chart on deploy/nico reads its secret from a Kubernetes Secret by name, and the render writes those Secrets as one manifest item, site-credentials, added right after the first item: nvke-database in the postgresql, temporal and controller items' namespaces, with the password from NVKECTL_DATABASE_PASSWORD and the controller's connection string, and spire-upstream-ca in the spire item's namespace when the site uses a CA. The namespaces come from each item's release.yaml. The Secrets are written as data, not stringData, so the server-side apply the executor uses can update them on a later install. The connection string escapes the user and password as URL userinfo. SPIRE no longer takes the CA through --set-file; the chart creates no Secret of its own. nvkectl render deploy-path --credentials external renders for a tree that lives in a repository: no credential variable is read, no CA file is read, no Secret and no .gitignore are written, and the command lists the Secrets the cluster has to hold, namespace, name, keys and type. A template file is split into its documents and each is classified by its own kind, so a ConfigMap beside a Secret still reaches the tree. Co-developed-by: Claude <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix(cli): an external render loads the site spec without the CA sitespec.LoadDescription reads the site spec without the SPIRE CA: the variables are not read and no file is opened, and spire.upstreamCA still says the site uses one. The external render uses it, so a host that renders a tree with no secret needs no CA key. Template streams are split with the YAML decoder, so a separator with a comment or a tag still starts a new document. A deploy path that already lists a site-credentials item is refused. The suite's base64 assertions no longer depend on line wrapping. Co-developed-by: Claude <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix(cli): merge the site-credentials Secrets by name and keep an external tree portable Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * fix(deploy): refuse a --values-for appDb override the controller would ignore Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> * feat: use yaml parser not shell for parsing yaml Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> --------- Signed-off-by: Lia Campbell <liac@nvidia.com> Signed-off-by: Patrick Christopher <pchristopher@nvidia.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: Patrick Christopher <pchristopher@nvidia.com> |
||
|
|
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> |
||
|
|
8bcb48d4f9 |
feat(cli): the stack install reads a stack config file (#1682)
* feat(cli): the stack install reads a stack config file The controller stack install takes its site-specific input from a JSON file of its own, the stack config, loaded by the new cli/internal/deploypath/stackconfig package: the NICo API and the optional image overrides and mirror. The file is decoded strictly through sigs.k8s.io/json, so an unknown, duplicate or differently cased key is refused, as are a REPLACE_* placeholder, an empty required value, a null object, an endpoint without a scheme or with a user and password, and a mirror with a scheme. Every problem is reported at once as "<json path>: <problem>", a stray key beside the value problems. The credentials stay in the environment and move to the same package: NVKECTL_NICO_TOKEN, NVKECTL_NODE_USER, NVKECTL_NODE_PASSWORD and NVKECTL_DATABASE_PASSWORD are the stack install's input, not the site spec's. The site spec carries the bootstrap's fields only: the site name, the control-plane VIP, the SPIRE trust domain and CA. The render reads both files, --sitespec with --stack-config and neither without the other, and takes the nodes' architecture from --arch, validated, for both the release artifacts and the SPIRE TPM attestor checksum; without the flag the host's architecture is used with a warning. nvkectl inspect stack-config, a hidden reader like inspect sitespec, validates the file and the credentials and prints STACK_CONFIG, STACK_NICO_ENDPOINT and STACK_NICO_ORG_ID for the install scripts. validate sitespec checks the site spec and prints "valid"; inspect sitespec prints the three site facts. deploy/examples/stack-config.json is the operator's starting point. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * feat(deploy): the scripts take --stack-config and read the node architecture check-site.sh and nvke-deploy.sh take the stack config beside the site spec and refuse one without the other. Both start with an inputs line that names the two files, the site and the NICo endpoint. The check validates the stack config and the NVKECTL_* credentials through nvkectl inspect stack-config and fails on nodes that report two architectures or none. The executor reads the architecture from the cluster and passes it to the render as --arch; --arch on the executor stands in for the read, and a dry run with an unreachable API renders for the host. The kind lane fills a stack config template next to the site spec template. The deploy READMEs and the cli docs describe the file. Co-developed-by: Claude <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs(operate): the install reads a stack config file The install page gets a "Write the stack config" section with the credentials step, the example file and every key. The inputs table, the artifact-source table, the check and install commands, the troubleshooting entries and the pages that link to the section follow. The node architecture is read from the cluster, so no page asks for it. Co-developed-by: Claude <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> --------- Signed-off-by: Lia Campbell <liac@nvidia.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |
||
|
|
1ededf3bce |
refactor(cli)!: read site credentials from the environment and drop unused site spec fields (#1644)
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> |
||
|
|
3317737e1e |
refactor(api): rename the OS profile surface to releases (#1612)
* refactor(api): rename the OS profile surface to releases /osProfiles becomes /releases and nico.osProfile becomes nico.release, so the REST API uses the release vocabulary the rest of the management plane already does. Internal db and workflow structs keep their field names. Signed-off-by: Miancheng Lin <mianchengl@nvidia.com> * refactor(controller): rename the OS profile to the release Nico payloads gain a release key. os_profile is still written alongside it and still read as a fallback, so a CWE predating the rename keeps reading and writing the value through a rolling upgrade or a rollback. No stored data changes. A later release backfills release from os_profile, then drops the mirror and the fallback. The os_profile Prometheus label is deliberately unchanged. Signed-off-by: Miancheng Lin <mianchengl@nvidia.com> * docs: follow the OS profile rename The request YAML in the workload-cluster guides named a field the API no longer accepts, and two troubleshooting entries quoted error text that no longer appears. The dashboard panel descriptions in operate/observe.md keep the old wording: the panels and the os_profile metric label they read are unchanged. Signed-off-by: Miancheng Lin <mianchengl@nvidia.com> * fix(scripts): read cluster NICo fields from .nico and allow an absent configProfile The cluster-level orgID, siteID and vpcID live under .nico in the API response, as the node pool fields already corrected do, so the script exited before generating anything. configProfile is optional in the same schema, and requiring it skipped a valid node pool. Signed-off-by: Miancheng Lin <mianchengl@nvidia.com> --------- Signed-off-by: Miancheng Lin <mianchengl@nvidia.com> |
||
|
|
73ee4a281a |
fix(deploy): pin the overlay's fallback controller image to the current release (#1654)
The fallback was an unreleased September build in the pre-rename repository. Pin v0.2.0-rc.2 on GHCR; update the comment, allowlist and docs. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> |
||
|
|
12a87a5bd9 |
docs: drop stale controller env var references (#1633)
The controller takes most of its settings from nke-controller-config, and some docs and examples still name variables it does not read: - in-place-rollout-design.md uses NODE_AGENT_UPDATE_METHOD, the name the design proposed. #1353 implemented the setting as nodeAgent.updateMethod in nke-controller-config, required only when a cluster sets a desired agent version. - .env.tilt.example set TEMPORAL_UI_URL (gone since #1300), CONTROLLER_MANAGER_*_INTERVAL (since #404), CSR_APPROVAL_INTERVAL (since #173) and NODE_HEALTH_CHECK_*INTERVAL, which the controller never read. The Tiltfile stops forwarding the last two. - The chart's env description says what the chart refuses: a variable nke-controller-config carries, and CONTROLLER_CONFIG_PATH. The README row had lost the first; neither named the second. - Two comments and a Tilt error message no longer cite FORGE_URL, removed in #603. Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@nvidia.com> |
||
|
|
1dbd483a98 |
docs: the install pages follow the operator guide; the Deploy Path reference (#1616)
* docs: the install guide, the deploy README and the pages that point at the install docs/site-bootstrap/install-site-controller.md describes deploy/nvke-deploy.sh install: its inputs, the six steps, removal, upgrade and the GitOps mapping. deploy/README.md lists every flag and variable of the script. The first-cluster page, the docs index and the site-bootstrap pages that pointed at deploy/install.sh point at the command. The site spec reference and the e2e README no longer mention a registry pull secret. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs(cli): user-flow follows the real order: release, site spec, bootstrap, one install command The example starts with nvkr release verify and export, bootstraps the site, then installs the controller stack with deploy/nvke-deploy.sh install as one command. The deploy path is the interface and the script is the reference executor; an operator can apply the items another way. The command table replaces the two manual rows with that command, and the dead README anchor is gone. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: deploy-repository.md describes the deploy path as implemented The page described tooling that no longer exists: a Go binary that cloned a deploy repository and shipped it to the init node, ArgoCD items with sync monitoring, a BootstrapConfig with database and monitoring fields, and a deploy/reference directory. It now describes deploy/nico: nvke-deploy.yaml, the four item types as nvke-deploy.sh applies them, the template context the site spec supplies, what a render adds, and what another executor has to do. The pages that linked to it as a GitOps repository are updated with it. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: nvkectl comes from the NVKR release; build from source without one The release carries nvkectl as an executable output built from the same commit as the controller image. The install page takes it from there: read the output's reference from the release description, pull it, and unpack the binary. Building from the clone stays as the path without a release. The GitHub Releases download is gone. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: the install guide offers the script, by hand and GitOps; the overview sends readers to it The install guide's Release section is a paragraph with deep links to NVKR's release quickstart. The install itself is three options that apply the same deploy path: the script, the six steps by hand, and GitOps. The overview's after-bootstrap section no longer tells readers to install Cluster API and a provider first; the install does that, and the page lists it as the fourth step. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: the site spec page opens with its two parts and shows what validate says between them The bootstrap part is all the bootstrap requires; the controllerStack section is read by the install and can stay unfilled until then. The validation section shows the output on a freshly generated spec: the bootstrap line, the values still to fill in, and the non-zero exit that says the bootstrap can run now. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * refactor(deploy): drop the argocd item type; docs no longer say NVKE needs Argo CD No deploy path has an argocd item and nothing tested the code that applied one. A deploy path is template, manifest and helm items; a GitOps tool delivers the same items, as the install guide's GitOps option describes. The concepts, lifecycle and pre-provisioned-nodes pages said the stack is managed by Argo CD and installed from a deploy repository; they now point at the install from the deploy path. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: the install guide no longer lists an untaint step The bootstrap removes the control-plane taint; the readiness check reports one that is left. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: the install guide separates what the install does from what the operator does Five steps: readiness, Cluster API, the site controller, secure, verify. The StorageClass, the site registration and the client network policy are the operator's, listed after the install with the commands. The deploy README, the user flow and the nico README match. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: the site controller install is a list of commands check-site.sh, clusterctl init, the executor, the release resources, the exec-auth patch, then set-site and the network policy on the operator's machine, each a command that stands on its own. The install guide gives them in order with what each one does, how to take the executor apart, and how a GitOps tool delivers the same items. The deploy README describes check-site.sh and the executor; the user flow, the nico README and the pages that pointed at a single command point at the list. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: review fixes on the install pages The removal section deletes the stack's namespaces and says what that removes and what stays. The lifecycle page no longer installs CAPNICo a second time. The credential claims are limited to the controllerStack file paths, with registry.apiKey left to the environment. The values order names the files a render adds. The CLI's plain-HTTP NodePort is called out as trusted-network only. jq and oras are named where the release download uses them. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: review fixes on the install list The release resources are published with nvkectl create, after the site is registered; they are not manifests. The hand-apply and GitOps recipes name helm dependency build for a path chart with a Chart.lock, chart.setFile entries, and the nktp-cluster ConfigMap the base-config item renders. The removal block pins its kubeconfig. The Deploy Path page names the executor's one subcommand and says where an unknown item type is refused. The first-cluster page folds the separate Cluster API and CAPNICo install into the install guide's list and registers the plain-HTTP NodePort. The nvkectl download filter accepts a description whose executable output declares no architecture. Anchors fixed. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: nvkectl create writes the release resources through the site kubeconfig The step needs the registration, which records the kubeconfig, and not the network policy, which admits clients to the controller API. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: second review round on the install pages The nico README publishes the release resources with nvkectl create after set-site and leaves the taint to the bootstrap and the check. The Deploy Path page names the executor's subcommand in its two examples. The concepts page describes the PostgreSQL item rather than CNPG and no longer names Argo CD as the GitOps controller. The local-run sentence says what still comes from a repository and where images land. The check prints the commands that remain. The GitOps section says the render writes the per-site values. The validate sample shows the trust-domain line. The custom base OS page no longer downloads nvkectl from GitHub Releases. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: the install pages that stay point at the operator guide The legacy site-bootstrap pages are left as they are on main; the operator guide under docs/operate describes the install. The CLI docs, the deploy READMEs, the concepts, lifecycle and first-cluster pages and the Deploy Path reference link to it. The install page publishes the OS release resources with nvkectl create after nvkectl points at the API, and the artifacts page writes them as the metadata-and-spec documents that command takes; the check's description names the kubeadm providers it confirms. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: two links follow the install guide to the operator pages Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs: third review round on the install pages The executor's parser no longer accepts argocd, so both parsers refuse an unknown type before anything is applied, as the Deploy Path page says. The command lists in the deploy README and the user flow include the NetworkPolicy step. The first-cluster page publishes a second release rather than the first. The artifacts page lists nvkectl among its prerequisites and names the kubeconfig the publish goes through. The check prints the commands that remain. The deploy README's Cluster API and egress rows say what the check reads. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> --------- Signed-off-by: Lia Campbell <liac@nvidia.com> |
||
|
|
5038f6faaf |
feat(deploy): check-site.sh, and the site controller install as a list of commands (#1586)
* feat(cli): inspect sitespec prints the site values the shell reads A hidden command: the site name, the management VIP, the trust domain and the node architecture of a site spec, as shell assignments. deploy/check-site.sh reads the architecture through it. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * feat(deploy): the stack install needs no registry pull secret CAPNICo's GHCR package is public, and with a release its image comes by digest from the release's registry or the local layouts. The site spec loses controllerStack.pullSecret, the deploy path renders no ghcr-imagepull Secret, CAPNICo's manifest names none, and the e2e suite and the kind lane take no GHCR credential. A site spec that still carries the block no longer loads. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * feat(deploy): check-site.sh reports what the site needs before the stack installs One line per finding and the fix with it: the tools and the helm pin, the checkout, the site spec, the release description and its declared qualification, the run directory, the cluster API, an odd node count, the node architecture against controllerStack.arch, the control-plane taint the bootstrap removes, exactly one default StorageClass, the Cluster API version, egress and disk. It changes nothing and exits non-zero on a FAIL; when ready it prints the executor command. --diagnostics writes nodes, pods, events, helm releases and the controller logs under the state directory after a failed step. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * ci: the kind lane runs the site runbook in order check-site.sh, clusterctl init, the executor, then the SPIRE exec-auth patch, the order the install guide gives. apply-capi-spiffe-exec-auth.sh takes --kubeconfig so every kubectl call is pinned to the site cluster. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix(deploy): check-site.sh treats a failed cluster read as a finding; the e2e suite expects the executor's subcommand A denied, timed-out or flaky kubectl read used to come back empty and pass, so a Cluster API that could not be read was reported as not installed yet. Reads now fail the finding with kubectl's error, and only NotFound means Cluster API is absent. The wrong-version finding names the clusterctl upgrade command instead of a page that has none. The ready line prints the init command only when one was emitted and the executor by its resolved path. The suite covers denied reads, an installed Cluster API and the NotFound case. The e2e dry-run test expects nvke-deploy.sh install, which is what the stack driver builds. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix(deploy): check-site.sh findings hold under more clusters; the executor refuses an unknown item type The taint finding matches NoSchedule only, not PreferNoSchedule. The Cluster API finding compares the image tag with a digest suffix stripped, and a core at the pin without the kubeadm providers is a finding. A missing nvkectl is a finding that skips the site spec and release checks rather than an exit. Printed commands are shell-quoted. The verdict and the diagnostics line carry the script's own name. inspect prints no trace ID, so every line of the check is a finding. The executor's item parser accepts only the item types the deploy path format defines, so an unrendered path with an unknown type is refused before anything is applied. The e2e driver writes placeholder registry values for controller releases whose base-config template still reads them. The exec-auth script refuses an empty --kubeconfig. The kind lane workflow runs on changes to the files the lane now executes. The suite covers an even node count, an architecture mismatch, two default classes, an unreachable API, a core-only Cluster API, a missing nvkectl, the unknown item type, and asserts the check makes no mutating kubectl call. lib/common.sh holds only what the check uses. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * test(deploy): fix a quoting slip in the suite An apostrophe escape meant for a single-quoted string sat inside a double-quoted one and turned the rest of the file into a string. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * chore(deploy): the check and the lane name the operator guide that lists the install steps Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix(deploy): the check reports what it cannot read; the e2e placeholder registry is one no image uses A denied read of a kubeadm provider is a finding and no longer followed by an 'already installed' pass. A Cluster API image pinned by digest alone is reported as such rather than by its repository name. The commands inside findings quote their paths. A site spec that nvkectl cannot read is a finding, not an exit. The e2e driver's placeholder pull-secret names a server no image uses, so older controller releases that render it pull the public CAPNICo image anonymously. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> --------- Signed-off-by: Lia Campbell <liac@nvidia.com> |
||
|
|
a9aa1b975d |
refactor(chart): rename nkeSystemNamespace and nkeOIDCAuth values keys, failing on the old ones (#1562)
* refactor(chart): rename nkeSystemNamespace and nkeOIDCAuth values keys, failing the render on the old ones Helm ignores an unknown values key silently, so a site still setting the old keys would fall back to chart defaults, including tenant-cluster OIDC reverting to disabled. Rename both keys to nvkeSystemNamespace and nvkeOIDCAuth, keep the old keys in values.yaml empty, and add a render guard that fails naming the replacement. Part of #1496. Closes #1550. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix(chart): key the renamed-values guard off presence, not truth An explicitly supplied empty map is false in a Helm condition, so --set-json 'nkeOIDCAuth={}' slipped past the guard and rendered on the new key's defaults. Drop the empty defaults for both legacy keys so presence only ever comes from the caller, switch the guard to hasKey, and assert the empty-map case. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: rename the last nkeOIDCAuth readers the chart rename missed The site deploy path still wrote nkeOIDCAuth into the controller values, which the new guard refuses outright, and the CAPD and NICo VMs e2e preflights still read nkeOIDCAuth.enabled from the installed release, so they saw null and failed the run. Signed-off-by: Terry Howe <thowe@nvidia.com> * docs(chart): document the renamed values keys and their replacements Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: Terry Howe <thowe@nvidia.com> |
||
|
|
eac79fa4c1 |
ci: bring the controller stack up on kind from a release, rendering inside the executor (#1583)
* ci: bring the controller stack up on kind from a release description The lane builds the controller and the profiles fixture into OCI layouts, copies the CAPNICo image, fills a nvkr.dev/release/v4 file from their digests, renders deploy/nico against it with --nvkr-run-dir, installs the result on a kind node and checks the pods run the release's digests. Advisory; not a merge-gate member. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix(cli): close the deferred findings of the site render spire.trustDomain is required and never derived. The controller reads its connection string from the chart's Secret, URL-escaped. A deploy path missing a site-values item is refused. A malformed release.yaml is reported once. Notes reach the log only when the render succeeds. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * chore(deploy): build the test nvkectl with the cli target and resolve Makefile paths from the file Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs(deploy): say which per-site values the render supplies and from where Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * ci: give the kind lane the nktp values the other kind lanes use Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * feat(deploy): render for the site and the release inside nvke-deploy.sh install --sitespec … --release … [--nvkr-run-dir …] renders the deploy path through nvkectl into a private scratch directory, installs it and removes it, so no rendered credential is left behind. nvkectl render deploy-path is hidden: the script is its caller. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * ci: the kind lane renders and installs through nvke-deploy.sh Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * ci: free the runner's disk before the kind lane and record disk usage on failure The stack's images filled the root volume; the postgres layer could not be extracted. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> (cherry picked from commit 2dda40b10fc3cac98edcb136c97f70a9ac748f72) * ci: the kind lane checks the stack's own workloads, not every pod An nktp gateway autoscaler may add a replica the runner cannot schedule; kubectl wait --all then reports every later pod as timed out unchecked. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * ci: the kind lane caps nktp's autoscaled collectors at one replica and asserts every stack pod Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * ci: the kind lane takes the nktp kind values as they are once they carry a ceiling Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * ci: the kind lane checks the clusterctl digest, names pod-list errors and asserts the spire namespaces The pod sweep covers nke-system and spire-system, where the agent and the CSI driver run, instead of a namespace no deploy path creates. A failed pod list stops the lane with its namespace. The nktp guards match a whole maxReplicas: 1 line. clusterctl is checked against the pinned sha256, and the lane runs on every input it reads. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix(cli): validate sitespec requires the trust domain the render requires validate sitespec reports a missing spire.trustDomain, so its exit code means the file is ready for the controller stack install. The render checks the trust domain and the TPM checksum before it generates the database password, so a refused spec leaves no file behind. The template and the docs say the field is required for the stack install. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix(deploy): --release needs --sitespec, which names the architecture Without the site spec the render would pick artifacts for the host architecture. The usage says --dry-run still renders and may create the database password file. The docs describe the rendered tree as the scratch tree the install removes. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * chore: drop an orphan comment from .gitignore Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * ci: the kind lane's release carries the release-description/v1 schema Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * feat(cli): the bootstrap and the stack install share a default trust domain Both default to nvkectl-bootstrap.nke.local, the domain of a bootstrap with the default cluster name, so a site spec that sets spire.trustDomain to nothing joins them to one domain. The render warns when it uses the default; the bootstrap tells the operator to set the field when it ran under another cluster name. validate sitespec no longer requires the field, and says the bootstrap can run with the file while the controllerStack section is still to fill in. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * feat(deploy): the render scratch lives under a private state directory and the kind lane proves it is removed The render goes under NVKE_STATE_DIR (default $XDG_STATE_HOME/nvke), created 0700, and is removed however the script ends. The suite checks the directory mode and that a failed render leaves nothing. The kind lane runs an install whose render fails and the real install under its own state directory, and dies if either leaves a scratch tree or any rendered file behind. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs(cli): spire.trustDomain is set once before the bootstrap, or never Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * ci: the kind lane works in a per-run directory it never empties, and runs on site-spec changes The telemetry docs name the site spec's clusterName and nktpValuesFile as the inputs of a site install, and --config and --values-for for an install without one. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix(cli): the bootstrap says when it defaults the trust domain; the kind lane owns its cluster and waits for Ready The bootstrap logs the defaulted trust domain as soon as it takes it, and warns when a custom bootstrap cluster name makes it differ from the install's default; validate sitespec qualifies the shared default the same way. The kind lane refuses a kind cluster of its name that was there first and deletes only one it created, and a pod counts as ready only when its Ready condition is True. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs(deploy): the usage says where the render lives once, and what --nvkr-run-dir is for Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix: the review round on the kind lane and the trust-domain docs The bootstrap says it defaulted the trust domain before a dry run returns. The docs qualify the shared default for a renamed bootstrap cluster, and the troubleshooting entry names an install the script accepts. The password file note is said at once. The executor renders with --ephemeral, so the summary does not ask the operator to delete a directory the script removes. The kind lane runs on the mirror branch only, on every input it reads, and its cleanup probe has to fail in the render itself. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> --------- Signed-off-by: Lia Campbell <liac@nvidia.com> |
||
|
|
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> |
||
|
|
97ca3ab273 |
feat: install the controller stack from an NVKR release (#1428)
* feat: install the controller stack from an NVKR release nvkectl render deploy-path takes the release description nvkr release verify prints (nvkr.dev/release/v4) beside the site spec: charts the release carries are pulled by digest into charts/<item>/ and verified, image artifacts become a release-images.yaml values file or a kustomization, images.txt lists the images the result runs, and with --nvkr-run-dir everything comes out of a local Run's OCI layouts. Each item's release.yaml binds the NVKR artifacts it uses by name. The executor applies the result: an archive chart.path skips the dependency build, a kustomization.yaml is applied through kubectl kustomize, and images.txt layouts are imported into the node's containerd first. --chart-override is gone; the release is the single chart source. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * refactor(cli): pull release charts with oras-go instead of the oras binary The render resolves and fetches chart manifests and archives through oras-go v2: a registry and an OCI layout are the same read-only target, digests are verified by the store, and the --oras flag goes away. The operator no longer needs oras to render. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * chore(cli): regenerate third-party notices for the OCI dependencies Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix(cli): name release images repository@digest in images.txt A release may reference an image as repository:tag@digest. The inventory drops the tag, so the imported name matches the one the values and the kustomization ask containerd for. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix(deploy): import images with containerd's local path and check the digest alias ctr images import --local names every manifest of the layout <repository>@<digest>; the transfer import keeps an annotated name and skips that alias. The executor checks the alias exists after the import. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix(cli): cancel registry requests with the command context Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * fix(deploy): read images.txt before importing, so docker exec cannot eat the list CTR may be `docker exec -i`; inside a while-read loop its stdin is the list, and the post-import check consumed every line after the first. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * test(cli): rename the node image fixture artifact to nvke-node-image Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> --------- Signed-off-by: Lia Campbell <liac@nvidia.com> |
||
|
|
ac96cd13f0 |
feat(cli): render a deploy path for the site the site spec describes (#1567)
* 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> |
||
|
|
8c6e47fc1e |
feat(controller)!: read settings only from nke-controller-config (#1527)
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> |
||
|
|
6bc0e1c9e8 |
fix(agent): rename node agent package and contracts to nvke (#1565)
* fix(agent): rename node agent package and contracts to nvke Signed-off-by: Chao Chen <chaoch@nvidia.com> |
||
|
|
21afa49419 |
fix(deploy): retry a chart download that fails with a server error (#1540)
GitHub's release downloads answer 5xx now and then, and one failed fetch ends the install. Repeat helm upgrade --install up to three times on that error, as #1482 does for nvkectl. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> |