* 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 0384e4a375)
* ci: free disk before the package reproducibility builds
cni-ovn's double build used 7.6 GB of the 13 GB a fresh ubuntu-latest runner had free; a fuller one died with "No space left on device" on pull-request/1694 at 13:23Z 10-16.
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
(cherry picked from commit 6fc0e7990ab96fa9eb0e91ef6e04a635e5917f17)
---------
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
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>
* 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>
* chore: say NVKE in the comments that still said NKE
The word NKE in comments becomes NVKE: Go comments through the token
scanner, so no string literal moves; proto doc comments, with the
generated *.pb.go files regenerated by `make -C agent protos`; and the
comment lines of YAML, shell, Make, Tilt, systemd, Packer, Nix and
template files. The provisioned provider's CRD description comes from a
doc comment, so `make -C cluster-api-provider-provisioned manifests` and
`make -C cli provider-manifest` regenerated the CRD and the CLI's
embedded copy of it.
Kept on purpose: the comment quoting the "NKE Agent Version:" line the
updater parses, and the comments about the NGC organisation that is
named NKE.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
* chore: say NVKE in the display text that still said NKE
User-facing text that carried the word NKE now says NVKE: nvkectl help
text; log, error and condition messages; Ginkgo suite and spec names;
deb and OCI package metadata; systemd unit descriptions; workflow step
names and input descriptions; Helm render failures; and the nine
Markdown lines the prose sweep (#1462) missed. The tests that assert
these strings move with them.
Kept on purpose, because something parses or persists them: the
"NKE Agent Version:" and "NKE Agent Updater Version:" lines the updater
reads; the "update NKE RBAC:" errors of the UpdateNKERBAC rpc; the 2025
migration text; the OIDC upstream CA's CN and OU, since re-issuing that
CA would break tenant trust; the nico-sim tenant "Forge-Tenant-NKE"; the
Keycloak lab realm; and the NGC organisation that is named NKE.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
---------
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Public chart tarball and ghcr.io image, no NGC key, both arches, like
cni-calico. OVS stays on the host via tags.ovs-node; the agent applies
upstream's values-single-node-zone.yaml first and values-nke.yaml last.
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
* fix(os-image): install the nke-agent Debian package during baking
Build and stage the architecture-specific agent package, defer startup during image creation, and preserve SPIRE ordering in a systemd drop-in. Verify package ownership in boot smoke.
Co-Authored-By: Codex <noreply@openai.com>
Signed-off-by: Cullen McDermott <9535761+cullenmcdermott@users.noreply.github.com>
* build(agent): package with nfpm alongside other node packages
Move Debian metadata and maintainer scripts to os-image/packages/nke-agent/packaging and use the shared nfpm version pin through the existing agent deb targets.
Co-Authored-By: Codex <noreply@openai.com>
Signed-off-by: Cullen McDermott <9535761+cullenmcdermott@users.noreply.github.com>
---------
Signed-off-by: Cullen McDermott <9535761+cullenmcdermott@users.noreply.github.com>
Co-authored-by: Codex <noreply@openai.com>
Five places assumed GNU tools or bash 4. Each one is silent or misleading rather
than obviously broken, which is why they lasted: the repository has no macOS CI,
so nothing catches them.
Three `sed -i` sites. BSD sed reads the argument after -i as the backup suffix,
so `sed -i "s/..."` treats the script as the suffix and the filename as the
script. agent/Makefile:282 failed there, which broke `make deb-amd64` on a stock
Mac before it reached fakeroot; it now writes through a temporary file, which
both seds accept. backend-e2e.sh:81 and build-image.sh:182 pass several -e, and
that fails worse: sed takes the first -e as the suffix and the next as a
filename, so backend-e2e.sh's redaction pass exited non-zero having left the
diagnostics file UNREDACTED. Both now use -i.bak and remove the backup.
Verified against /usr/bin/sed: the old form reports "unescaped newline inside
substitute pattern", the new form substitutes correctly under BSD sed and GNU sed
alike.
etcd-member-remove.sh gets a bash 4 guard. It holds per-member health in an
associative array, and bash 3.2 does not reject `declare -A`: it warns on stderr,
falls back to an indexed array, resolves every non-numeric subscript to 0 and
exits 0. In a script that decides whether removing a member breaks quorum, every
member would report the last member's health. It is safe in production, because
the controller runs it on Linux nodes with bash 5, but anyone testing it on a Mac
gets silent corruption. shellcheck reports nothing for this at any severity, so a
guard is the only thing that catches it.
cluster-test.sh:260 used ${EXTRA_PACKAGES[-1]}, a negative index bash 4.2 added,
which is a hard error on 3.2. It now indexes from the length.
license.yml installed go-licenses @latest while agent/Makefile:297 and
controller/Makefile:295 both pin v2.0.1, so the workflow and the Makefiles could
reach different verdicts on the same tree, and the workflow's answer could change
with no commit. Now pinned to match.
Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com>
The agent module had no source-header enforcement — no boilerplate, no
Makefile target, and no headers on any of its files. It was consequently
absent from the license workflow's header matrix, which discovers modules
by their file-license-check target.
Add hack/boilerplate.addlicense.txt carrying the repository's Apache-2.0
SPDX identifier, per the "License headers" section of the root
CONTRIBUTING.md and the root LICENSE, plus the license and
file-license-check targets mirroring controller's, and stamp the existing
sources.
Ignored paths: generated *.pb.go (rewritten by `make protos`), build
tooling under hack/, build artifacts, Dockerfiles (addlicense keys off the
extension, so Dockerfile.proto gets C-style comments Docker cannot parse),
and samples/kubeadm-deploy/calico.yaml, an upstream Calico manifest that is
not ours to stamp.
Signed-off-by: Terry Howe <thowe@nvidia.com>
Drop the redundant "node-" prefix so the module path is
github.com/NVIDIA/nke/agent rather than stuttering as nke/nke-agent.
Controller still consumes the published gitlab node-agent module until a
follow-up cutover.