Files
Ron Compos 1aaa4e5603 ci(validate-image): stop publishing the site validation image (#2142)
* ci(validate-image): stop publishing the site validation image

Delete image-validate-nvcr.yml, which built the validation image on every
main push and controller tag and pushed it to DSX on nvcr.io. Nothing in
this repository pulls it. A site builds the image from its controller's
release tag instead, as "Building the image yourself" in
controller/test/e2e/README.md describes, so it still runs the tests that
shipped with its controller.

image.yml's PR build of the image stays: it pushes nothing, and it catches
a Dockerfile or .dockerignore mistake, or a build that no longer
reproduces, before a site's own build of a release tag does.

The README, the Makefile and Dockerfile comments, and
docs/artifact-publication.md no longer describe a published image or its
attested digest.

Signed-off-by: Ron Compos <rcompos@nvidia.com>

* docs(e2e): how a site keeps its validation image current

With the image no longer published, a site builds one image per controller
version it runs. Describe building each controller release tag when it
appears, choosing the image by the site's controller version, and setting
NVKE_CONTROLLER_EXPECTED_VERSION to the image's tag so a mismatched site
fails the version check.

Signed-off-by: Ron Compos <rcompos@nvidia.com>

* docs(e2e): say what CI checks about the validation image's reproducibility

CI builds the image twice on one runner and compares the digests. It does not compare builds across machines or BuildKit versions, so the docs no longer say the digest is the same wherever the image is built.

Signed-off-by: Ron Compos <rcompos@nvidia.com>

* docs(e2e): build the validation image from v0.3.0 with a docker-container builder

The examples built controller/v0.2.0, which predates the Dockerfile; v0.3.0 is the first tag that has it. The two-platform OCI and push builds also need a docker-container buildx builder, which Docker's default driver is not.

Signed-off-by: Ron Compos <rcompos@nvidia.com>

* docs(e2e): a manifest and steps for running the validation image on a site

The README described the runner's RBAC in prose and had no Job to apply. deploy/validate-site.yaml runs the site checks as a Job with exactly that RBAC and keeps the results on a claim; validate-site-token.yaml lets it mint the controller API token where the controller authenticates; validate-site-artifacts.yaml mounts the claim so the reports can be copied out. "Running it on a site" fills in the placeholders from the site, applies the files, and reads the result.

Signed-off-by: Ron Compos <rcompos@nvidia.com>

* docs(e2e): fix the site run steps from review

Take the expected Kubernetes version from what the site is meant to run, not the API server, which check 9 compares with it. Run the steps from the directory holding the checkout rather than a cd that depends on the earlier examples. Take the manifests from main where the release tag predates deploy/, as controller/v0.3.0 does. Apply the token grant when either apiAuth in the controller's settings or an nvke-auth-config ConfigMap turns authentication on. Read the Job's conditions rather than reporting a wait timeout as a failure.

Signed-off-by: Ron Compos <rcompos@nvidia.com>

* docs(e2e): tighten the site run steps from review

Check both the current and older nke- names of the controller's settings and authentication ConfigMaps, and print the whole apiAuth section rather than three lines of it. Say which optional variables need more RBAC than validate-site.yaml grants. Say that a Complete Job can still have skipped specs, and that a Failed one can be a pod or deadline failure rather than a failed spec.

Signed-off-by: Ron Compos <rcompos@nvidia.com>

* ci(validate-image): push the validation image to a throwaway registry

The validate-image job now runs make validate-image-push against a
registry it starts on a random loopback port, and checks that the pushed
index is the one the OCI builds gave and that its tag resolves to it.
Nothing in CI exercised the push target a site uses before this.

Signed-off-by: Ron Compos <rcompos@nvidia.com>

* docs(e2e): fix the image path, checkouts, auth check and reruns from review

- Run and extend <repository>:<tag>, the path validate-image-push writes.
- Check out each tag into its own nvke-<version> directory.
- Find the controller by its app.kubernetes.io/name label, and pass its
  Deployment name to the suite as NVKE_CONTROLLER_SERVICE.
- Read whether the controller authenticates from its nvke-auth-config
  volume, which covers a ConfigMap of any name, without hiding errors.
- Delete the claim with the Job before a rerun, so no stale report
  survives.
- Quote every placeholder, and keep the artifacts pod up until deleted.

Signed-off-by: Ron Compos <rcompos@nvidia.com>

---------

Signed-off-by: Ron Compos <rcompos@nvidia.com>
2026-11-12 15:28:00 -07:00
..