Commit Graph
3 Commits
Author SHA1 Message Date
Lia 1dbd483a98 docs: the install pages follow the operator guide; the Deploy Path reference (#1616)
* docs: the install guide, the deploy README and the pages that point at the install

docs/site-bootstrap/install-site-controller.md describes
deploy/nvke-deploy.sh install: its inputs, the six steps, removal,
upgrade and the GitOps mapping. deploy/README.md lists every flag and
variable of the script. The first-cluster page, the docs index and the
site-bootstrap pages that pointed at deploy/install.sh point at the
command. The site spec reference and the e2e README no longer mention
a registry pull secret.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* docs(cli): user-flow follows the real order: release, site spec, bootstrap, one install command

The example starts with nvkr release verify and export, bootstraps the
site, then installs the controller stack with deploy/nvke-deploy.sh
install as one command. The deploy path is the interface and the script
is the reference executor; an operator can apply the items another way.
The command table replaces the two manual rows with that command, and
the dead README anchor is gone.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* docs: deploy-repository.md describes the deploy path as implemented

The page described tooling that no longer exists: a Go binary that
cloned a deploy repository and shipped it to the init node, ArgoCD items
with sync monitoring, a BootstrapConfig with database and monitoring
fields, and a deploy/reference directory. It now describes deploy/nico:
nvke-deploy.yaml, the four item types as nvke-deploy.sh applies them,
the template context the site spec supplies, what a render adds, and
what another executor has to do. The pages that linked to it as a
GitOps repository are updated with it.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* docs: nvkectl comes from the NVKR release; build from source without one

The release carries nvkectl as an executable output built from the same
commit as the controller image. The install page takes it from there:
read the output's reference from the release description, pull it, and
unpack the binary. Building from the clone stays as the path without a
release. The GitHub Releases download is gone.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* docs: the install guide offers the script, by hand and GitOps; the overview sends readers to it

The install guide's Release section is a paragraph with deep links to
NVKR's release quickstart. The install itself is three options that
apply the same deploy path: the script, the six steps by hand, and
GitOps. The overview's after-bootstrap section no longer tells readers
to install Cluster API and a provider first; the install does that, and
the page lists it as the fourth step.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* docs: the site spec page opens with its two parts and shows what validate says between them

The bootstrap part is all the bootstrap requires; the controllerStack
section is read by the install and can stay unfilled until then. The
validation section shows the output on a freshly generated spec: the
bootstrap line, the values still to fill in, and the non-zero exit that
says the bootstrap can run now.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* refactor(deploy): drop the argocd item type; docs no longer say NVKE needs Argo CD

No deploy path has an argocd item and nothing tested the code that
applied one. A deploy path is template, manifest and helm items; a
GitOps tool delivers the same items, as the install guide's GitOps
option describes. The concepts, lifecycle and pre-provisioned-nodes
pages said the stack is managed by Argo CD and installed from a deploy
repository; they now point at the install from the deploy path.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* docs: the install guide no longer lists an untaint step

The bootstrap removes the control-plane taint; the readiness check
reports one that is left.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* docs: the install guide separates what the install does from what the operator does

Five steps: readiness, Cluster API, the site controller, secure, verify.
The StorageClass, the site registration and the client network policy
are the operator's, listed after the install with the commands. The
deploy README, the user flow and the nico README match.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* docs: the site controller install is a list of commands

check-site.sh, clusterctl init, the executor, the release resources, the
exec-auth patch, then set-site and the network policy on the operator's
machine, each a command that stands on its own. The install guide gives
them in order with what each one does, how to take the executor apart,
and how a GitOps tool delivers the same items. The deploy README
describes check-site.sh and the executor; the user flow, the nico README
and the pages that pointed at a single command point at the list.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* docs: review fixes on the install pages

The removal section deletes the stack's namespaces and says what that
removes and what stays. The lifecycle page no longer installs CAPNICo a
second time. The credential claims are limited to the controllerStack
file paths, with registry.apiKey left to the environment. The values
order names the files a render adds. The CLI's plain-HTTP NodePort is
called out as trusted-network only. jq and oras are named where the
release download uses them.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* docs: review fixes on the install list

The release resources are published with nvkectl create, after the
site is registered; they are not manifests. The hand-apply and GitOps
recipes name helm dependency build for a path chart with a Chart.lock,
chart.setFile entries, and the nktp-cluster ConfigMap the base-config
item renders. The removal block pins its kubeconfig. The Deploy Path
page names the executor's one subcommand and says where an unknown item
type is refused. The first-cluster page folds the separate Cluster API
and CAPNICo install into the install guide's list and registers the
plain-HTTP NodePort. The nvkectl download filter accepts a description
whose executable output declares no architecture. Anchors fixed.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* docs: nvkectl create writes the release resources through the site kubeconfig

The step needs the registration, which records the kubeconfig, and not
the network policy, which admits clients to the controller API.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* docs: second review round on the install pages

The nico README publishes the release resources with nvkectl create
after set-site and leaves the taint to the bootstrap and the check. The
Deploy Path page names the executor's subcommand in its two examples.
The concepts page describes the PostgreSQL item rather than CNPG and
no longer names Argo CD as the GitOps controller. The local-run
sentence says what still comes from a repository and where images
land. The check prints the commands that remain. The GitOps section
says the render writes the per-site values. The validate sample shows
the trust-domain line. The custom base OS page no longer downloads
nvkectl from GitHub Releases.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* docs: the install pages that stay point at the operator guide

The legacy site-bootstrap pages are left as they are on main; the
operator guide under docs/operate describes the install. The CLI docs,
the deploy READMEs, the concepts, lifecycle and first-cluster pages and
the Deploy Path reference link to it. The install page publishes the OS
release resources with nvkectl create after nvkectl points at the API,
and the artifacts page writes them as the metadata-and-spec documents
that command takes; the check's description names the kubeadm
providers it confirms.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* docs: two links follow the install guide to the operator pages

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* docs: third review round on the install pages

The executor's parser no longer accepts argocd, so both parsers refuse
an unknown type before anything is applied, as the Deploy Path page
says. The command lists in the deploy README and the user flow include
the NetworkPolicy step. The first-cluster page publishes a second
release rather than the first. The artifacts page lists nvkectl among
its prerequisites and names the kubeconfig the publish goes through.
The check prints the commands that remain. The deploy README's Cluster
API and egress rows say what the check reads.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

---------

Signed-off-by: Lia Campbell <liac@nvidia.com>
2026-10-14 11:59:55 -07:00
Lia 44a136a877 feat(cli): the install reads the release description nvkr release export writes (#1598)
* feat(cli): the install reads the release description nvkr release export writes

The release input is the nvkr.dev/release-description/v1 document: every
output with its reference and digest, a native output's os and arch, a
multi-arch image's index children, and a chart's version. The reader takes
only that schema. The render refuses a chart the release carries at another
version than the item pins. inspect nvkr-release prints the reference, the
root digest and the declared qualification.

The export describes a release and verifies nothing; nvkr release verify
decides that for the same reference.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* fix(cli): the chart-version check applies to repository charts; the reader refuses filtered and malformed descriptions

A path chart's pin is a placeholder the chart at the path overrides, so
the release's version is noted, not compared. A repository chart's pin
selects what installs: the release has to name that version, and a
missing one is refused too. The reader refuses a filtered description,
an image index without children or missing a required platform, an os
without an arch, an output carrying both arch and an index, and a
platform that is not os/arch; a platform outside the supported set is
reported by Select for the output asked for, not at parse. Select takes
a suffixed name's own suffix as its architecture and prefers the suffixed
output named for the architecture. The package doc and the help say the
export is unverified and verify runs first.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* fix(cli): the release decides the version of every chart it carries

A chart the release carries is installed from the release's archive by
digest, so its version is the release's: the rendered release.yaml records
it. A pin that names another version is a warning that points at the
item's values, not a refusal; the pin decides only for a chart the
release lacks. The 0.0.0 placeholder of a chart in this tree is no
difference.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* feat(deploy): a path chart names no version

A repository chart is selected by its version, so release.yaml pins one.
A path chart carries its own in its Chart.yaml, and a release that
carries the chart decides, so the pin is gone from the controller and
nktp items in deploy/nico and the e2e deploy paths. Both readers accept
the absence; the rendered copy records the release's version.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* fix(cli): a platform variant is its architecture; path charts in the e2e paths name no version

Select and the required-platform check compare on os/arch, so a child
published as linux/arm64/v8 serves linux/arm64. The item parser refuses
an empty version on a repository chart like the Go reader does. The e2e
postgresql items lose their version like the controller items did, and
the stack script's words about pins match. gofmt on the test file.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

---------

Signed-off-by: Lia Campbell <liac@nvidia.com>
2026-10-13 13:07:50 -07:00
Lia ac96cd13f0 feat(cli): render a deploy path for the site the site spec describes (#1567)
* feat(cli): render a deploy path for the site the site spec describes

nvkectl render deploy-path copies a deploy path and resolves it for the
site: the controller, SPIRE, PostgreSQL and Temporal items get a
site-values.yaml built from the site spec's controllerStack section (the
database password, the OIDC discovery URL, the SPIRE server address and
identity, the controller's admin ID, the TPM attestor checksum, the
bootstrap CA, a registry mirror), template items are rendered with Go
text/template and become manifest items, and site.env names the site.
Secrets are read from the files the spec names and written into the
result, so it is created 0700 and is for one install. The executor
installs the result with no --config. deploy-test joins the merge gate
with the executor's dry-run suite; the executor stops on a parser
failure instead of installing nothing.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* docs(cli): name the item list file by its current name

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* fix(cli): review fixes for the site render

A rendered tree installs from anywhere: a committed chart.path is written
absolute, and the executor takes an absolute chart.path as is. Secrets
holding a quote, a backslash or a control character are refused by
field, since the templates carry no escaping. spire.ca*File resolve from
the working directory, as bootstrap site reads them. The OIDC domains are
read from the overlay as YAML, so a comment inside the list no longer
truncates it. --out is created first with Mkdir, so an existing directory
is left alone, and --out inside the deploy path is refused. A manifest
item's image: rejects a digest. nktpValuesFile without an nktp item is a
problem. The bootstrap's TPM checksum lookup calls the exported one. The
test suite's mode check is portable and its order check can fail.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* fix(cli): refuse a checkout path with whitespace in the render

The rendered chart.path is one unquoted token for the deploy path reader,
so a checkout under a directory with a space rendered and then failed at
install time. The render now reports it. The --out guard resolves symlinks
before comparing with the deploy path.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* refactor(cli): export the TPM attestor checksum lookup as is

Rename tpmPluginChecksum instead of wrapping it; the render tests for an
empty checksum like the bootstrap does.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* fix(cli): refuse unknown item types and whitespace in absolute chart paths

Items accepts only the four types the executor dispatches. The whitespace
check covers an absolute committed chart.path too. The nested --out test
runs on a copy of the deploy path.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* feat(cli): keep the database password in the operator's file only

controllerStack.database.passwordFile is required. A missing file is
created with a generated password, 0600. The rendered tree holds no
db-password copy.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* feat(deploy): reference the SPIRE CA with chart.setFile instead of copying it

A helm item's release.yaml takes chart.setFile: <helm key>=<absolute path>
entries the executor passes as --set-file. The render points the spire
item at the operator's CA files; spire/site-values.yaml holds no PEM.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* feat(cli): name the credential files of a rendered deploy path

The render lists the files under --out that hold a credential and writes
a .gitignore that ignores the tree, so the operator knows what to delete
and a repository does not pick it up by accident.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* feat(cli): refuse a rendered deploy path under a shared temp directory

--out under /tmp, /var/tmp, their /private forms or the process temp
directory is refused before anything is written. Tests opt out through
RenderOptions.AllowTempOut; the deploy suite through
NVKECTL_RENDER_ALLOW_TEMP_OUT=1.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

* fix(cli): keep temporal's passwords under a mirror and refuse incomplete site values

A mirror merges into temporal's server values instead of replacing them.
The render refuses a missing profiles image when the deploy path enables
profiles.image, an empty secret file, a template value the templates
cannot carry, an image override with no tag or digest, a template item
with no template, and an item named . or ... A symlinked deploy path is
resolved; copied files keep their owner exec bit.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Lia Campbell <liac@nvidia.com>

---------

Signed-off-by: Lia Campbell <liac@nvidia.com>
2026-10-12 16:41:34 -07:00