mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-07 04:35:58 +08:00
pull-request/2437
69
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
0493582197 |
test(e2e): scan CI clusters with kube-bench (#2156)
Scan the clusters the CAPD and bootstrap e2e lanes build with kube-bench, and fail the lane on any FAIL or WARN the exception register does not cover, or on an entry for a check kube-bench does not report. The scan runs the kube-bench v0.16.0 image as published, with cis-1.12, the newest benchmark it ships. The release maps no Kubernetes version after 1.34, so the scan names the benchmark rather than rely on kube-bench falling back to it. A scan runs the policies checks first and alone, in a pod that takes nothing from the host but the admin kubeconfig and runs as a service account that mounts no token, so section 5 does not report the scan itself. It then runs one pod per node, reads each report from its log, and deletes everything it created. A policies report whose audits returned no rows is an error, not a list of findings. NVKE now sets kube-controller-manager's --terminated-pod-gc-threshold to 12500, Kubernetes' own default, on every cluster it creates. The scan's check 1.3.1 looks for the flag; setting the default explicitly satisfies it without changing how many finished pods a cluster keeps. Existing clusters keep the configuration they were created with. Like the other flags NVKE sets, a cluster-create request cannot override it through extraArgs. The register, exceptions.yaml, lists each accepted check by ID, with a title and a reason in our own words. An entry applies on every node of every cluster. One whose check passed on every node is listed as unneeded, since the other kind of cluster may still need it. The CAPD lane scans "CAPD core" on pull requests and "CAPD with etcd encryption" on full runs, once their nodes are ready, and copies the results out with its diagnostics, as the local entrypoint runner now does too. Both create encrypted clusters, so the scan checks the encryption configuration NVKE renders; CAPD core now creates one. The bootstrap lane scans the site cluster in stage 4d of run.sh; a scan that failed or never reached a verdict fails the run after the teardown, and the workflow uploads the results on every provisioned run. The substrate now mounts its etcd tmpfs with mode 0700, the mode kubeadm gives the directory it creates, instead of tmpfs's default 1777. The CAPD node image, which the bootstrap image builds on, now creates the etcd user and, at every boot, gives it /var/lib/etcd, as the production node image does; the node containers mount a root-owned tmpfs there. The scan pods mount each host's /etc/passwd and /etc/group, so kube-bench names the directory's owner as the host does: its own image has no etcd user and reported UNKNOWN:UNKNOWN. Check 1.1.12 then passes on the CI clusters and on production nodes. Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@nvidia.com> |
||
|
|
f41e9b693c |
ci: version and release every component by the bare vX.Y.Z tag (#2164)
* ci: version every artifact by the bare v* describe
Every published artifact is now versioned by
`git describe --tags --always --match 'v*' "${GITHUB_SHA}"`, with no
component prefix, so component versions follow the nvke tag rather than
moving independently. The controller image, chart, provisioned provider
image, agent binaries and packages, nvkectl and the OS image resolve
their version this way, and the version is passed to each build so the
binaries report the same version they are published under.
The release registry describes and resolves components against the
bare v* tags, so a beta qualifies the artifacts its tag published.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: build and publish every component on a bare vX.Y.Z tag
Every component build that a vX.Y.Z-beta.N tag runs now runs on a bare
vX.Y.Z tag too: the controller and provisioned provider images, the
controller chart, the agent binaries and packages, the OS image and
nvkectl. The gates that admitted only beta tags admit any bare v* tag,
and nvkectl is versioned by the bare describe for both.
Beta-only behaviour is unchanged: a beta still skips DSX, stays out of
the apt index and bakes non-FDE images only. A release does all three.
promote-dsx now runs on vX.Y.Z, so it tags DSX with the bare describe
the NVCR copy was published under.
The beta flag in tag-publish.yml is removed, so nvkectl is published to
GHCR for every tag it is built for, betas included. cli-artifact.yml
versions it by the bare describe.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* build: version every module by the bare v* describe
The Makefiles, the root cmd_version and the scripts that derive the
agent version described against component tags (agent/v*, controller/v*,
cli/v*, os-image/v*, cluster-api-provider-provisioned/v*,
management-engine/v*). They now use
`git describe --tags --always --dirty --match 'v*'`, the version the
publish workflows already stamp, so a local or CI build reports the same
version as the artifact published from that commit.
The fallbacks for an untagged checkout and a build outside git are
unchanged, as is the agent's 0.0.0- prefix for an untagged .deb. The
e2e VALIDATE_VERSION now pairs with the nvke-validate image, and the
comments and log lines that named the old describe are updated.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* docs: describe one vX.Y.Z tag releasing every component
Components are no longer tagged on their own. The release docs, the
module AGENTS.md and README files and SECURITY.md now say one signed
vX.Y.Z tag releases the repository and every component built from it,
versioned by `git describe --tags --always --match 'v*'`.
docs/artifact-publication.md lists what each workflow publishes for a
release and for a nightly beta, and that an RC publishes nothing of its
own. The prefixed tag instructions, and the go get example that relied
on them, are removed. Mentions of past component tags that remain true
as history are kept.
The qualification docs and the qualify-e2e resolution input now say a
release, an RC and a beta are all qualified with commitDescribe, which
describes the commit the version marks and so resolves every component
to it. gitTag takes the highest v* tag in the repository and is not for
qualification.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: stop publishing artifacts from component release tags
A component release tag (agent/vX.Y.Z, controller/vX.Y.Z,
cluster-api-provider-provisioned/vX.Y.Z, os-image/vX.Y.Z, cli/vX.Y.Z) no
longer starts a publisher; a release is a bare vX.Y.Z tag. Component
release candidate tags still start the same workflows as before.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: publish every GHCR release artifact on vX.Y.Z
agent-artifact.yml, chart-publish.yml and image-validate-nvcr.yml only ran
on component tags, so a release published none of them. Each now runs on a
bare vX.Y.Z tag and versions by the bare v* describe. The controller and
provider GHCR promotions and the agent .deb GHCR push also run on vX.Y.Z
(not betas), since they were gated on component tags too and the GHCR
chart waits for the controller image there.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: name every tag build by its describe version, not the tag
The publishers versioned the build by the bare v* describe but still took
version aliases, GHCR promotion tags, the agent .deb version, the nvkectl
S3 release path and the os-image version from the tag name. On a component
RC tag the two disagreed, and on a vX.Y.Z tag agent-deb's GHCR push would
have been tagged with the commit SHA. Every one now uses the describe
version, which on the tagged commit is the tag itself.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: pass the describe version to build commands through the environment
The version is git describe output, which a tag name controls. It was
interpolated with ${{ }} into the run script of six build steps, so a tag
containing shell syntax would have run in jobs that hold registry
credentials. Each step now reads it from an environment variable.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: give component RC tags no version alias
A component RC tag still starts the agent and nvkectl publishers, and
they name the build by the bare v* describe. On a commit that already
carries a release tag that is the release's version, so the RC run would
move the release's alias to a new manifest. Only a bare v* tag now adds
the version alias; a component RC tag publishes sha-<commit> only.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: resolve every publisher's version through one checked script
Every publisher resolves its version through
release/hack/describe-version.sh instead of calling git describe itself.
A bare v* tag run is published under its own tag; any other run under
the v* describe. Before anything is pushed, the script refuses:
- a describe that is not a v* release, RC or beta, its describe suffix,
or a bare commit. The describe can name any v* tag on the commit, and
agent/Makefile passes it to the shell inside -ldflags.
- on a v* tag run, a tag that is not a version or does not name the
commit being built.
- on a component tag run, a commit a v* tag already names. Its describe
is that tag, so a component RC there would republish that tag's
.debs, images, charts and nvkectl.
Naming a tag run by its tag rather than the describe matters when the
commit carries several: git describe prefers the annotated release, and
of two lightweight betas the first by name. A beta re-run on a released
commit, or a second beta on one commit, now publishes under its own
version instead of another tag's.
release/hack/test_describe_version.py covers these cases against fixture
repositories, and runs with next-tag-test in the merge gate.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: let only a release version into the apt index and GHCR
agent-deb-publish.yml chose whether to update index.json, and whether to
push the .debs to GHCR, from the ref: anything but a beta tag did both.
An agent/v* RC tag carries no -beta., but its packages are versioned by
the describe, so on a commit past a beta it made that build installable
from apt and pushed it to GHCR.
The build job now reports whether its version is a bare vX.Y.Z, and both
follow that instead. A release enters the index and GHCR; a beta, a
component RC and anything else is uploaded under releases/<version>/ and
pushed to NVCR only.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: stamp the published version into standalone nvkectl builds
A dispatched cli-artifact, cli-artifact-nvcr or cli-s3-publish run with no
dist_artifact builds nvkectl itself. The build took its version from the
Makefile's own git describe, which on a commit with a beta and a signed
release names the release, while the run publishes under the beta it was
dispatched from. Pass the resolved version as NVKECTL_VERSION, as
tag-publish.yml already does, so the binary reports the version it is
published under.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: skip a beta dispatch of the GHCR chart publisher
A beta's controller image is never promoted to GHCR, so a chart-publish.yml
run dispatched from a beta tag waited up to 30 minutes for an image that
would not appear, then failed. Skip beta refs, as the automatic beta trigger
already does.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* test: cover the triggering-tag check and a bare RC in describe-version.sh
Every invalid tag in the existing test was also the commit's describe, so
the describe check refused it before the check on the triggering tag ran,
and disabling that check left every test passing. Tag the bad names beside a
valid signed release, which wins the describe, so only the tag check can
refuse them.
Also pin that the helper names a bare RC run by its tag: the publishers'
tag filters, not the helper, keep an RC from publishing.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: recover a vX.Y.Z agent package release by dispatch
A failed agent/vX.Y.Z publish could be recovered by dispatching Agent Deb
Publish from that tag with ref set to it. Releases are now vX.Y.Z, which the
ref check refused, and a SHA got past it only for every publish job to skip,
since their bare-tag arm requires a push.
Accept a vX.Y.Z ref when the run is dispatched from that same tag, and let
it into the apt intake, GHCR and NVCR jobs. The tag names the run's version,
so the index.json and GHCR gates still admit only a release. A beta is not
admitted, as before.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
---------
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
|
||
|
|
55b2a0029a |
refactor(dev)!: remove the deprecated CWE_* and NKE_CONTROLLER_* setting names (#2114)
* refactor(dev)!: remove the deprecated CWE_* and NKE_CONTROLLER_* setting names The controller's development, test and build settings read only their NVKE_CONTROLLER_* names now. The CWE_* and NKE_CONTROLLER_* aliases, deprecated since v0.23.0, are gone from the Makefiles, Tiltfiles, hack and CI scripts, the e2e framework and tests, and the docs. So are CWE_IMAGE (use CONTROLLER_IMAGE), the cwe_image key in tilt_config.json (use nvke_controller_image), --cwe-api in get-kubeconfig.sh (use --controller-api) and the cwe-name input of qualify-e2e.yml (use controller-name). local-backend-e2e.sh reads LOCAL_NVKE_CONTROLLER_IMAGE instead of LOCAL_CWE_IMAGE. BREAKING CHANGE: a value set under an old name, in .env, .env.tilt, tilt_config.json, a shell profile or a repository variable, is now ignored without a warning. Rename CWE_X and NKE_CONTROLLER_X to NVKE_CONTROLLER_X, except CWE_API (use NVKE_CONTROLLER_API_URL) and CWE_IMAGE in make -C cli images (use CONTROLLER_IMAGE). Rename LOCAL_CWE_IMAGE to LOCAL_NVKE_CONTROLLER_IMAGE and the cwe_image key to nvke_controller_image. get-kubeconfig.sh rejects --cwe-api (use --controller-api), and qualify-e2e.yml has no cwe-name input (use controller-name). Signed-off-by: Aaron Patten <apatten@nvidia.com> * ci: fail when a removed controller setting name comes back make name-check, which the merge gate runs, now also runs hack/removed-settings-check.py. It fails on any removed CWE_* or NKE_CONTROLLER_* setting name, LOCAL_CWE_IMAGE, cwe_image, --cwe-api or cwe-name in a tracked file, so a branch cut before the removal cannot bring a reader of an old name back. CHANGELOG.md is not scanned, and two look-alikes that are not controller settings are allowed by file. Signed-off-by: Aaron Patten <apatten@nvidia.com> --------- Signed-off-by: Aaron Patten <apatten@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> |
||
|
|
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> |
||
|
|
68c0294c0a |
refactor(dev): rename the controller's NKE_CONTROLLER_* dev and test settings to NVKE_CONTROLLER_* (#1771)
The NVKE controller's development, test and build settings now use the NVKE_CONTROLLER_* prefix that AGENTS.md sets for settings that name the controller. The deployed controller reads none of them. Where a developer sets a value (Tiltfiles, Makefiles, hack and CI entry scripts, the e2e, gofail and integration test readers), the old NKE_CONTROLLER_* name is still read after the new one and before the existing CWE_* alias. #1399 removes both. Where our own scripts hand a value to another script, to Tilt or to a test, the writer and the reader both use only the new name. Signed-off-by: Aaron Patten <apatten@nvidia.com> |
||
|
|
b200d62841 |
ci(e2e): collect the capnico controller log and NicoMachine objects (#1815)
The 2026-10-19 nico-e2e red (run 39255127544) could not be root-caused from the collected diagnostics. The provider's view of the lost instance lives in the CAPNICo controller log and the NicoMachine objects, which were not collected. Signed-off-by: Davanum Srinivas <dsrinivas@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> |
||
|
|
5e7267a6f5 |
feat(os-image): build OVN from dsx-ai-factory/ovn-kubernetes v2.4.2 with pod hostPort (#1694)
* feat(os-image): pin OVN to the fork's v2.4.2 and enable pod hostPort
The stream is now the fork's release tag and the lock pins its commit. values-nke.yaml sets global.enablePodHostPort; the agent clears it on container nodes, which run the local gateway.
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
* chore(qualify): qualify the 2.4 OVN stream
The node image carries the fork's 2.4.2 packages after #1694, so the plan takes the highest 2.4 the apt suites serve.
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
(cherry picked from commit
|
||
|
|
9f163d42e3 |
feat(os-image): build the OVN debs from dsx-ai-factory/ovn-kubernetes (#1560)
Build the nvke-cni-ovn charts and images packages from the NVIDIA fork at a commit the lock pins (release-1.6.0) instead of pulling upstream artifacts, and make 1.6.0 the default stream. - bundle.sh fetches the fork tarball with OVN_KUBERNETES_TOKEN (or GITHUB_TOKEN), verifies it against the lock, writes values-nke.yaml and builds localhost/nvke/ovnkube:<commit12> with docker buildx, nerdctl or podman. The lock pins source and tarball sha256; amd64 and arm64 must pin the same commit. Base images are pinned by digest and the built archive is cached in DIST_DIR. - The fork's Dockerfile.ubuntu is patched in a copy for three gaps its chart hits: the node liveness and readiness scripts are not copied (kubelet killed ovnkube-controller every two minutes), firewalld is missing, and the iptables wrappers chroot /host, which the chart never mounts. - nvke-agent uses global.imageRepositoryPrefix and global.gatewayOptions, runs OVN in local gateway mode on container nodes (--allow-no-uplink needs it and the chart hard-codes shared), and skips value files the chart no longer ships. - Default stream 1.4.0 -> 1.6.0 across the agent, controller, OpenAPI, protos, docs and e2e scripts; the DB migration keeps 1.4.0 for existing rows. The nico-vms release fixtures and create-forge-nico-cluster.sh install 1.6.0. - CI passes OVN_KUBERNETES_RO_TOKEN to the jobs that build cni-ovn. The nico-vms diagnostics capture ovnkube container logs and the tenant report. Signed-off-by: Noah Kontur <nkontur@nvidia.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
87580fcb7c |
fix(e2e): retry the host image build after a Go proxy stream reset (#1687)
build_with_retry retried only the mirror 404; a proxy.golang.org stream reset mid-module-download fails the controller image build the same way and |direct does not cover it (CAPD arm64 on
|
||
|
|
e19274429e |
chore(controller): say controller, not CWE, in the settings-rename files (#1653)
Comments, help, log and error text in the files the CWE_* settings rename owns say "the controller". Every deprecated CWE_* alias statement cites #1399, which removes them, so `git grep '#1399'` finds every alias site. No behaviour change. Signed-off-by: Aaron Patten <apatten@nvidia.com> |
||
|
|
26d1d23670 |
fix(e2e): retry the local entrypoint's image pulls (#1581)
local-backend-e2e.sh pulled the bundle mirror's alpine and nginx images, and the E2E runner image, without a retry. #1513 added one to ci/backend-e2e.sh for the mirror's uncached-blob 404, and the same 404 then failed the Local entrypoint lane at its bundle mirror. pull_with_retry, with the bounded timeout wrapper it uses, moves into backend-e2e-lib.sh so both entrypoints share it. e2e_start_bundle_mirror pulls a missing image through it before docker create and docker run, which pull a missing image once, and uses a cached one as is, as docker would, so a host that cannot reach the registry still starts the mirror. local-backend-e2e.sh pulls the runner image through it the same way. The function reports through the caller's log when there is one, since Makefile.dev's bundle-mirror target sources the library from a bare bash -c. bounded runs timeout with --foreground, so Ctrl-C during a slow pull in a hand run reaches the pull instead of being dropped, and falls back to running unbounded where timeout lacks the flag, as it already did where timeout is absent. Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@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> |
||
|
|
46b0a6272d |
fix(e2e): probe openvswitch before the builds, not after them (#1561)
* fix(e2e): probe openvswitch before the builds, not after them The CAPD and NICo e2e entrypoints asked whether the host can load the openvswitch module only after building the CAPD node image -- the last and most expensive step before the suite starts. On the arc-arm64-cpu16 runners, which cannot load it (#1515), both jobs therefore spent four to six minutes of a cpu16 runner building an image they were about to throw away. Nothing built in between can change the answer. The module lives in the host's /lib/modules and the probe reads /sys/module, so the result is a property of the runner's kernel; the image argument supplies only /bin/sh and modprobe. Passing the CAPD node image made it look like a check on that image, which is what put the call after the build. So it moves ahead of the first build in both entrypoints and runs against alpine:3.22 -- already pinned and pulled later in the same CI script, so no new image enters the run. A host that cannot load the module now fails in seconds. This does not fix #1515: those runners still cannot load the module and the arm64 jobs still fail. It makes them fail fast and stop burning runner time. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix(e2e): probe with the node image's own base, not alpine Review feedback on #1561. The probe has to run the same modprobe the nodes run. kindest/node carries kmod 34.2 built +ZSTD, which is what reads Ubuntu's compressed modules; alpine's modprobe is busybox's, a different implementation, so its answer would not be the one that decides whether the suite can pass. (The review said alpine has no modprobe at all -- it does, at /sbin/modprobe -> /bin/busybox. The conclusion holds for the other reason.) So the probe now uses the kindest/node image the CAPD node image is built FROM. build-image.sh already owns that pin and the mirror prefix, so it gains a --print-base-image mode and both entrypoints ask it rather than restating either: a tag bump there reaches the probe with no second edit. The image is one the node image build pulls minutes later anyway, so this still adds no image to the run -- it moves one pull earlier. Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: Terry Howe <thowe@nvidia.com> |
||
|
|
7c7c02949e |
chore: Rename nke to nvnke for images segment of codebase https://github.com/dsx-ai-factory/nvke/issues/1498 (#1548)
* chore: Rename nke to nvnke for images segment of codebase #1498 This is a "brute force" grep/replace approach to the image related occurences of the nke name. The goal is basically just a s/nke/nvnke/g for everything in the repo that is associated with os-images. This replacement bleeds into some other components (controller and agent) that includes references to os-image names. Closes #1498 * Keep existing image names valid * Chore: Fix/Add DCO Signed-off-by: jgriffith <jgriffith@nvidia.com> --------- Signed-off-by: jgriffith <jgriffith@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> |
||
|
|
991e236304 |
fix(e2e): retry mirror 404s in host builds and the node image pull (#1532)
mirror.gcr.io sometimes 404s a base image blob it has not cached yet; the profiles fixture build and the kindest/node pull failed on it. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> |
||
|
|
74c1aab61a |
fix(e2e): stop early when the host cannot load openvswitch (#1531)
Without the module every OVN tenant stays unready and the run fails after about 105 minutes; check once after the node image is built. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> |
||
|
|
90e85efc9b |
fix(ci): retry the bundle mirror image pulls in backend-e2e.sh (#1513)
The alpine and nginx pulls for the CAPD bundle mirror hit the same uncached-blob 404 as the runner pull; share its retry. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> |
||
|
|
07da38b677 |
fix(e2e): give the CAPD suite 120 minutes (#1512)
Passing CAPD jobs take 103-111 minutes, so the shared 100-minute suite timeout cuts slow runs at the last spec. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> |
||
|
|
855208113c |
fix(ci): retry the inner runner image pull in backend-e2e.sh (#1500)
mirror.gcr.io 404s blobs it has not cached, and the pull had no retry, so e2e legs died before the suite started. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> |
||
|
|
668bc38a9b |
feat(cli)!: rename nkectl to nvkectl, keeping the old names for one release (#1456)
The binary, its directory, its config directory and its environment variables take the new name. For one release the previous names still work: every NVKECTL_* setting is also read under its NKECTL_* name with a deprecation warning (the NKECTL_CWE_* names of the generation before are no longer read), a config file left under nkectl/ is read and copied to nvkectl/ once, and releases publish both nvkectl-<os>-<arch> and nkectl-<os>-<arch>, to GitHub and to S3 under the existing prefix. The e2e helper package, the e2e test, the smoke and fetch scripts and the bootstrap e2e workflow follow the binary; the fetch script accepts a release that carries only the old asset name. The CLI's own documents and the two installation documents that print the download URLs change with it. Kept on purpose: the NVCR repository name until an nvkectl repository exists in the NGC org, the S3 prefix the publishing role's policy names, and the prose in the other documents. BREAKING CHANGE: the CLI is installed and invoked as nvkectl. The previous binary name, environment variable names and config directory are honoured for one release, as described above. Closes #1455 Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |
||
|
|
3e8ca2590f |
refactor: rename the Go identifiers, packages and fixture paths that carried the old product name (#1453)
After the repository rename and the module-path change (#1449) the tree still carried the old name where it is ours alone: Go identifiers, two internal package names, import aliases, fixture and test-data directories, the e2e deploy overlays and a few deploy and hack scripts. None of these is a wire protocol, a persisted name or a user-typed value, so they change now, before the repository goes public, without a migration. Identifiers change as tokens, through a go/scanner pass, and in comments only on word boundaries, so every string value stays: NamespaceNVKESystem is still "nke-system" and the env and json struct tags keep their keys. Generated files are untouched and regenerate identically. The packages controller/internal/nkerbac and controller/test/e2e/internal/nke move with their import paths; the e2e deploy overlays, the nke-deploy.yaml files, deploy/nke-deploy.sh, deploy/lib/nke-deploy-items.py and the two hack scripts move with every reference; the twelve management-engine test-data directories move with the test prefixes that select them. Kept on purpose: the NKECluster types and their schema tests (the CRD kind), the UpdateNKERBAC rpc names and their tests (from the proto), the SubjectNKE release subject, agent/pkg/nkeauth and its record magic, and every nkectl name, which moves with the binary. Closes #1452 Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |
||
|
|
3fe0dffbb4 |
test(controller): cover control-plane failure domains end to end (#1167)
* test(controller): cover control-plane failure domains end to end Signed-off-by: Eric Staples <estaples@nvidia.com> * test(controller): enforce failure-domain E2E coverage Wire the CAPD spread row to its domain-aware fixture and fail before creation when a CAPD control-plane-controller row advertises no domains. Check observed Machine placement and scale-down balance, and simplify the related test helpers. Signed-off-by: Eric Staples <estaples@nvidia.com> * test(controller): satisfy E2E constant lint Keep the shared CAPI name key because the E2E module goconst rule requires a constant for its repeated uses. Signed-off-by: Eric Staples <estaples@nvidia.com> * test(controller): clarify CAPD failure-domain coverage Document CAPD observed-domain mirroring, make placement diagnostics deterministic, and state the two-domain assumption of the replacement check. Signed-off-by: Eric Staples <estaples@nvidia.com> * Refactor common checks Signed-off-by: Eric Staples <estaples@nvidia.com> * test(controller): verify CAPD container failure domains Signed-off-by: Eric Staples <estaples@nvidia.com> * ci(e2e): pin CAPD and CAPI core to v1.13.6 Use the provider version that publishes Machine failure-domain status and matches the CAPI API dependency compiled into NKE. Update both clusterctl architecture checksums and document the provider contract. Signed-off-by: Eric Staples <estaples@nvidia.com> * fix(e2e): share CAPI release and clusterctl verification pins Signed-off-by: Eric Staples <estaples@nvidia.com> * test(controller): harden failure-domain fixtures and placement snapshots Signed-off-by: Eric Staples <estaples@nvidia.com> * test(controller): advertise failure domains on the no-VIP cp-controller row initCluster requires every CAPD control-plane-controller row to advertise failure domains; the no-VIP row from #1149 used capdSpec, which advertises none. Signed-off-by: Eric Staples <estaples@nvidia.com> * test(e2e): check only balance after control-plane scale-up KCP's tie-break decides which eligible domain receives the extra Machine when the control plane scales from one to three, so exact per-domain counts can flake. Create keeps the exact-count check. The README drops the controller-managed leg and flag-on wording that #1084 retired. Signed-off-by: Eric Staples <estaples@nvidia.com> * docs(e2e): trim the failure-domain README section Signed-off-by: Eric Staples <estaples@nvidia.com> --------- Signed-off-by: Eric Staples <estaples@nvidia.com> |
||
|
|
59619833ad |
test(e2e): test only the cluster-level controlPlaneConfig (#1084)
CWE provisions every control plane from the cluster-level controlPlaneConfig, so the e2e suite no longer builds or tests a control-plane node pool or reads the control-plane flag. The suite sends each entry's control plane as a controlPlaneConfig. The four entries that exercised a control-plane node pool are gone, along with the validations only they used and the self-skips that chose a shape from the flag. The workflows and scripts run the full suite once instead of running a flag-on leg and a flag-off leg, so the redeploy between legs, the per-leg label filters, the single-runner input and the provision-cp-with-controller input are removed. The nkectl smoke always builds its cluster from a controlPlaneConfig and no longer logs a kubeconfig reply that may hold credentials. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
418ed5c55c |
chore(e2e): say controller, not CWE, in the e2e harness, CI and Tilt (#1394)
Signed-off-by: Aaron Patten <apatten@nvidia.com> |
||
|
|
0f709ef431 |
feat(controller): resolve OS profiles from the releases and provide them locally (#1165)
* feat(controller): resolve OS profiles from the releases CWE reads OS images and first-boot templates from ClusterRelease, NodePoolRelease and MachineImage resources instead of the files under PROFILES_DIR. The osProfile names clusters and node pools already store are release names, so persisted selections keep resolving. Provisioning and the Kubernetes upgrade both resolve a release by the node's role through the new internal/machinerelease package: a control-plane node from a ClusterRelease, a worker from a NodePoolRelease, with no fallback between them. The upgrade preserves the current image's architecture, variant and Ubuntu version and never selects a deprecated target. GET /osProfiles keeps its contract and lists the non-deprecated ClusterRelease names. Signed-off-by: Miancheng Lin <mianchengl@nvidia.com> * feat(controller): apply the releases in every way CWE runs locally CWE resolves every OS image from the release resources, so each way of running it outside a fleet now installs the CRDs and applies the releases: Tilt, `make run-local`, the gofail e2e framework, the nke-sbom deploy, and the nico-vms and backend CI lanes. Each reads them from a releases directory, defaulting to the committed fixtures under test/fixtures/releases. The two Tilt resources are named machine-engine-crds and machine-engine-releases, after the resources they install rather than after their consumer. capnico-create-instance.sh takes the iPXE template from the NodePoolRelease's MachineImage, under NODEPOOL_RELEASE rather than OS_PROFILE. The OS profile matrix test lists NodePoolReleases, replacing the fleet-profiles mirror with test/fixtures/fleet-releases. controller/AGENTS.md, controller/README.md and the nke-sbom README say where OS images come from now. Signed-off-by: Miancheng Lin <mianchengl@nvidia.com> --------- Signed-off-by: Miancheng Lin <mianchengl@nvidia.com> |
||
|
|
db9fef93ab |
refactor(deploy): move the customer deploy path and its executor to deploy/ (#1291)
* refactor(deploy): move the customer deploy path and its executor to deploy/ The customer-facing deploy path lives at deploy/nico, and the script that installs a deploy path lives beside it as deploy/nke-deploy.sh, with its item parser and template renderer under deploy/lib/. The e2e deploy paths and the controller's own charts stay under controller/deploy/. The executor takes one flag for the deploy path, --deploy-path DIR, instead of a parent directory and a target name. The e2e lanes and the site suite call it that way; the workflows that watch controller/deploy/ now watch deploy/ too. Co-developed-by: Claude <noreply@anthropic.com> * chore(github): label and own deploy/ like controller/deploy/ Co-developed-by: Claude <noreply@anthropic.com> * chore(deploy): name the renamed executor and helpers in comments deploy-sbom.sh is deploy-stack.sh and build/render-template.py is deploy/lib/render-template.py. The runner layout comment describes what backend-e2e.sh stages now: deploy/ and controller/deploy/. Co-developed-by: Claude <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |
||
|
|
03cba1060d |
feat(dev): run Tilt and the e2e deploy paths with the nke-controller greenfield profile (#1271)
* feat(dev): run Tilt and the e2e deploy paths with the nke-controller greenfield profile Tilt and the capd-e2e, capnico-e2e and nke-sbom deploy paths install the controller the way a greenfield site does: release, namespace, Deployment, Service and ServiceAccount nke-controller; SPIFFE ID /nke-service/nke-controller; Temporal namespace nke-controller and queue nke-controller-tasks; database nke-controller; and the field-manager, managed-by and Teleport label/prefix values in nke-controller form. backend-e2e.sh no longer branches on Tilt versus deploy path. The e2e harness package internal/cwe is now internal/controller and defaults to nke-controller. The CWE_* settings the dev loop, CI scripts and e2e suite read are renamed NKE_CONTROLLER_*; the old names are still read for one release, including when the new name is set but empty. hack/nke-token.sh and hack/nke-auth-demo.sh find the controller in nke-controller, then cloud-workflow-engine, as nkectl does. The Tilt values file, Dockerfile, kind config and CAPD RBAC manifest are renamed to say controller. The host-debug .env.local.example and README example point at the nke-controller database, Temporal namespace and queue, and the NKTP kind-validation doc queries the controller's metrics, logs and traces under nke-controller. Tilt stops with a recreate-the-cluster message on a cluster that still runs the old release cwe in cloud-workflow-engine. The kind cluster name cwe-capi and the nico-vms bridge cwebr0 are unchanged; renaming them would force every developer to recreate their cluster or leave a stale bridge. Chart defaults are unchanged, so existing sites keep their names. The nke-sbom path now installs on a fresh cluster only, and its README says so: nothing migrates an install from an earlier revision. Signed-off-by: Aaron Patten <apatten@nvidia.com> * fix(dev): name the controller's local SPIFFE ID and auth doc examples nke-controller scripts/dev-env-spire.sh registers the host-run controller under the ServiceAccount the cluster runs it as: nke-controller when that ServiceAccount exists in namespace nke-controller, else cloud-workflow-engine. The kubectl examples in docs/authenticating-to-the-api.md use Tilt's names and say what to use on a site that still runs the old name. The comments at the cwe-capi and cwebr0 defaults describe the deferred rename without an internal tracker reference, which docs-check rejects. Signed-off-by: Aaron Patten <apatten@nvidia.com> --------- Signed-off-by: Aaron Patten <apatten@nvidia.com> |
||
|
|
0d1d2a5541 |
fix(controller): give the kubeadm bootstrap controller SPIFFE tenant access (#1331)
Tenant kubeconfig Secrets use SPIRE exec auth, but the exec-auth overlay, ClusterSPIFFEID namespaces, and nke:capi-cluster-admin binding covered only the core, kubeadm control-plane, and CAPD controllers. The kubeadm bootstrap controller could not reach tenant clusters to create join tokens, so replacement workers never provisioned. Signed-off-by: Eric Staples <estaples@nvidia.com> |
||
|
|
c3fad3abff |
test(ci): use ovn-kubernetes in the default container lane (#1192)
* test(ci): use ovn-kubernetes in the default container lane Signed-off-by: Chao Chen <chaoch@nvidia.com> |
||
|
|
765eca0775 |
feat(deploy): install the controller as nke-controller in the deploy paths (#1173)
* feat(deploy): install the controller as nke-controller in the deploy paths The controller/deploy deploy paths (nke-sbom, capd-e2e, capnico-e2e) install the controller as nke-controller, the name nkectl bootstrap site and greenfield sites use. The release namespace, namespaceOverride, fullnameOverride, nameOverride and serviceAccount.name are nke-controller, and the SPIRE admin ID, both ClusterSPIFFEID namespace selectors, the base-config Namespace, nke-auth-config, the CAPD RBAC subject and the nke-spire-client URL follow. nke-sbom also names its tenant credentials, ServiceMonitor and tracing service after it. backend-e2e.sh takes the controller's name from its install mode (nke-controller for a deploy path, cloud-workflow-engine under Tilt) and passes it to the e2e suite and the nkectl smoke. deploy-sbom.sh and the e2e full-site deployer set the SPIRE admin path to /nke-service/nke-controller. In the e2e suite the Deployment, container, ServiceAccount and tenant SPIFFE path follow CWE_SERVICE. The Tilt dev loop, the chart's defaults and controller-internal identity values are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Aaron Patten <apatten@nvidia.com> * test(e2e): look up the SBOM controller chart by nke-controller TestSBOMAgainstDeployPath renders the nke-sbom deploy path at HEAD, which names the controller's namespace, Service and Deployment nke-controller. The controller chart subtest looks them up by controllerName rather than the cwe package defaults. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Aaron Patten <apatten@nvidia.com> --------- Signed-off-by: Aaron Patten <apatten@nvidia.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
8783ef2597 |
fix(e2e): fall back to direct module fetches when the Go proxy fails (#1225)
The e2e entrypoints compile the test binary with `go test -c` on the runner, so every leg fetches its modules from proxy.golang.org. On 2026-10-03 the proxy answered the ginkgo fetch with a TLS handshake timeout; backend-e2e.sh's three attempts were 5 s apart and each spent a minute in the handshake, so all three fell inside the same outage and the CAPD DSX amd64 leg ended after four minutes without running a spec. nico-vms-e2e.sh and local-backend-e2e.sh compiled once, with no retry. Set GOPROXY to `https://proxy.golang.org|direct` for the compile in all three scripts. The `|` separator makes go fall back to a direct fetch on any proxy error, where the default `,` falls back only on 404 and 410. Give all three the same three attempts, with a pause that grows so they spread over an outage instead of landing inside it. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> |
||
|
|
5053fcef67 |
fix(e2e): pull the bundle mirror's images through the Docker Hub mirror (#1222)
Every CAPI lane and the local entrypoint start a bundle mirror on the host: a `docker create` of alpine:3.22 to load the volume and a `docker run` of nginx:alpine to serve it. Both are bare names, so the host daemon, which has no registry mirror on the ARC runners, pulls them from Docker Hub anonymously once per leg. The job logs show it as `Unable to find image 'alpine:3.22' locally` followed by `3.22: Pulling from library/alpine` in every audited run. The local entrypoint also pulls registry:2 for the caches `make capd-up` starts, and runs one more alpine:3.22 to probe the mirror. Add dockerhub_image to backend-e2e-lib.sh: it prefixes an official image with `<mirror>/library/` when NKE_E2E_DOCKERHUB_MIRROR is set and returns it unchanged otherwise. Use it at the five host sites and for REGISTRY_MIRROR_IMAGE in both `make` callers. With the variable unset nothing changes. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> |
||
|
|
3b0cd6111d |
fix(e2e): put the Tilt lanes' management cluster behind the Docker Hub mirror (#1220)
* fix(e2e): pull the Kind node image through the Docker Hub mirror The management Kind cluster's node image is pulled by the host daemon, which has no registry mirror on the ARC runners. After #1208, #1215 and #1218 this was the last anonymous docker.io pull in every CAPI lane, in local-entrypoint-e2e and in nktp-e2e: one per leg, every run. When NKE_E2E_DOCKERHUB_MIRROR is set, copy the kind config with its `image:` lines rewritten to `<mirror>/kindest/node:...` and create the cluster from the copy. The digest is unchanged, so the pin in cwe-capi-kind.yaml still holds, and the containerd mirror written into the nodes afterwards is unaffected. nktp-e2e now sets the same mirror as the other lanes. Checked on bigbox with the pinned kind v0.32.0: kind logged `Pulling image: mirror.gcr.io/kindest/node:v1.37.0@sha256:a1ed56...`, the control plane was Ready after 18 s, and the image ID matched the docker.io pull. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * fix(e2e): put the Tilt lanes' management cluster behind the Docker Hub mirror nico-vms-e2e builds its images through the mirror but creates its management cluster with `make capi-core-up`, a plain `kind create cluster`. The node's containerd had no mirror, so temporal, postgres, alpine, busybox, curl and the local-path helper were all anonymous Docker Hub pulls; helm fetched the Bitnami chart from registry-1.docker.io because the lane never installed the shim; and `make registry-mirror` pulled registry:2 from Docker Hub on the host. About ten anonymous manifest pulls per leg per run, invisible in the job log. Move configure_kind_dockerhub_mirror into backend-e2e-lib.sh, replacing the copies in backend-e2e.sh and local-backend-e2e.sh, and call it in nico-vms-e2e.sh between `make kind-up` and `make capi-core-up`, so nothing the latter starts pulls from Docker Hub directly. Pass a mirror-rewritten kind config to `make kind-up` there and in local-backend-e2e.sh, which covers the node image for local-entrypoint-e2e too. `make registry-mirror` takes REGISTRY_MIRROR_IMAGE, default registry:2; nico-vms-e2e.sh points it at the mirror. The workflow installs the same helm shim local-entrypoint-e2e.yml does. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> --------- Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> |
||
|
|
0be10f5797 |
fix(e2e): pull the backend lanes' runner image through the Docker Hub mirror (#1218)
backend-e2e.sh still pulled docker:29.1.3-cli from docker.io on the host for the container it execs kubectl and tilt in, the one Docker Hub pull left on the shared arm64 egress after #1208. Prefix it with the mirror when NKE_E2E_DOCKERHUB_MIRROR is set; the digest is the same there. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> |
||
|
|
02b3333942 |
fix(e2e): pull host image builds through the Docker Hub mirror (#1208)
* fix(e2e): pull host image builds through the Docker Hub mirror The lanes already route pulls inside the Kind nodes and Helm through NKE_E2E_DOCKERHUB_MIRROR, but the host docker builds that make the controller, profiles, DSX mock, capd-reboot-controller and CAPD node images still resolved their bases from docker.io. The arm64 ARC runners share one egress address and their dind daemon has no mirror, so those builds hit 429 as soon as a few lanes ran at once: eight arm64 legs between 22:47Z and 22:59Z on 2026-10-02. Read each Dockerfile's docker.io ARG defaults and pass them as build-args on the mirror; give capd-reboot-controller and the node image the ARG they lacked; pull kindest/node through the mirror too. nico-vms gets the same variable. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * fix(e2e): mirror the two remaining Docker Hub pulls and fix the mirror probe The first mirror runs of this change still showed two docker.io pulls. The nkectl bootstrap lane builds the controller image with nerdctl directly in the workflow, outside the lane scripts, and configureDockerHubMirror covers the bootstrap cluster's node rather than the host's containerd; it now passes the same build-args. The CAPNICo provider image is built from the staged module, whose Dockerfile names golang directly with no ARG; install-capnico.sh now feeds BuildKit a copy on stdin with official-image bases pointed at the mirror. build-image.sh's reachability probe treated the registry's 401 token challenge as no answer; it now accepts 200 and 401. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> --------- Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> |
||
|
|
1554df102f |
fix(e2e): state the control-plane mode when running a single filter (#1063)
* fix(e2e): state the control-plane mode when running a single filter #1054 flipped PROVISION_CONTROL_PLANE_WITH_CONTROL_PLANE_CONTROLLER to default true. local-backend-e2e.sh only exported the flag on its sequential two-leg path; a single-filter run left it unset and relied on CWE's default being the node-pool control plane. That default is now flag-on, and the Tiltfile only adds the container env when the value is non-empty, so the deployed CWE came up flag-on and rejected the node-pool specs at create: control-plane node pools are not allowed when control-plane controller provisioning is enabled; configure the control plane via the cluster-level controlPlaneConfig local-entrypoint-e2e.yml takes exactly that path on a pull-request branch: it sets LOCAL_NKE_E2E_LABEL_FILTER='core-docker || health' and LOCAL_NKE_E2E_SINGLE_RUNNER_CAPD_CONTROL_PLANE_MODES=false, so all three legs failed in about 40ms on the first create, with the rest of the suite skipping behind it. The single-filter branch now defaults the flag to false rather than leaving it unset. Defaulted, not forced, so a cp-controller filter with the flag set to true explicitly still selects that path. Also corrects the comment above the env in backend-e2e.yml, which stated that an empty value keeps the node-pool control plane. That was the same assumption this fixes; the lane is safe only because the boolean input renders a literal "false". Signed-off-by: Terry Howe <thowe@nvidia.com> * fix(e2e): state the control-plane mode in the CI script too controller/hack/ci/backend-e2e.sh carried the same latent bug the previous commit fixed in local-backend-e2e.sh: the flag was forced only on the sequential path, and the single-mode path forwarded it empty-when-unset to the CWE deploy (deploy-sbom and Tilt) and to the e2e binary. Every CI caller reaches this script through backend-e2e.yml, whose provision-cp-with-controller is a boolean input and so always renders a non-empty true/false -- the empty case is unreachable today. That is exactly the fragile assumption this PR set out to remove, so resolve the flag to a concrete value once, right after the sequential-mode block, and drop the now-redundant ${VAR:-} fallbacks at each use so the invariant is visible. Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: Terry Howe <thowe@nvidia.com> |
||
|
|
db92c86493 |
fix(e2e): pass the soft-reboot flag to the deploy step (#1034)
deploy-sbom.sh runs through `runner_exec env` with an explicit allowlist, so it sees only the variables named there. NODE_REBOOT_SOFT_REBOOT_ENABLED was not one, which is why cwe_env_json never emitted it after #1033 and CWE kept taking its true default. PROVISION_CONTROL_PLANE_WITH_CONTROL_PLANE_CONTROLLER is in the list for the same reason and works. Only the Tilt invocation passed the reboot flag, which is why Tilt lanes pass the reboot spec and deploy-path lanes do not. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> |
||
|
|
b341d97b1e |
feat(deploy): replace the composition generator with three hand-authored deploy paths (#812)
* feat(composition): install the CAPD e2e lane from a generated SBOM deploy path
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* refactor(build): retire nke-stack.sh install and its phase helpers
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* feat(deploy): hand-author the capd-e2e deploy path, one release per component
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* feat(build): per-item values and a spire chart materialiser
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* refactor(build): drop the umbrella's registry half, which nothing invoked
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* feat(ci): install the CAPD e2e lane from deploy/capd-e2e
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* refactor(composition): drop the capd-e2e target, now hand-authored under deploy/
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* refactor(build): retire nke-stack.sh, keeping only the spire materialiser
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* fix(ci): create the staging root before copying into it, and drop the spire release override
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* refactor: delete the generation layer
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* fix(deploy): follow the controller chart's rename to nke-controller
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* feat(deploy): add the capnico-e2e deploy path
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* feat(deploy): make CAPNICo an item of the capnico-e2e deploy path
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* feat(build): render template items against a BootstrapConfig
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* feat(ci): let deploy-sbom.sh drive capnico-e2e as well as capd-e2e
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* feat(deploy): carry CAPNICo's CRDs, and patch the CAPI controllers after spire
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* docs(site-bootstrap): add .Nico to the BootstrapConfig reference
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* feat(ci): run capnico-e2e from its deploy path, with CAPNICo outside it
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* feat(ci): default the NICo lane to its deploy path
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* fix(deploy): drop the Helm ownership metadata from capnico-system
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* fix(ci): run the E2E lanes when the deploy path changes
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* fix(deploy): accept both provider blocks on the capnico-e2e lane
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* feat(deploy): add the capnico-forge deploy path, proven on az61
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* refactor(deploy): install spire from the published chart, drop spire-chart.sh
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* fix(deploy): stop the SPIRE webhook race failing every e2e lane
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* docs(build): mark the three SBOM scripts transitional, tracked in #873
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* build: add licence headers to the two SBOM python scripts
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* refactor(deploy): move the deploy paths under controller/deploy
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* feat(deploy): pin the controller image and the postgres digest on capnico-forge
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* docs(deploy): describe the reference run without naming the site
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* fix(ci): pass the SPIRE attestation method #850 made required
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* docs(deploy): drop references to internal repos, docs and scripts
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* fix(deploy): accept both provider blocks on the site path too
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* refactor(deploy): rename capnico-forge to nke-sbom
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* docs(deploy): say NICo site rather than naming the backend
Signed-off-by: Jayson Du <jaydu@nvidia.com>
* fix(deploy): pin the controller image to a build past the SPIRE change
The nke-sbom path pinned ghcr.io/dsx-ai-factory/nke/controller:v0.1.1-rc.6,
which predates #850 by nine days. #850 removed
infra.spireAttestationMethod from the cluster and node-pool APIs and moved
the choice to nodeAgent.spireAttestationMethod in this chart's own values,
so a site controller running any image built before it rejects this
checkout's nkectl with
400 Bad Request: infra.spireAttestationMethod is required
at "creating the site cluster".
GHCR cannot supply a fix today: it publishes release tags only, and no
release has been cut past #850 -- its newest, rc.8, is revision
|
||
|
|
cb45daf924 |
fix(e2e): restore agent bundle flags before kubeadm init (#1011)
- Pass the bundle mirror URL to container-backed E2E requests. - Restore the agent bundle flags after bootstrap writes its config. - Preserve post-init CNI coverage and test the generated command. Signed-off-by: Vivin Wilson <vwilson@nvidia.com> |
||
|
|
1fa62144b5 |
ci(e2e): capture static control-plane container logs (#950)
When the tenant control plane crashloops, the e2e diagnostics record that it is happening but not why. crictl ps -a shows kube-apiserver on its second or third attempt, and every other captured signal -- kubelet unable to reach :6443, SPIFFE identity never issued, CNI uninitialised -- is downstream of that. The container's own stderr, which carries the actual reason, was never collected. A recent regression was diagnosable only by bisection for exactly this reason: the artifacts proved the API server was restarting and gave no way to find out what it was complaining about. Collect kube-apiserver, etcd, kube-controller-manager and kube-scheduler logs per node. crictl ps -a is used deliberately so the exited attempts are included, since those are the ones carrying the failure. The file is written before redact_diagnostics runs, and that walks the whole state directory rather than a fixed list, so the new output is redacted like everything else and the run still fails closed if a secret pattern survives. Signed-off-by: Terry Howe <thowe@nvidia.com> |
||
|
|
8e8023f5af |
feat(controller)!: configure SPIRE attestation at deployment (#850)
- remove SPIRE attestation selection from cluster and node-pool APIs - add deployment-wide Helm configuration with TPM as the default - use controller configuration for CAPI bootstrap and join-token creation - add chart assertions for the deployment contract BREAKING CHANGE: Cluster and node-pool API requests no longer accept spireAttestationMethod. Configure nodeAgent.spireAttestationMethod in controller Helm values instead. Signed-off-by: Vivin Wilson <vwilson@nvidia.com> |
||
|
|
94dcddeb8e |
fix(e2e): bound the three docker calls that reach a registry (#894)
backend-e2e.sh bounds every other long-running call with the tool's own flag: kubectl --timeout, kind --wait, curl --connect-timeout, ginkgo --timeout. Docker has no equivalent, and coreutils timeout is used nowhere in controller/hack, so this adds the idiom rather than finishing one. Only the three that reach a registry are wrapped -- the alpine and nginx pulls behind docker create and docker run, and docker pull of the runner image. docker cp, volume create and rm are local and already bounded by the disk. timeout is absent from a stock macOS, where this script is also run by hand through local-backend-e2e.sh, so the helper falls back to running unbounded rather than failing under set -e. DOCKER_PULL_TIMEOUT defaults to 10m and can be overridden. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> |
||
|
|
8dcfbdaad7 |
test(e2e): keep the CWE log across deployment rolls (#859)
CWE is the one deployment the run rolls -- redeploy_cwe flips the control-plane-controller flag between the legs, and it rolls again near the end. `kubectl logs deployment/...` at teardown reaches only the pod that survived, so the bundle carries the last pod and nothing else. Run 35364887944 shipped a 20-line cwe.log that starts at 17:31:34, 50 minutes after the first spec failed at 16:41. The other controller logs were 1200 lines each and covered the whole run; CWE is the only deployment rolled, which is why it is the only one truncated. Follow the deployment for the run instead, re-attaching after each roll. The follower starts and stops with the CAPI state monitor, so it is already wired into every exit path and stops before redaction. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> |
||
|
|
031eed2d78 |
test(ci): nkectl smoke follows user-flow.md and runs in three lanes (#848)
* test(ci): bound the nkectl smoke's remaining calls Three docker cp calls and two runner_exec calls had no timeout, though the file says every call is bounded. A hang there costs the lane its whole diagnostics artifact, which is what the timeouts exist to protect. timeout cannot wrap a shell function, so the two runner_exec sites become nkectl_exec and a bounded docker exec. The detached -d port-forward stays unwrapped: it returns immediately and cannot hang. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * ci: run the backend lanes on the CLI packages the smoke asserts on cwe_facing decides whether a CLI-only pull request reaches the backend lanes, since e2e_unrelated excludes all of cli/. It listed neither providers nor util, both of which nkectl-smoke.sh asserts on, so a pull request touching only those skipped the lanes that test them. capd-e2e.yml mirrors the same list as push globs and moves with it, as its own comment asks. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * test(ci): cover the rest of the nkectl surface in the smoke version, config view, config use-site, generate sitespec and get kubeconfig had no smoke coverage. Every other command did. get kubeconfig is the one that matters. It reads the Secret nke-system/<cluster>-admin-kubeconfig through the site kubeconfig rather than through CWE, so no other smoke assertion touches that path. The write cluster sets autoProvisionDisabled and never provisions, so the Secret never appears: the not-found message is the assertion, and it proves the CLI resolved a real name and looked in the right place. nkectl_test.go already covers the provisioned case, but its specs carry the nkectl label, and the pull-request filter (core-docker || health) selects none of them. On a pull request the smoke is the only nkectl coverage there is. bootstrap site keeps its own lane. generate sitespec gets a wiring check only, since nkectl-bootstrap-e2e runs it for real. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * test(ci): assert the flags user-flow.md documents cli/docs/user-flow.md is the operator plan, and the smoke asserted only the forms it happened to use. Missing: -o yaml (step 7), --output-file (step 8), --patch-file (steps 9 and 11), the singular command aliases, and version -o short|yaml. --output-file is asserted on a failure: a fetch that fails must not leave a file a later step could read as a kubeconfig. Not added: deleting the last joined control-plane pool (step 12). The guard counts joined nodes and the smoke cluster sets autoProvisionDisabled, so it never has any; node_pools_test.go:1311 covers it. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * test(ci): run the nkectl smoke in the nico-vms lane too The smoke assumed an inner runner container. nico-vms has none, so the CLI runs on the host there. NKECTL_SMOKE_RUNNER picks the shape: a container name for the backend lanes, unset for the host. Not RUNNER_NAME. GitHub Actions sets that in every job, so "unset means host" is never true in CI. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> --------- Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> |
||
|
|
7534f16e23 |
fix(reboot): enable soft-reboot first for CAPI nodes (#573)
* fix(reboot): bound soft-reboot confirmation before falling back to hard CAPI reboot the hard CAPI Machine reboot annotation only if the soft-reboot RPC itself errored. On CAPD (and potentially real hardware) the RPC can ack successfully without the node ever detectably rebooting: CAPD's kubelet BootID is read from the host and doesn't change across a container restart, and capd-reboot-controller only writes reboot-complete-timestamp in response to the hard-reboot annotation being applied. With soft-first never applying that annotation on success, neither of waitForNodeReboot's two success signals could ever fire, so every capd/nico/local-backend reboot spec burned the full per-attempt timeout and failed. waitForNodeReboot now bounds the soft-reboot confirmation wait to input.SoftRebootConfirmTimeout. If no bootID change or completion annotation shows up in that window, it applies the hard CAPI Machine reboot annotation within the same attempt and waits out the remaining budget, rather than retrying the soft path indefinitely. SoftRebootConfirmTimeout defaults to 15m (NODE_REBOOT_SOFT_CONFIRM_TIMEOUT), comfortably inside the 30m NodeRebootInitialTimeout default so a real hardware boot (BIOS POST, NIC/GPU firmware init, kubeadm re-join) has room to finish on its own rather than being cut over to an out-of-band hard reboot prematurely. CAPD/nico/local-backend CI, which only need to observe a container restart, override it down to 2m via the Tiltfile and the e2e workflow env blocks. Also re-removes the dead Forge reboot path (rebootForgeNode, forgeHardRebootNode, the ForgeRebootNode activity) that predates #495's removal of InfraMode dispatch from this workflow, same cleanup #500 did. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> * style(reboot): trim comments Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> * test(reboot): drop unreachable hard-fallback-also-fails case ApplyCAPIMachineRebootAnnotation's activity options retry indefinitely (MaximumAttempts: 0, pre-existing), so a workflow-level test mocking a single failure with .Once() exhausts after the first retry: subsequent Temporal- driven retries have no mock match and fall through to the real implementation, which panics on the test's zero-value Activities{} (nil db). The scenario the test asserted - waitForNodeReboot's hard-fallback error branch returning to the caller - isn't reachable in finite time given the underlying activity's own infinite retry policy. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> * fix(reboot): raise production SoftRebootConfirmTimeout default to 30m 15m risked forcing a hard power-cycle on a node still mid-graceful-shutdown if the full drain+unmount+boot cycle ran long - reintroducing the exact containerd overlayfs corruption risk soft-first exists to prevent, just triggered by our own fallback instead of the original always-hard path. Matching NodeRebootInitialTimeout gives soft reboot the full first-attempt budget before ever considering a hard cutover; CI keeps its short override. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> * fix(reboot): skip hard fallback when no attempt budget remains waitForNodeReboot previously clamped a non-positive remaining budget up to PollingInterval and still applied the hard reboot annotation, giving it a token ~1m window at the tail of attempt 1 (where SoftRebootConfirmTimeout equals the attempt's full timeout by default). Skip the hard fallback entirely instead when there's no real remaining budget, matching behavior from before this bound existed for that case: hard only triggers from a soft-reboot RPC error on attempt 1, and the bound starts doing real work from attempt 2 onward, when a still-unconfirmed node is more likely genuinely stuck than just slow. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> * fix(reboot): disable the bound by default, only CI overrides it We don't have data showing a bounded window reliably covers a real hard reboot cycle (BIOS POST, firmware init, OS boot, kubeadm re-join), and firing the fallback early risks catching a node mid-graceful-shutdown - the corruption risk soft-first exists to avoid. Default SoftRebootConfirmTimeout to one minute above NodeRebootMaxTimeout so it always wins the comparison in waitForNodeReboot and the guard added in 6ca2cb98 skips the hard fallback: production stays byte-for-byte at pre-bound behavior (hard triggers only from a soft-reboot RPC error). CI backends override it low to make the bound real, where it's fully validated (capd-reboot-controller's completion signal is a 10s simulated delay, not a real boot). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> * test(reboot): fix test bugs found by actually running the suite MaxTimeout was never set in the RebootNodeInput test literals, so timeout := min(InitialTimeout, MaxTimeout) evaluated to 0, giving waitForBootChange an invalid zero ScheduleToCloseTimeout. Add it. waitForBootChange sets no explicit RetryPolicy, so a mocked activity error is retried by the SDK's default policy within its own ScheduleToCloseTimeout - matching pre-fix behavior, not a regression. That auto-retry was consuming the fallback-phase .Once() mock before the workflow's own code ever saw a terminal error, since both mocks matched on the same predicate and testify resolves ties by registration order. Distinguish the two phases by AnnotationAfterTime, which genuinely differs between them, instead of by assumed call order. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> * fix(reboot): replace SoftRebootConfirmTimeout with a plain enable/disable flag The duration-based bound never earned its complexity: production's default was tuned to always disable it (one minute above NodeRebootMaxTimeout, so it always won the min() comparison), and CI wanted an outright skip, not a short window. Both were really just two states of one switch. Replace it with SoftRebootEnabled (NODE_REBOOT_SOFT_REBOOT_ENABLED, default true). rebootCAPINode checks it directly and skips the soft RPC entirely when false, going straight to the hard CAPI Machine reboot annotation - not just a shorter wait before falling back. waitForNodeReboot no longer needs to know about soft vs hard at all: by the time it runs, rebootCAPINode has already decided and executed, so it collapses back to a single bounded wait for a boot change, same shape as before soft-first existed. CAPD and the NICo containers lane (nico-e2e, sharing backend-e2e.yml) both set this to false: neither can ever produce a detectable boot change from a container restart, so attempting soft only adds latency with no chance of success. nico-vms-e2e (real KVM VMs, independent kernels) and production keep the default enabled, since BootID genuinely works there. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> * fix(e2e): give the tenant-access GC spec the lifecycle label Without it, the spec was silently excluded by the standard capd && happy-path && (lifecycle || readiness) filter used by make test-e2e-capd, so it never actually ran despite building and appearing correct. Matches the label already on its sibling "deletes the cluster" spec it depends on. Verified against a live CAPD cluster: the admin kubeconfig secret was confirmed gone within a single check after cluster deletion completed. * fix(ci): forward NODE_REBOOT_SOFT_REBOOT_ENABLED into the Tilt runner container backend-e2e.yml already sets NODE_REBOOT_SOFT_REBOOT_ENABLED=false at the job level for every backend on this shared workflow (CAPD, NICo containers), but the Tilt deploy step runs inside a separate runner container via `docker exec env <explicit list> bash -lc 'tilt ci'`, and that explicit list never included this var. So it never reached Tilt, CWE deployed with the config default (true), and CAPD's reboot e2e spec attempted soft reboot -- which a container can never complete -- with no hard-reboot fallback on timeout, hanging for the full 10m budget and failing CI. Add it to the same explicit passthrough list as the other CI-only overrides (PROVISION_CONTROL_PLANE_WITH_CONTROL_PLANE_CONTROLLER). * style(reboot): keep CI-backend reasoning out of prod doc comments Per rbever-nvidia's review: the SoftRebootEnabled/NodeRebootSoftRebootEnabled doc comments explained *why* CAPD and the NICo containers lane disable this flag in CI, which is CI configuration detail, not something a production config field's documentation should carry. Describe what the flag does generically instead; the CI-specific reasoning already lives in the workflow files that set it. * docs(reboot): fix stale waitForNodeReboot comment Per rbever-nvidia's review: the comment still described the SoftRebootConfirmTimeout-era behavior (falls back to hard within the same attempt on timeout), which the prior commit's simplification removed from the body without updating the comment. A timeout here just returns an error; the caller's attempt loop retries from the top. --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> |
||
|
|
8378cb4fd2 |
ci(e2e): bound CAPD and NICo pull request coverage (#712)
* ci(e2e): bound CAPD and NICo pull request coverage Add dedicated one-control-plane, one-worker lifecycle entries for CAPD and NICo pull-request runs. Keep the comprehensive suite on main, scheduled, and manual runs while retaining health, nkectl smoke, both architectures, and a post-test cleanup gate in the focused path. Signed-off-by: Jonathan Meier <jomeier@nvidia.com> Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> * ci(e2e): bound local entrypoint pull request coverage Closes jomeier/jomeiertools#10 Run the dedicated CAPD core lifecycle in each local-entrypoint CNI variant on pull-request mirrors. Keep both comprehensive control-plane modes for main, scheduled, and manually dispatched runs. Signed-off-by: Jonathan Meier <jomeier@nvidia.com> Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> --------- Signed-off-by: Jonathan Meier <jomeier@nvidia.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |