mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-07 04:35:58 +08:00
* feat(cli): the stack install reads a stack config file The controller stack install takes its site-specific input from a JSON file of its own, the stack config, loaded by the new cli/internal/deploypath/stackconfig package: the NICo API and the optional image overrides and mirror. The file is decoded strictly through sigs.k8s.io/json, so an unknown, duplicate or differently cased key is refused, as are a REPLACE_* placeholder, an empty required value, a null object, an endpoint without a scheme or with a user and password, and a mirror with a scheme. Every problem is reported at once as "<json path>: <problem>", a stray key beside the value problems. The credentials stay in the environment and move to the same package: NVKECTL_NICO_TOKEN, NVKECTL_NODE_USER, NVKECTL_NODE_PASSWORD and NVKECTL_DATABASE_PASSWORD are the stack install's input, not the site spec's. The site spec carries the bootstrap's fields only: the site name, the control-plane VIP, the SPIRE trust domain and CA. The render reads both files, --sitespec with --stack-config and neither without the other, and takes the nodes' architecture from --arch, validated, for both the release artifacts and the SPIRE TPM attestor checksum; without the flag the host's architecture is used with a warning. nvkectl inspect stack-config, a hidden reader like inspect sitespec, validates the file and the credentials and prints STACK_CONFIG, STACK_NICO_ENDPOINT and STACK_NICO_ORG_ID for the install scripts. validate sitespec checks the site spec and prints "valid"; inspect sitespec prints the three site facts. deploy/examples/stack-config.json is the operator's starting point. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * feat(deploy): the scripts take --stack-config and read the node architecture check-site.sh and nvke-deploy.sh take the stack config beside the site spec and refuse one without the other. Both start with an inputs line that names the two files, the site and the NICo endpoint. The check validates the stack config and the NVKECTL_* credentials through nvkectl inspect stack-config and fails on nodes that report two architectures or none. The executor reads the architecture from the cluster and passes it to the render as --arch; --arch on the executor stands in for the read, and a dry run with an unreachable API renders for the host. The kind lane fills a stack config template next to the site spec template. The deploy READMEs and the cli docs describe the file. Co-developed-by: Claude <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> * docs(operate): the install reads a stack config file The install page gets a "Write the stack config" section with the credentials step, the example file and every key. The inputs table, the artifact-source table, the check and install commands, the troubleshooting entries and the pages that link to the section follow. The node architecture is read from the cluster, so no page asks for it. Co-developed-by: Claude <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Lia Campbell <liac@nvidia.com> --------- Signed-off-by: Lia Campbell <liac@nvidia.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
13 lines
212 B
JSON
13 lines
212 B
JSON
{
|
|
"nico": {
|
|
"endpoint": "REPLACE_NICO_ENDPOINT",
|
|
"orgID": "REPLACE_NICO_ORG_ID",
|
|
"apiName": "REPLACE_NICO_API_NAME"
|
|
},
|
|
"images": {
|
|
"controller": "",
|
|
"profiles": ""
|
|
},
|
|
"mirror": ""
|
|
}
|