Repository navigation
feat(provider): type managed Kubernetes resource settings - #12855
Merged
Merged
Conversation
nemoclaw_kubernetes_storage, nemoclaw_kubernetes_auth, and nemoclaw_kubernetes_gateway took one SDK-compiled spec string, so an HCL author could not declare a Kubernetes or OpenShift gateway without reproducing the SDK's internal JSON. The three resources take the cluster target and identity as attributes: name, compute_driver, endpoint, kubeconfig_env, context, namespace, authentication_profile, and an optional environment list, with owner and generation optional and generated on create. The SDK compiles the attributes, reads them back from state for bound resources, and compares them during teardown, plan, and export checks. Closes #12785.
Contributor
|
v1 documentation preview: https://nvidia-preview-nemoclaw-v1-pr-12855.docs.buildwithfern.com/nemoclaw |
The resource adapter requires every attribute in an observation. With no environment list the Kubernetes row omitted environment_json, so apply failed with an incomplete observation in the Helm recovery lifecycle tests.
cv
enabled auto-merge (squash)
October 8, 2026 19:55
This was referenced Oct 8, 2026
cv
added a commit
that referenced
this pull request
Oct 8, 2026
…12860) ## Failure Two live workflows on `v1` turned red after my PRs. Both run only on pushes to `v1`, so neither PR ran them: - **[Live / Docker](https://github.com/NVIDIA/NemoClaw/actions/runs/37837713421)**, red since #12831. `managed_gateway_plan_apply_noop_destroy_and_recovery_use_real_opentofu` failed with "Apply incomplete: observation is incomplete". The resource adapter requires an observation to report every attribute, empty or not. Docker gateway storage omits `endpoint`, because its data does not depend on the listen port, so its observation left the attribute out. - **[Live / Kind](https://github.com/NVIDIA/NemoClaw/actions/runs/37837713424)**, red since #12855. `kubernetes_live::the_gateway_installs_authenticates_and_is_removed_keeping_storage` still read the removed `spec` attribute of the compiled gateway target. ## Decision - Managed gateway observations report an omitted `endpoint` as empty, as Kubernetes observations already do for an omitted `environment`. - The Kubernetes live test builds the specification from the typed attributes with `Spec::from_row`. ## Validation - A new unit test checks that gateway and storage observations report every configured attribute for Docker and Podman. It failed on Docker gateway storage before the fix. - Run locally against a rebuilt bundle: - `cargo ci live-docker` passes, including the managed gateway lifecycle test. - `cargo ci live-kind` passes, including the gateway install test. - Workspace clippy at `-D warnings` and fmt are clean.
cv
added a commit
that referenced
this pull request
Oct 9, 2026
Part of #12782. ## Failure #12782 is done only when every type is exercised by an authored configuration through pinned OpenTofu. Four `nemoclaw` types had no such configuration: - `nemoclaw_kubernetes_auth` - `nemoclaw_kubernetes_gateway` - `nemoclaw_ollama_external_model` - `nemoclaw_runtime_image` `kubernetes_hcl`, added in #12855, was also missing from the lifecycle profile, so CI never ran it. ## Decision - **Kubernetes:** `kubernetes_hcl` plans storage, authentication and the gateway together without a cluster. The authentication and gateway resources take the storage's generated `owner`, as the provider guide requires. An invalid namespace is rejected at the attribute on every resource. In that check each resource names its own owner, because OpenTofu skips resources whose dependencies fail validation. - **External Ollama model:** `service_storage` applies proxy storage with generated identity and an external model that shares it, against Docker and Ollama fixtures. Changing the upstream digest then stops planning and names `services.local.upstream`. - **Runtime image:** `runtime_image` reads an image's labels through a read-only Docker fixture and reports `available`. An image without a required label fails the check. - **CI:** `kubernetes_hcl` and `runtime_image` join the lifecycle profile. `fabric_sandbox_readiness` stays with the remaining #12788 work, which changes its inputs. ## Validation The lifecycle profile ran these three groups locally through pinned OpenTofu: 7 tests, all passing. Clippy at `-D warnings` and fmt are clean. This PR adds tests only; production code is unchanged.
This was referenced Oct 9, 2026
6 tasks done
cv
added a commit
that referenced
this pull request
Oct 9, 2026
Closes #12883. Part of #12876. ## Failure `Live / Docker` and `Live / Kind` ran only on `v1` pushes. #12831 and #12855 merged with passing pull request checks and turned `v1` red ([Docker](https://github.com/NVIDIA/NemoClaw/actions/runs/37837713421), [Kind](https://github.com/NVIDIA/NemoClaw/actions/runs/37837713424)). ## Decision - **Pull request trigger:** both workflows now run on pull requests to `v1`. Pushes, `run-live-*` branches, and manual runs are unchanged. - **Change check:** on a pull request, each job first runs `nemoclaw-build changes live` and skips its remaining steps when the change cannot affect the suite. - The check uses the same determinator and guppy analysis as `changes images`. - It analyzes a live build: the packages whose tests run live (`nemoclaw-build`, `-e2e`, `-provider`, `-runtime`, `-sdk`) and the CLI and providers the bundle ships, with their dependencies and tests. - **Path rules:** `.config/determinator-live.toml` classifies files outside crates. - Changes under these paths run the suite: `examples/`, `image/`, `runtimes/`, `schemas/`, `versions.json`, the toolchain, `.config/nextest.toml`, `.github/actions/`, and the live workflows. - Documentation, other workflows, and repository tooling skip it. - Unclassified files, dependency or feature changes in the live build, and failed analyses run it. - **Concurrency:** a newer pull request run cancels a superseded one. Push runs still finish. - **Docs:** `docs/contributing/testing.md` describes the trigger and how to check the decision locally. Neither live workflow is a required check, so a skipped run doesn't block merging. ## Validation - **New tests:** `nemoclaw-build` tests decide on a committed temporary workspace, as the image tests do. - Documentation, another workflow, and a package outside the live build skip the suite. - Each live package and each live input path runs it, as does an unclassified file. - The tests failed before `changes live` existed, and the image tests still pass. - **This branch:** `changes live --base origin/v1` reports `live=true`, because `nemoclaw-build` changed. - **Checks:** the `nemoclaw-build` integration tests pass (77). clippy at `-D warnings` passes with and without default features, and fmt is clean. - **Workflow:** this pull request runs both live workflows for the first time.
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #12785. Part of #12782.
Failure
nemoclaw_kubernetes_storage,nemoclaw_kubernetes_authandnemoclaw_kubernetes_gatewaywere the lastnemoclawtypes that took one SDK-compiledspecstring. An HCL author could not declare a managed Kubernetes or OpenShift gateway without reproducing the SDK's internal JSON.Decision
name,compute_driver(kubernetesoropenshift),endpoint,kubeconfig_env,context,namespace,authentication_profileand an optionalenvironmentlist.ownerandgenerationare optional and computed, generated on create. Generated graphs keep supplying the SDK's values.environmentis alist(string)carried through the existing structured adapter. Thenemoclawprovider now serves types with structured inputs through that adapter.environmentlist.spec. Since feat(provider): type gateway resources and service observation inputs #12831, managed gateways and their storage had dropped out of that export check; this restores it.owner, because their receipt is keyed by owner and name.docs/limits.mdand the provider guide no longer list compiled-spectypes; nonemoclawtype takes one now.Validation
environmentlist on all three resources.nemoclaw_kubernetes_storagein HCL and plans it through pinned OpenTofu without a cluster. It also rejects an invalid namespace at its attribute.nemoclaw-sdk,nemoclaw-providerandnemoclaw-buildtests pass.-D warnings, fmt and the schema check are clean.The draft #12736 already conflicts with
v1. It also editsnemoclaw-provider/src/provider.rs,services/validation.rsanddocs/provider.md, so it will need to follow these attributes.Follow-up
The first CI run failed five Helm recovery lifecycle tests with "observation is incomplete". The resource adapter requires every attribute in an observation, and a Kubernetes row without an
environmentlist left outenvironment_json. Observations now report it as empty. A new unit test checks that each Kubernetes observation reports every attribute; it failed before the fix. The 14 Helm recovery tests and the SDK's Kubernetes and export tests pass against a rebuilt bundle.