mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-07 04:35:58 +08:00
pull-request/2437
10
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
407218a442 |
feat(controller): adopt the cluster the NVKE controller runs (#2415)
* feat(controller): adopt the cluster the controller runs on behind a flag
Add POST /clusters/self-adopt, which records the cluster the controller runs
on as a cluster NVKE manages, without running kubeadm init. The endpoint is
served only when clusterSelfAdoptionEnabled is set in nvke-controller-config
(chart value clusterSelfAdoptionEnabled, default false). Otherwise it answers
400.
The controller reads the cluster with its own service account: the
control-plane Nodes, each with an InternalIP, and the Kubernetes version and
pod and service CIDRs from kube-system/kubeadm-config. The request carries
only what NVKE cannot read: name, NICo site and VPC (orgID optional), CNI
plugin and version, and etcdEncrypted. While the flag is on, the chart grants
that service account list on Nodes and get on kube-system/kubeadm-config.
Self-adopt returns 400 for no control-plane node, a node without an
InternalIP, a kubelet that differs from kubeadm-config, a version that is not
X.Y.Z, no or unsupported pod or service CIDRs, a second adoption, or an
existing Cluster API Cluster of the same name.
The adopted control plane stays with its operator, outside NVKE. Adoption
marks the cluster and its control-plane nodes as adopted, records desiredCount
as their number with no control-plane machine settings, and turns off
recycling, automatic scale-down and rebalancing:
- PATCH /clusters/{id} refuses turning those back on, controlPlaneConfig.nico,
controlPlaneKubernetesVersion, any desiredCount change and any control-plane
rollout field.
- DELETE /nodes/{id} on an adopted node returns 409, refused in the handler.
- The node-status sync never marks an adopted node for recycling, so
control-plane remediation never replaces it.
DELETE /clusters/{id} on an adopted cluster removes only NVKE's records and
leaves the cluster running. It returns 409 while the cluster has node pools,
so their workers are drained and released through the node pool delete first.
TeardownCluster then deletes the Cluster API Cluster and NicoCluster and the
adopted node and cluster rows, and never tears down a node.
An adopted cluster gets OIDCAuthEnabled false, since NVKE cannot configure its
API servers. Its provisioning workflow applies only the Cluster API scaffold:
node-local DNS and the Pod Security namespace labels stay with the operator.
Signed-off-by: Abhinav Pandey <abhinavmpandey08@gmail.com>
* fix(controller): keep maintenance off an adopted cluster and serialize self-adopt
Address review on the self-adopt change.
Keep NVKE from changing an adopted control plane in place:
- PATCH /clusters/{id} refuses turning on enableEtcdEncryption or enableOidc
for an adopted cluster, alongside the existing control-plane refusals.
- Scheduled certificate renewal skips an adopted cluster.
- stableControlPlane refuses an adopted control plane, which keeps on-demand
certificate renewal and etcd key rotation off it.
Make "adopts at most one cluster" hold across concurrent requests:
SelfAdoptCluster takes a transaction-scoped advisory lock (LockSelfAdoption)
and checks for an adopted cluster again inside the transaction that records
it, so a second adoption gets a 400. Also fix a stale comment that said an
adopted record cannot be deleted.
Signed-off-by: Abhinav Pandey <abhinavmpandey08@gmail.com>
---------
Signed-off-by: Abhinav Pandey <abhinavmpandey08@gmail.com>
|
||
|
|
3317737e1e |
refactor(api): rename the OS profile surface to releases (#1612)
* refactor(api): rename the OS profile surface to releases /osProfiles becomes /releases and nico.osProfile becomes nico.release, so the REST API uses the release vocabulary the rest of the management plane already does. Internal db and workflow structs keep their field names. Signed-off-by: Miancheng Lin <mianchengl@nvidia.com> * refactor(controller): rename the OS profile to the release Nico payloads gain a release key. os_profile is still written alongside it and still read as a fallback, so a CWE predating the rename keeps reading and writing the value through a rolling upgrade or a rollback. No stored data changes. A later release backfills release from os_profile, then drops the mirror and the fallback. The os_profile Prometheus label is deliberately unchanged. Signed-off-by: Miancheng Lin <mianchengl@nvidia.com> * docs: follow the OS profile rename The request YAML in the workload-cluster guides named a field the API no longer accepts, and two troubleshooting entries quoted error text that no longer appears. The dashboard panel descriptions in operate/observe.md keep the old wording: the panels and the os_profile metric label they read are unchanged. Signed-off-by: Miancheng Lin <mianchengl@nvidia.com> * fix(scripts): read cluster NICo fields from .nico and allow an absent configProfile The cluster-level orgID, siteID and vpcID live under .nico in the API response, as the node pool fields already corrected do, so the script exited before generating anything. configProfile is optional in the same schema, and requiring it skipped a valid node pool. Signed-off-by: Miancheng Lin <mianchengl@nvidia.com> --------- Signed-off-by: Miancheng Lin <mianchengl@nvidia.com> |
||
|
|
cacd6476f8 |
feat(nkx-17929): hide x-fern-ignore fields in Swagger UI
Swagger UI showed the full API specification, including Teleport and other fields that the public docs leave out. It now shows a filtered copy. The server still validates requests against the full specification. When a field is removed, it is also removed from the required list, so the public schema can still be satisfied. Signed-off-by: Alex Greene <algreene@nvidia.com> |
||
|
|
4409efc29b |
build: move the Go module paths and repository URLs to dsx-ai-factory/nvke (#1449)
The repository was renamed from dsx-ai-factory/nke to dsx-ai-factory/nvke on 2026-10-10. Its id is unchanged, so guards, rulesets, environments and the OIDC subject carried over, and GitHub redirects the old URLs. The tree still named the old repository where the name is a contract rather than a URL: the module lines of the 12 Go modules and about 1,700 import lines, the proto go_package (embedded in node_agent.pb.go, regenerated here), both THIRD_PARTY_NOTICES.md files (regenerated), the lint local-prefix and depguard entries, ldflags, the go-licenses ignore lists, the documented repository URLs and gh commands, and the ghcr.io/dsx-ai-factory/nke image paths in workflows, the chart default and the e2e defaults. Only the organisation and repository segments change. Directories, identifiers, binary, image, chart, package, label, namespace and environment variable names, the CODEOWNERS team slugs and CHANGELOG.md stay as they are. Closes #1448 Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |
||
|
|
7b1c662d56 |
test(oidc): add an in-process HTTPS issuer (#1414)
Signed-off-by: Steven Zhang <stevenzhang@nvidia.com> |
||
|
|
3d992713e5 |
feat(api): expire api-compat waivers written against an older baseline (#1374)
* feat(api): expire api-compat waivers written against an older baseline A waiver that matches nothing failed the gate outright, so once a tag carrying the accepted break was published, every branch that rebased past it failed on an entry that was spent rather than wrong. Waivers may now record the baseline they were written against (the failure stub fills it in). An unmatched waiver naming a different baseline than the current one is reported as expired and does not fail. A waiver with no baseline, or one that matches nothing against the baseline it names, still fails. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix(api): expire a waiver only when the baseline is a later release Inequality alone also covered checking against an older release, which is a supported mode (--baseline, API_COMPAT_BASELINE), and covered naming today's release some other way -- a SHA, refs/tags/..., a branch. Either would have expired the waivers written for the current tag, stopping the matches-nothing rule from applying in the run a reviewer reaches for. Order the two as release tags instead, and treat a pair that cannot be ordered as no supersession at all, so the waiver stays Unused and still fails. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix(api): select only stable release tags as the compat baseline git matches the tag glob with fnmatch, so controller/api/v0.0.29-rc1 matched and --sort=-version:refname ranked it above the release it precedes. A prerelease baseline cannot be ordered by supersedes, so a waiver written against an earlier release stayed Unused and failed instead of expiring. Pick the highest baseline through releaseVersion instead, the same function supersedes uses, and qualify the README on which baselines expire a waiver. Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: Terry Howe <thowe@nvidia.com> |
||
|
|
c3984a2e4e |
feat(api): gate openapi.yaml on backward compatibility (#1249)
* feat(api): gate openapi.yaml on backward compatibility `generate-check` proves the committed *.gen.go match api/openapi.yaml. It says nothing about whether the specification change itself is safe. A removed field, a narrowed type or a newly required property regenerates perfectly -- the generated code matches the new spec exactly -- and breaks every client already built against the old one. Regeneration correctness and compatibility are different questions, and only the first was being asked. Adds `make -C controller api-compat-check`, a member of the merge gate. It compares the working-tree specification against the newest published controller/api version tag and fails on any breaking change that is not waived. The baseline is the tag, not the merge base. controller-api-tag.yml publishes controller/api/vX.Y.Z on every main commit that touches the directory, and that tag is what a consumer pins. It is also only ever a patch bump, so no tag has ever signalled a break -- which is why the gate has to hold the contract that the version number does not. Breaking changes are waived one at a time in controller/api/openapi-compat-waivers.yaml, each with a reason, a named person and a review date, and a waiver that matches nothing fails the gate. That is the rule GOVULNCHECK_WAIVED is already held to: an entry cannot outlive its reason. Waivers match on change kind, JSONPath and property rather than on the engine's changeHash, which covers the shape of a change and not its location -- in one sample diff 89 of 91 breaking changes shared five hashes. It fails closed throughout. A missing baseline (a shallow checkout has no tags), an unparsable specification, an empty or unrecognized engine report, and a missing waiver file are all errors. A gate that could not run has not found the change compatible, and the workflow checks out with fetch-depth: 0 so the usual cause cannot arise silently. The change engine is pb33f/openapi-changes, pinned as OPENAPI_CHANGES_VERSION and run with `go run` so nothing is installed. It is from the same author as vacuum, over the same libopenapi parser already lints this specification, so the gate and the linter agree on what the document says. Its breaking/additive classification is used as-is; what this repository owns is what happens next. Documents the versioning and deprecation behaviour in controller/api/README.md: there is one unversioned /api surface, the Go module tag is the pinnable artifact, and deprecation is additive while removal is the breaking step that needs a waiver. Also separates the authored files in that directory from the generated ones. Signed-off-by: Terry Howe <thowe@nvidia.com> * feat(api): let a sunset deprecation discharge a removal The gate landed with one route past it: every breaking change is waived, including a removal. That makes the patient route -- announce it, wait, then remove -- cost a reviewer exactly what the abrupt one costs, which is the wrong incentive for the one operation a compatibility gate exists to encourage. So removal gets a second route. An operation marked `deprecated: true`, carrying an `x-sunset` date, whose date has passed, may now be removed with no waiver at all: the promise was made, kept and discharged, and there is nothing left for anyone to sign. Removing it early, or without having deprecated it, is unchanged -- still breaking, still waivable. The price of offering that route is that the deprecation has to be real, which is what the new rules enforce. `deprecated: true` with no `x-sunset`, an `x-sunset` that is not a YYYY-MM-DD date, a date less than 180 days out, and an `x-sunset` on an operation that is not marked deprecated all fail. Each is a deprecation that announces nothing a consumer can act on. Every rule is scoped to what changed, never to the state of the document. An operation whose deprecation fields are identical on both sides is not examined at all, however they are set. A state rule would fail a pull request that never touched the specification the moment some older deprecation drifted out of compliance, and a gate that fails unrelated work is a gate someone turns off. The findings are plain `change` values, so everything already built for the engine's findings works on them: the waiver file matches them the same way, the failure message prints the same pasteable stub, and a waiver for one goes stale the same way. They are deliberately not emitted for removals, which the engine already reports -- two findings for one edit would mean two waivers for one decision. Discharge covers operations only. The engine reports a removed operation as a single change naming it, which is what makes "this exact removal was announced" decidable; a removed property or parameter is reported in a shape where it is not. The two removal shapes were confirmed against the engine rather than assumed. --report now resolves both specifications too. It replaces the engine, not the documents, and a mode that skipped them would be a mode in which a removal looked sanctioned because nothing had checked. Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: Terry Howe <thowe@nvidia.com> |
||
|
|
2a7c3fb2cc |
docs(api): generate the REST API Reference from openapi.yaml (#1172)
* chore(api): lint openapi.yaml and mark the internal surface for Fern Fern builds the REST API Reference tab of the documentation site from controller/api/openapi.yaml, and the docs team is about to move the prose of the "NKE REST API Reference" into that file. This is the tooling that has to be in place first. Lint gate. `make -C controller/api lint` now also runs `lint-spec`, which lints openapi.yaml with vacuum against openapi-lint.yaml. vacuum is a Spectral-compatible linter written in Go, so `go run` pins it the way generate.go pins gofumpt, with no install step; the version lives in make/tool-versions.mk with the other tools. Errors fail the gate: every example matches its schema, no component is unused, operationIds are unique. Warnings measure the prose the spec still lacks (16 operations and 40 properties without a description, 31 schemas, no tags) and fail nothing yet; each is raised to error once the prose port lands, so that coverage cannot regress afterwards. Rules the API breaks on purpose (camelCase paths and properties, a DELETE with a body, extensions beside `$ref`) are off, with the reason beside each. The one error it found is fixed here: the `nodePools` example on CreateClusterRequest named a `namePrefix` field that does not exist and had neither `name` nor `nodeNamePrefix`, both required. Internal surface. The `infra` provider, `teleportEnabled`, the legacy `controlPlane` node-pool flag, the `/osProfiles` and `/configProfiles` endpoints, and the schemas only they reach now carry `x-fern-ignore: true`. Fern leaves them out of the published reference; Swagger UI at /api/docs/ and the generated Go are unchanged. `x-fern-audiences` was the first choice and does not fit: `fern ir --audience public` returns an empty API unless every element is tagged, so a new endpoint would vanish from the customer docs by default. The ignore marker is opt-out, and the IR confirms it removes exactly the listed items. The two "exactly one of `nico` or `infra`" sentences move from the schema descriptions onto the `infra` properties, so the published reference, which does not show `infra`, no longer refers to it. Only comments change in the generated Go. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * fix(api): keep `infra` out of the text the customer reference shows The previous commit moved the "exactly one of `nico` or `infra`" sentences onto the `infra` properties and said the published reference no longer refers to `infra`. That was wrong on two counts, found by rendering the spec with Redoc and dumping Fern's intermediate representation. A description written beside a `$ref` is read by Fern and ignored by Redoc, Swagger UI and oapi-codegen, which show the referenced schema's description instead. So is `x-go-type-skip-optional-pointer` beside a `$ref`: the generated field was a pointer all along. And six schema descriptions that Fern does show still named `infra`: the control-plane create and update configs, the node pool update request, and the three NICo provider schemas. Those six no longer mention the other provider. The exclusivity rule now lives on the Infra* schemas, which the published reference omits and Swagger UI shows. The four `nico` and `infra` properties touched before wrap their `$ref` in `allOf`, so every reader applies the description, and drop the pointer extension that was never in effect; the generated Go changes only in comments. no-$ref-siblings moves from off to warn, with an accurate note, so the docs port can work the remaining 28 down. Verified: Fern IR has 0 docs strings mentioning `infra`; Redoc shows the new `nico` text and none of the old sentences; make -C controller/api lint passes with 0 errors. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * docs(api): port the REST API Reference prose into openapi.yaml The docs team wrote "NKE REST API Reference (Alpha) - Customer Edition" by hand. This moves its language into the spec, so the reference is generated from the file the code is generated from. The text is taken as written; claims the code contradicts are corrected in the commits that follow, each with its evidence, so the review can see both. What moved: the info block (title, version, and the conventions: base URL, authentication, errors, asynchronous operations, PATCH merge semantics, lists, unauthenticated endpoints); tags carrying the concept text (infrastructure provider, Kubernetes versions, networking, control plane, OS releases); a summary, a description and the documented 400 and 409 rules for each of the 22 operations; request examples for the five writes and response examples for the error cases the PDF shows; path and query parameter text; and a description for every schema and property. Structure is unchanged: no required list, enum, pattern or bound moved, no schema was renamed, and the health endpoints stay out of `paths`. They are described in the info block instead, because the generated router would mount them under /api. Every property whose `$ref` had sibling keys now wraps the `$ref` in `allOf`: Redoc, Swagger UI and oapi-codegen ignore the siblings and Fern reads them, so this is the only form all four render. The `x-order` and `x-go-type-skip-optional-pointer` keys beside those `$ref`s are dropped, since neither ever applied there. The generated Go changes only in comments; struct fields keep their order. vacuum reports no warnings left. Its coverage rules are raised to errors in a later commit. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * docs(api): configProfile is required, the PDF left it out The PDF never mentions `nico.configProfile`, and its create examples omit it. The server requires it: a NICo node pool without one is rejected ("nico.configProfile is required when creating a nico node pool", controller/internal/server/node_pools.go:298), and so is a control plane ("controlPlaneConfig.nico.configProfile is required for a nico cluster control plane", cluster_control_plane_config.go:206 and :239). Every example in the PDF would have failed with 400. The field is now described as required on the node pool and control-plane create schemas, the two create operations list it among their 400 causes, and the three request examples carry it. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * docs(api): describe OS profiles as the controller resolves them today The PDF describes `osProfile` as the name of a release in an Operator curated catalog of MachineImage, ClusterRelease and NodePoolRelease entries, managed with nkectl. Those kinds exist as CRDs in management-engine/ (#1085, 2026-09-29), but nothing consumes them yet: management-engine/README.md says lifecycle reconciliation and the public API are not implemented, and the controller still reads OS profiles from its profiles directory (controller/internal/server/os_profiles.go:35), supplied by the Operator as described in controller/profiles/README.md. The reference now says what the API does today: `osProfile` and `configProfile` name profiles the Operator supplies to the management plane, and changing `osProfile` rolls the affected nodes. The catalog text returns when the controller resolves names against it. Example names follow the example bundle in controller/profiles/example. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * docs(api): use the server's real error messages in the examples Three error examples in the PDF are paraphrases. The server says: "cluster update rejected: <op> in progress since <time>" (controller/internal/server/clusters.go:67), "Cannot create node pool when parent cluster is deleting" (node_pools.go:173), and for a control-plane delete that would breach the minimum, the sentence in controller/internal/nodes/control_plane_delete_request.go:57. ClusterConditions also listed `upgrading` as required, a property the schema does not define. The PDF's required list (provisioning, provisioned, deleting) is the correct one. Nothing in the generated Go refers to it, so only the spec changes. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * chore(api): make the OpenAPI prose coverage rules errors With the REST API Reference prose in the spec, vacuum reports nothing. The coverage rules that were warnings so the gate could land first now fail the gate: every operation, parameter, schema and property has a description, and no description sits beside a bare `$ref`. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * docs(api): quote the node-name pattern so renderers do not eat the angle brackets Redoc rendered "Node names are <cluster>-<prefix>-<NNNN>" as "Node names are --": markdown treats the angle brackets as HTML tags. Backticks keep them. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * docs: make fern check pass and pin the Fern CLI `fern check` could not run: fern/docs.yml named a `components` directory that does not exist in the repository, so the checker failed to initialize. With that line gone it ran, and reported three broken links, all pointing at repository directories the documentation site cannot serve. They now point at the directories on GitHub. fern/fern.config.json pinned the CLI to `latest`; it now pins the version CI runs, which make/tool-versions.mk carries as FERN_VERSION. Related: Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> #330. * ci(api): render the REST API Reference with Redocly and check the docs site `make -C controller/api docs` renders openapi.yaml into one self-contained HTML page with Redocly. It bundles first, because `build-docs` applies no decorators, and redocly.yaml's `remove-x-internal` decorator is pointed at `x-fern-ignore`, so the page drops the same surface the Fern site drops. The output lands in controller/.local/, which git ignores. Node is required; npx fetches the pinned CLI. The new `API docs` workflow is advisory: it builds that page on every pull request that touches the spec or the docs and uploads it as the `api-reference` artifact, runs `fern check`, and on main publishes the Fern site when FERN_TOKEN is set. The secret is not configured yet, so that step is skipped and says so. Publishing needs a secret, which the workflow design guide keeps out of the required gate; that is why this is not a merge-gate member. Both CLIs are pinned in make/tool-versions.mk. The runner's preinstalled Node is used rather than a new pinned setup action. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * fix(api): keep request-schema $ref properties bare Wrapping a request property's `$ref` in `allOf` changed the 400 body. kin-openapi reports a failure inside an `allOf` as a raw schema error, "Error at \"/controlPlaneConfig\": Doesn't match schema \"not\"" followed by a dump of the schema, instead of the one-line "request body has an error: ..." message, and the middleware passes it through whole. TestOpenAPIValidator_CreateRequiresExactlyOneProvider caught it: the control-plane cases no longer carried the request-body prefix the test uses to tell a schema rejection from a handler rejection. The fifteen `$ref` properties in request schemas are bare again, with their prose on the referenced schemas, which every renderer shows. The response schemas keep the `allOf` form; nothing validates responses. The sibling rule is an error, with the five deliberate `x-fern-ignore` siblings on the `infra` properties listed in openapi-lint-ignore.yaml. The generated Go changes only in comments. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * build(api): regenerate with the Go toolchain api/go.mod declares generate-check failed on the pull request while passing locally and on the Linux box. The embedded copy of openapi.yaml in server.gen.go is gzip-compressed, and compress/flate output differs between Go releases: the workspace asks for Go 1.27.1, so a developer regenerating in the workspace produces one blob, while generate-check.yml installs the 1.26.5 that controller/api/go.mod declares and produces another. `make -C controller generate-api` now runs the generator with GOWORK=off, since the api module is self-contained, and GOTOOLCHAIN pinned to the version api/go.mod declares, so every developer regenerates the bytes the gate expects. server.gen.go is regenerated that way here; only the embedded blob changes. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * docs: render the tag descriptions in the Fern API tab controller/api/openapi.yaml now carries the concept text on its tags. `tag-description-pages: true` makes Fern render each tag description as the intro of its section in the REST API Reference, so that text ships with the reference instead of only in Swagger UI. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * ci(api): publish a Fern preview of the site for pull requests The `API docs` workflow now publishes a Fern preview, API Reference tab included, on every pull request and manual run that has FERN_TOKEN, and writes the preview URL to the job summary and as a notice. A stable id, pr-<number>, makes a later push overwrite the same preview, and a cleanup job deletes it when the pull request closes. FERN_TOKEN is an organization secret, but GitHub withholds secrets from `pull_request` runs of fork pull requests, so those runs say why no preview was published instead. Push the branch to this repository and dispatch the workflow to preview a fork pull request. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * docs(api): give Fern an absolute server and order the reference sections The spec's only server was the relative `/api`, which is right for the embedded Swagger UI and the request validator but left Fern rendering request examples against `https:/https://api/...`. A second server with the placeholder host the PDF uses, `https://nke.acme.example/api`, now carries the examples; the relative one stays first, so Swagger UI's default and the validator's routing are unchanged, and is marked `x-fern-ignore`, so Fern and the Redocly page show only the absolute one. The validator still accepts requests on any host through the relative server; the server tests cover it. In docs/index.yml the API tab is flattened, so the path no longer repeats `rest-api-reference`, and the sections are laid out in reading order, Clusters first, instead of in order of first appearance, which put the one-endpoint Catalog section at the top. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * docs: do not repeat rest-api-reference in the API tab's URL The tab slug and the api item's slug were both derived from the same title, so every reference page lived under /nke/rest-api-reference/rest-api-reference/. skip-slug on the tab keeps one segment. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * docs: skip the api item's slug, not the tab's skip-slug on the tab left the path unchanged on the preview; the duplicated segment comes from the api item, so skip that one. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> --------- Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> |
||
|
|
63cc445669 |
revert(api): remove infrastructure provider discovery endpoint (#680)
* revert(api): remove infrastructure provider discovery endpoint Remove the provider discovery endpoint from the controller API while keeping the supported infrastructure provider configuration for provider admission policy. The generated API client, server, and model files are regenerated from the updated OpenAPI spec. * style: format controller server wiring --------- Co-authored-by: Terry Howe <thowe@nvidia.com> |
||
|
|
8744331d47 |
docs: correct what is false, and index what exists (#338)
* docs: correct four statements that are not true Each of these was read by a new joiner and sent them the wrong way. docs/getting-started.md said the guide verifies that "both modules" build. The workspace has nine, and the README already says so. docs/README.md described controller/docs/ as the remote Colossus Tilt guide. It holds three documents totalling 891 lines: authenticating to the API, BYO OS, and that guide. .github/workflows/README.md spelled out an actionlint invocation in prose while make lint-workflows exists and also checks that actionlint is the version CI pins. Use the target, and keep the yq loop and git diff --check, which the target does not cover. README.md gave the agent build with no note that it cross-compiles for Linux nodes, so on macOS it writes binaries the reader cannot run. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * docs: index what exists, and say what gets built and where it runs Six of the personas' requests turned out to be documents that already existed and could not be found. docs/README.md indexed 5 documents. The repository has about 60 outside vendor/, including a whole docs/site-bootstrap/ tree and docs/tenant-clusters/ that nothing linked to. Rewrite it as an index grouped by what the reader is doing rather than by directory, covering docs/, the module READMEs, the test guides and the process files, and say plainly what is left out and why. Add to the root README a table of the six binaries, naming for each what it does and where it runs, and a platforms section: CI is Linux amd64 only, there is no macOS runner, the flox environment leaves Intel macOS out, and the CAPD end-to-end bundles are amd64 Linux. Link the controller guide and the two worked cli/examples files, which nothing linked to either. Add controller/api/README.md. It was the only module without one, and it is the module where a missed regeneration step fails CI, so it needed to say which file is the source of truth and what to run. Stop restating the module count in docs/getting-started.md. It said nine, and a tenth module landed the same week. Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> --------- Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> |