mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-07 04:35:58 +08:00
pull-request/2414
43
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
d61d8a3c92 |
feat(controller): move a pending control-plane node out of a full failure domain (#2280)
* feat(controller): move a pending control-plane node out of a full failure domain When CAPNICo reports FailureDomainUnavailable for a control-plane node's requested domain past a grace period, patch the Machine's failure domain to the least-used eligible domain the node has not tried, cycling once every domain has been tried. Gated by controlPlaneFailureDomainFallback in nvke-controller-config, off by default. Failure-domain discovery and the allocator move to internal/failuredomains so the provisioning activity can reuse them. nico-sim gains a configurable failure-domain layout, and a nico-containers e2e spec covers the move. Signed-off-by: Eric Staples <estaples@nvidia.com> * feat(controller): keep the failure-domain fallback and stuck-pending re-placement from overlapping With the fallback enabled, the stuck-pending reconciler leaves domain-pinned pending control-plane nodes to the provisioning activity, which moves them in place. Both acted on the same FailureDomainUnavailable signal on different clocks, so a moved node could be deleted after one CAPNICo retry. The rotation now stamps the domain it leaves in the cluster's UnplaceableFailureDomains, so scale-up, remediation, rollout and rebalance stop choosing the emptied, still-full domain for the next 3 hours. When picking the next domain it tries marked domains only after every unmarked one. The rotation skips rebalance surges. A surge is placed in the domain of the node it replaces; moving it can leave two members in one domain after the shed, and rebalance already abandons a surge that cannot get capacity. The unplaceable-domain helpers move to the failuredomains package so the reconciler and the activity share them. Signed-off-by: Eric Staples <estaples@nvidia.com> * feat(controller): replace stuck-pending delete with the failure-domain move Moving a pending control-plane node to another failure domain is now the only way the controller handles a domain CAPNICo reports out of capacity. The stuck-pending reconciler, which deleted such a node after 15 minutes and recreated it elsewhere, is removed along with the controlPlaneFailureDomainFallback.enabled setting that chose between them. The move now also leaves a node with a delete in flight alone. controlPlaneFailureDomainFallback.gracePeriod stays; unset, it defaults to 10 minutes, and a non-positive value is refused at startup and by the chart. FailureDomainUnavailable leaves the MachineMaterialization interface, since only the stuck-pending path called it. The e2e spec gains a scale-up case: with every domain but one out of capacity, scaling the control plane to three moves the stuck Machine in place and fails if any control-plane Machine is deleted. Signed-off-by: Eric Staples <estaples@nvidia.com> * feat(controller): Surge releases the domain of the first rollout target without a delete in flight Signed-off-by: Eric Staples <estaples@nvidia.com> * feat(controller): mark the domain unavailable and update the node in the same transaction Signed-off-by: Eric Staples <estaples@nvidia.com> * feat(controller): make the failure domain check more readable Signed-off-by: Eric Staples <estaples@nvidia.com> * fix(controller): retry a failure-domain move on Machine patch conflict A conflict on the optimistic-lock Machine patch now waits for the next poll instead of failing the activity. Cover the surge-domain release by driving reconcileNodesNeedingRollout, and document the gracePeriod positivity constraint in the chart README. Signed-off-by: Eric Staples <estaples@nvidia.com> * fix(controller): finish an interrupted failure-domain move once the node has an IP When the Machine patch of a failure-domain move succeeds and the row update fails, the next poll records the move. That repair ran only from the rotation path, which waitForCAPIMachineReady reaches only while the Machine has no IP, so a node that got an address in the new domain kept the old domain in its row. The repair now runs on every poll, before the IP check. A repaired wrap-around move rebuilt the tried list by appending the departed domain to the old history instead of restarting it. When the Machine's domain is already in the tried list the move was a restart, so only the departed domain is kept. Signed-off-by: Eric Staples <estaples@nvidia.com> --------- Signed-off-by: Eric Staples <estaples@nvidia.com> |
||
|
|
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>
|
||
|
|
47c3dc894c |
docs: stop scheduling compat-window removal for v0.25.0 (#2452)
* docs: stop scheduling compat-window removal for v0.25.0 Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: address review feedback Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: Terry Howe <thowe@nvidia.com> |
||
|
|
4c9ed2ffb5 |
feat(e2e): run the kaps-bench smoke test on the perf stream (#2361)
* feat(e2e): run kaps-bench on the perf stream's tenant Signed-off-by: Ganesh Reddy <gputta@nvidia.com> * feat(e2e): stage kaps-bench and helm on the perf stream's runner Today a CI perf run stops at the suite's early check: the job leaves E2E_KAPS_BENCH_DIR empty and the runner has neither kaps-bench nor helm. After this, a stream with kaps-bench run specs logs in to NVCR, sets up helm at the pinned version, copies kaps-bench and its folder out of the image pinned in make/tool-versions.mk, and checks them with list-run-specs. Each run also uploads kaps-bench-results.tar.gz with the other suite files. Every new step runs only for a stream with kaps-bench run specs, so other streams run as before and their plans do not change. kaps-bench-results.tar.gz holds kaps-bench's output dir alone: its kubeconfig sits in the suite's temp dir outside it, and kaps-bench never sees the jump hosts or the token issuer that the log scrub withholds. Signed-off-by: Ganesh Reddy <gputta@nvidia.com> * fix(e2e): check the kaps-bench binary before a machine is taken requireKapsBenchTools now refuses a kaps-bench folder with no runnable kaps-bench in it, and a folder path that is not absolute, so both fail before the site and tenant are built instead of at the first run spec. Flag help and docs list the binary among the folder contents, say the results archive is absent when no run spec got as far as writing an output dir, and say helm is needed and checked for a stream with kaps-bench run specs. Signed-off-by: Ganesh Reddy <gputta@nvidia.com> * feat(e2e): let kaps-bench install what its run specs need Perf stream policy now names the run spec smoke/smoke-prometheus.yaml in place of smoke/smoke.yaml. That run spec lists kube-prometheus-stack as something to install first, so kaps-bench installs it with the helm in its own folder and leaves it for the run specs that follow. nvke no longer installs Prometheus: the helm call and its embedded values file are removed, and the perf stream's runner no longer needs helm on PATH. requireKapsBenchTools also refuses a folder without a runnable bin/helm, so such a folder fails before the site and tenant are built. kapsBenchSetup is the renamed once-per-tenant setup and writes the cluster context. kaps-bench gets 5 minutes between SIGTERM and SIGKILL when a run spec reaches its limit. In that time it stops its engine, writes its final record and removes a chart it had half installed. 5 seconds was too short for that: a stop during a chart install took 11.2 seconds in a hand test. tenantToolRun takes the 5 minutes as a stop grace per tool, and AICR keeps 5 seconds and its 10 second wait. So that the grace fits inside the spec's limit, kaps-bench is stopped 39m50s into the first run spec and 24m50s into a later one. When a canceled command returns, every process group it listed gets SIGKILL straight away, so a child that ignored SIGTERM does not outlive the spec. AICR runs get the same. Each run spec keeps its time limit and token lifetime, and the perf stream keeps its suite timeout. In qualify-e2e.yml, the helm steps run only for the GPU runtime again, as on main. KAPS_BENCH_IMAGE stays at v0.3.1, which has no smoke-prometheus.yaml, so the perf stream stops at its early check until the pin moves to an image that has it. Signed-off-by: Ganesh Reddy <gputta@nvidia.com> * feat(e2e): give the perf stream's tenant a monitoring node Today the perf stream's tenant is one control plane and three workers, and nothing keeps the benchmark's Prometheus off the workers it measures. A stream can now ask for monitoring nodes with monitoringWorkers in release/policy.yaml, and the perf stream asks for one, so its tenant is one control plane, three workers and one monitoring node. Planning carries the value into the plan, the summary line and the matrix, and the run step passes it to the suite as -e2e.monitoring-workers. With it above 0, the suite asks the site controller for a second node pool, monitoring, whose nodes are labeled node-role.kubernetes.io/monitoring and tainted monitoring=true:NoSchedule, and labels the workers node-role.kubernetes.io/worker. Only Pods that tolerate the taint can land on the monitoring node. Pool labels and taints are applied by the controller while it provisions a node, before it lifts its own provisioning taint, so no node is schedulable without them. Both label keys sit under kubernetes.io, which the controller refuses unless its nodeMetadata.allowlistedLabelKeys lists them. A site the suite builds allowlists exactly those two keys, and only when the stream asks for a monitoring node. Taint keys under reserved domains are always refused, so the taint key is simply monitoring. Forge and DSX pool specs and the NICo and CAPD request builders now carry a pool's labels and taints where they dropped them, and the capacity check counts the monitoring node with the workers, since it takes the worker shape. A stream without the parameter, or with 0, runs as before: its plan, its run step's flags, the node pools in its create request and the site's controller values are all unchanged. Plans for every other scope are byte identical. Not proven before a real run: the tenant's OVN-Kubernetes DaemonSet comes from a bundle outside this repository. Upstream OVN-Kubernetes tolerates every taint, and this bundle was not read. If it does not tolerate monitoring=true:NoSchedule, the monitoring node never becomes Ready and the tenant create times out. kaps-bench does not place Prometheus on the monitoring node yet, so until its values select the node, Prometheus still lands on a worker. Signed-off-by: Ganesh Reddy <gputta@nvidia.com> * chore(e2e): follow the latest kaps-bench image Perf runs stage nvcr.io/j7sbcjl3qgta/kaps-bench:latest and pull it fresh each time, so every run gets the build kaps-bench main published last. A perf result can move with a kaps-bench change and no nvke change. Each run prints the image digest in its Stage kaps-bench step; compare digests before comparing two results. Signed-off-by: Ganesh Reddy <gputta@nvidia.com> * fix(e2e): redact the kaps-bench results archive kaps-bench-results.tar.gz now goes through the same substitution as nvkectl-diagnostics.tar.gz, with each withheld value and its base64 form replaced in every file of the archive. In the site lane the list is the one the site's archives get: the values withheldFromEnvironment returns and every credential the deploy places on the node. In the lane that builds no site it is the values withheldFromEnvironment returns. Perf runs follow the newest kaps-bench image, so what kaps-bench writes into its output folder can change with no change in this repository, and a failed connection's error text names the address it tried; a file with nothing to replace keeps its bytes. Signed-off-by: Ganesh Reddy <gputta@nvidia.com> * fix(e2e): refuse monitoring nodes on a tenant that gets the GPU runtime A run that installs the GPU runtime on its tenant and also asks for monitoring nodes now fails before a machine is taken: in the site lane's first step at stage full, and at the start of the tenant create in the lane that builds no site. GPU checks expect -e2e.tenant-workers GPU nodes, and the monitoring node takes the worker shape, so on a GPU run it would most likely count as one more. No stream runs that combination, so the suite refuses it up front. A run with the GPU runtime switched on and no GPU to install it on, as on the perf stream, still goes ahead and skips the runtime. Signed-off-by: Ganesh Reddy <gputta@nvidia.com> * fix(e2e): check the kaps-bench folder before the nico-forge lane creates a tenant Against a site the suite did not build, the nico-forge lane now checks the kaps-bench folder and its run specs at the start of the tenant create, as the site lane does in its first step at stage full. Until now that lane found a missing folder only once the tenant was up and its checks had run. A run without kaps-bench run specs passes the check as before. In the e2e README, nico-forge is now the only lane named as running on a site the suite did not build, since nico-dsx runs only on a site it builds. Signed-off-by: Ganesh Reddy <gputta@nvidia.com> --------- Signed-off-by: Ganesh Reddy <gputta@nvidia.com> |
||
|
|
cbc5b366c8 |
feat(controller): expose kube-vip ASN configuration (#2328)
* feat(controller): expose kube-vip ASN configuration Signed-off-by: Nathan Hammernik <nhammernik@nvidia.com> * fix(controller): handle null kube-vip chart values Signed-off-by: Nathan Hammernik <nhammernik@nvidia.com> --------- Signed-off-by: Nathan Hammernik <nhammernik@nvidia.com> |
||
|
|
51dc0c4dae |
feat!: make apiAuth the only API authentication source (#1938)
apiAuth in nvke-controller-config becomes the only place the controller reads its API authentication configuration from. This is the breaking second step of phase 2. - The controller refuses to start when AUTH_CONFIG_PATH is set, naming apiAuth as the replacement, and passes authn.Setup only the apiAuth section. authn.Load and Options.ConfigPath stay for management-engine's --auth-config. - The chart no longer renders or mounts nvke-auth-config. It refuses apiAuth.configMap and an AUTH_CONFIG_PATH env entry by name, and a caBundlePath into the old mount, pointing at jwks.caBundle. - apiAuth.permissive requires apiAuth.enabled, in the chart and at startup. Tilt passes it only with authentication on. - controllerconfig, which decodes the apiAuth section, gets the decoder-strictness tests. - nvkectl and the token scripts keep their fallback to the authentication ConfigMap for controllers from before this change. - The e2e suite reads the enforcement mode from apiAuth alone. - The pod template carries a checksum of nvke-controller-config, so an upgrade that changes apiAuth rolls the controller without Reloader, which the NVKE stack does not install. - API authorization (#2125) counts authentication as on exactly when apiAuth.enabled is. BREAKING CHANGE: AUTH_CONFIG_PATH and apiAuth.configMap are removed. A site that managed its own authentication ConfigMap moves audiences and issuers into apiAuth.config, CA bundles into jwks.caBundle, and sets apiAuth.enabled. apiAuth.permissive without apiAuth.enabled is refused. nvkectl older than the previous step gets 401. Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@nvidia.com> |
||
|
|
df72e7d18e |
feat(chart): turn on API authorization from Helm values (#2173)
* feat(chart): turn on API authorization from Helm values Expose apiAuthz in the controller chart. With apiAuthz.enabled, the chart mounts the bundle ConfigMap at /etc/nvke/authz and points authorizer.localBundle.dir at it. With apiAuthz.configMap.create, the default, it also renders that ConfigMap from apiAuthz.policies, apiAuthz.roles and apiAuthz.config. - The default policies let admin call every API operation and viewer every get and list. - The chart supplies the AuthorizationConfiguration's apiVersion and kind. - Reloader does not watch the bundle: the controller reloads it itself, so a bundle change needs no restart. The render fails on settings the controller would refuse at startup: authorization without authentication, enforcing authorization behind permissive authentication, and a config that would not be rendered or carries apiVersion or kind. Signed-off-by: dbudris <dbudris@nvidia.com> * refactor(chart): nest apiAuthz bundle values under authorizer.localBundle The values now follow the controller config: apiAuthz.authorizer.backend picks the backend, and apiAuthz.authorizer.localBundle configures LocalBundle, the only one. configMap, config, policies and roles move under localBundle. The render fails on any backend but localBundle. Signed-off-by: dbudris <dbudris@nvidia.com> --------- Signed-off-by: dbudris <dbudris@nvidia.com> |
||
|
|
551e1cebbe |
feat(controller): authorize API requests by role (#2125)
Add an apiAuthz section to nvke-controller-config. When enabled, the controller loads a LocalBundle from authorizer.localBundle.dir and asks it whether the caller may call each API operation. The action is the operation's operationId and the resource is the request path. The API has no tenants, so the bundle is loaded with RoleOnly. - Enforcing mode refuses with 403 before the handler runs. Permissive mode logs and counts the decision and serves the request. - The controller reloads the bundle every 10 seconds. A failed reload keeps the live bundle and counts nvke_authz_bundle_reload_failures_total. - nvke_authz_decisions_total counts decisions by outcome and action, and nvke_authz_enabled reports the mode. - Startup refuses authorization with authentication off, and enforcing authorization behind permissive authentication. The chart renders apiAuthz off: it mounts no bundle. Signed-off-by: dbudris <dbudris@nvidia.com> |
||
|
|
16b0d139c6 |
fix(chart): refuse launchLayer with SPIFFE unless nodes attest with dsxImds (#2163)
The attestation method is deployment-wide, and a SPIFFE-enabled LaunchLayer node attests only through dsx_imds, so such a deployment configured with tpm or joinToken had every LaunchLayer node refused at creation. The chart now refuses it at render and the controller at startup, as for an unsupported provider. A controller.launchLayerEnabled helper replaces the provider loop nvke-rbac.yaml had. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> |
||
|
|
cc474ce481 |
fix(auth): refuse a null service account name in authN admission (#2036)
In YAML, name: with no value, name: ~ and name: null decoded the same as leaving name out, which matches every service account in the namespace. An operator who meant to narrow a rule could admit the whole namespace without an error. The chart passes such a value through as name: null. ServiceAccountRule.Name is now a ServiceAccountName that records an explicit null, and Validate refuses it: issuers[0] (k8s): admit: serviceAccounts[1]: name is null; remove the key to match any service account in namespace "nke-clients", or set a name Both loaders call Validate, so the authentication config file and the apiAuth section of the controller config refuse it. An absent name keeps matching every service account. A null rule that skipped Validate matches nobody. Strict decoding keeps reporting unknown and case-mismatched keys with their full path. LocalBundle uses the same type and reports the same message. Signed-off-by: dbudris <dbudris@nvidia.com> |
||
|
|
0079021b6c |
feat(controller): add bootstrap controller configuration (#2086)
Signed-off-by: Ryan Bever <rbever@nvidia.com> |
||
|
|
3545d67a57 |
chore: name the release that removes the rename compat windows (#2034)
* chore: name the release that removes the rename compat windows The launch rename said "for one release" three times and named no release, so the four dual-accept windows had no removal date and were becoming permanent by default. All four windows landed on the v0.23.0 line, which is still in beta. None of their fleet gates can be met yet: the release they provide compatibility for has not shipped. So each window takes the comment path the issue allows, naming v0.25.0 and the gate it waits on, rather than being removed now: - node-agent JWT audience: gated on a fleet agent_version sweep - reserved "nke:" OIDC prefix: gated on pruneLegacyRBAC across all 41 sites - auth-config apiVersion: gated on an nke-auth-config ConfigMap sweep - legacy metric series: gated on Mimir retention aging the series out Only two allowlist entries die with their code, ^nke_controller_|^nke_auth_ and ^oidcPrefixNKE$; both now name v0.25.0. The audience and "nke:" entries cover further live names (the NVKR artifact, the pruned nke:cwe objects) and survive their windows, so their comments say which half is dated. Also folds in the two cosmetic items from the close-out audit: a note on NamespaceNVKESystem explaining why its value lags its name, and a separate section for nke-stack and the Keycloak dev scaffolding, which are not names an installed site persists and were never in the rename's scope. No behaviour change. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: address review feedback Correct the stated reason the "nke:" reserved prefix waits on pruneLegacyRBAC. ReservedIdentityPrefixes bounds OIDC usernamePrefix and groupsPrefix and compiles into the tenant apiserver's CEL user-validation rules; it does not reserve Role or ClusterRole names, so the claimed ClusterRole collision with the pruned nke:cwe objects was not a real mechanism. The two share a spelling, nothing more. The gate itself stands, on the narrower ground that no platform-owned RBAC should still carry the nke: name once a fleet-wide provider may mint nke: usernames and groups. Also names the generated-config fixture that moves with the removal. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: address review feedback The node-agent audience window was gated on the wrong thing. The agent picks its audience with --controller-audience, which defaults to the legacy value and falls back to it when empty, and nodeAgentBootstrapFiles never passes the flag. Nothing else in the tree sets it. So every TLS/JWT agent requests the legacy audience whatever version it reports, and agent_version does not gate this window at all. Removing it in v0.25.0 on the old reading would have failed every TLS/JWT node closed. State the real precondition instead: something has to select the renamed audience, by the controller passing the flag or by the default flipping, before the fleet can roll onto it and the window can close. Also drop the hardcoded site count from the "nke:" gate; it goes stale and this repository is public. Signed-off-by: Terry Howe <thowe@nvidia.com> * docs: point the audience gate at its tracking issue The gate described a precondition with nothing tracking it. Name #2039, which covers having the controller select the renamed audience per node, and record why flipping the agent default is not the alternative. Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: Terry Howe <thowe@nvidia.com> |
||
|
|
589d922c83 |
feat(chart): make the tenant RBAC ConfigMap name a value and move it to nvke (#1891)
* feat(chart): make the tenant RBAC ConfigMap name a value and move it to nvke The nke-rbac ConfigMap name was a literal in two templates and a compiled constant in controller/internal/nvkerbac, so a site could not keep it while the chart's defaults moved. rbacConfigMap.name now drives the ConfigMap, the Role and RoleBinding that grant get on it, and that Role's resourceNames, and the controller reads it from rbacConfigMapName in nvke-controller-config rather than from the constant. The default is nvke-rbac; a site installed before the value pins nke-rbac, which is also what the Go fallback resolves to, so a binary upgrade alone never moves a site that has not pinned. The Role's resourceNames is the entry that matters: a ConfigMap the Role does not name renders clean, installs clean, and is then denied at reconcile time, leaving tenant RBAC unapplied. check_pinnable_names now asserts all four consumers plus the rendered config key follow the value together. nvkerbac.Source carries the namespace and the name as one value, because a name resolved against the wrong namespace silently reads nothing — and a missing read degrades the reserved-subject control that stops a fleet-wide OIDC provider claiming an NVKE identity. Closes #1862 Signed-off-by: Terry Howe <thowe@nvidia.com> * fix(chart): follow rbacConfigMap.name in the RBAC and identity assertions chart-rbac-check looked up a literal nke-rbac ConfigMap and failed once the default moved. It asserts what the manifest grants, not what it is called, so it now renders with rbacConfigMap.name set and resolves the ConfigMap by that; moving the default again cannot break it. chart-identity-assertions.py had the same literal in two scenario-scoped places. Both passed only because the legacy scenario pins the old name and the default scenario renders no RBAC ConfigMap at all, so the namespace and SPIFFE subject checks silently skipped a default render. Both now read the scenario's own name, and each scenario asserts rbacConfigMapName in its rendered config. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix(chart): quote the rendered RBAC ConfigMap name rbacConfigMap.name is operator-supplied, and a DNS-1123-valid name YAML 1.1 reads as another scalar type (n, y, true, off) rendered as a bare scalar: the ConfigMap metadata.name and the Role resourceNames entry both became booleans and the install failed. Quote both. The Role and RoleBinding names interpolate after controller.fullname and a dash, so they are already strings. Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: Terry Howe <thowe@nvidia.com> |
||
|
|
fba45dba31 |
fix(controller): clean up CAPI CRD startup handling (#1955)
* fix(controller): clean up CAPI CRD startup handling Fail startup when the required CAPI Machine CRD is absent and register Machine-dependent controllers unconditionally after the check. Keep LaunchLayer optional based on its CRD. Require the NicoMachine CRD when NICo controllers are enabled, and skip its discovery when they are disabled. Signed-off-by: Ryan Bever <rbever@nvidia.com> * fix(cli): disable NICo controllers for provisioned bootstrap Configure the controller chart's NICo controller setting from the selected bootstrap infrastructure provider. Provisioned sites now disable NICo controllers and avoid requiring the NicoMachine CRD, while NICo sites explicitly enable them. Extend the existing deployment test to verify both provider settings. Signed-off-by: Ryan Bever <rbever@nvidia.com> * Review comments Signed-off-by: Ryan Bever <rbever@nvidia.com> --------- Signed-off-by: Ryan Bever <rbever@nvidia.com> |
||
|
|
adeb0c3e1e |
feat(controller): monitor credential expiry and lifecycle health (#1377)
* feat(controller): monitor credential expiry and lifecycle health Port the reviewed NKX-15682 inspection RPC, persisted inventory/exporter, direct-API CSR observation and optional alert rules onto the completed rotation layer. Keep monitoring independent of renewal and preserve last-success freshness on failed probes. Retain ParseConfigFromEnv startup and the unmounted current-main config map; render monitoring fields in both surfaces with parity regressions. Regenerate proto and chart documentation using exact pinned tools. Sources: c903c3ca2b24b52d3e4dc563e6e6f81ce0e77af3, 12e425e01dcb7a229ab1bf7caf507fdb44e8ff18 and 00a82a9bb8b4d81e98332a2270f04f991cf20188. Inherit rotation safety and deterministic notices without duplicating their changes. Closes #1345 Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> * fix(controller): keep certificate observations available across a failed probe certificate_observation_available used observation.Available, which reflects only the latest attempt. A failed probe keeps the last good ObservedAt and certificates, but every per-credential series dropped to zero, so a firing NVKECertificateExpiring resolved on any transient failure and agent rollouts made it flap fleet-wide. Derive certificate_observation_available from the age of the last successful observation (ObservedAt within observationMaxAge) and keep certificate_inspection_available tied to the latest attempt. A collector test covers a failed attempt within and after observationMaxAge, and a promtool fixture shows the expiry alert staying firing while inspection is unavailable. The monitoring guide describes both series. Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> * fix(controller): inspect certificates with a bounded worker pool The certificate-inspection controller registered with default options, so it ran one reconcile at a time, each with a 30s probe deadline. Unreachable agents are re-probed every 1-32 minutes and held the only worker, so healthy nodes queued behind them and could age past observationMaxAge. Register through dbreconcile.AddController with eight workers, the agent-readiness controller's default for the same probe pattern. A manager-level test blocks one node's probe and requires another node to be inspected meanwhile. Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> * ci(chart): assert the credential PrometheusRule is absent when disabled The default-off and global.monitoring.enabled=false renders were asserted only by a Go test that skips without helm, and the charts unit lane installs no helm, so the gate never checked either contract. The assertions script that chart-check runs with the pinned helm now renders the whole chart in both cases and fails if a PrometheusRule appears. The monitoring guide lists the new assertions. Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> * ci(chart): pin the PrometheusRule schema and trigger the chart job on its inputs chart-check validated the rendered PrometheusRule against a schema fetched from the mutable main branch of datreeio/CRDs-catalog with no digest, so an upstream change could turn the gate red, or change its result, for an unchanged commit. Fetch the schema from catalog commit 501527ab and verify it against a sha256 committed in make/tool-versions.mk, as the promtool download already is. The script's pin() helper printed an empty string for a missing or renamed name, which surfaced only after minutes of 404 retries. Read promtool and schema pins through hack/read-tool-version.sh, which fails at once on an unknown name. The chart.yml push filter did not cover the inputs chart-check now reads, so a main commit touching only them ran no Chart job. Add controller/deploy/monitoring/**, make/tool-versions.mk, hack/check-tool-version.sh and hack/read-tool-version.sh. Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> * test(controller): allow repeated certificate-inspection manager setup in tests controller-runtime keeps a process-wide registry of controller names, so the manager-level inspection test failed under go test -count=N with "controller with name certificate-inspection already exists". Keep the registered name in an unexported field, unchanged in production, and give the test a unique one. Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> * fix(controller): fire credential availability alerts only when monitoring is enabled All credential rules ship as one PrometheusRule, so the availability rules cannot be disabled individually. With credentialMonitoring.enabled=false and alerts enabled, the collector still exports unavailable inspection and CSR series while the inspector and observer are off, so NVKECertificateInspectionUnavailable and NVKEKubeletServingCSRObservationUnavailable fired for every node and cluster. Gate both rules on nvke_controller_credential_monitoring_enabled == 1. Promtool fixtures cover the disabled case and keep the existing firing cases enabled. The monitoring guide and the credentialMonitoring.enabled value description state the coupling; the chart README row follows the value comment. Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> * docs(controller): correct credential monitoring schema, CA and threshold notes - Every run of the alert assertions fetches the pinned PrometheusRule schema, so the check is never fully offline; the guide now says so. - "use manual CA procedure for a CA" pointed nowhere. NVKE ships no CA rotation procedure and does not rotate CAs, so the response is to escalate, linking the renewal guide that says so. - thresholdDays was documented as 7 through 90, but with monitoring enabled warningDays must exceed it by two renewal intervals, which limits it to 44 with the defaults. The values comment, the chart README row and the guide's table state the coupling. Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> * refactor(controller): append the credential observation fields to their structs CertificateInspection was inserted before ID in db.Node, and CredentialCSRs before the existing ClusterConditions fields. Contributor guidance asks for new fields after existing ones, so move both to the end of their structs. The JSON and bun column names are unchanged and the tree has no positional literals of either struct. Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> * ci(chart): fail the credential alert absence check when helm fails The disabled-rule check piped helm template into grep inside an if condition. set -e does not apply there and pipefail turns a failed render into a false condition, so a template error in either disabled render read as "no PrometheusRule" and the check passed. Render each case to a file under set -e first, then grep the file. With a helm wrapper that fails only the global.monitoring.enabled=false render, the script now exits 1; before this change it exited 0. Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> * docs(controller): say expiry alerts stop only after observationMaxAge With monitoring disabled the collector keeps exporting the last successful observation until it is older than observationMaxAge, so the expiry and missing-certificate alerts can keep firing for up to that age (3h by default). The guide said no rule reports them once monitoring is disabled. Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> * test(controller): require concurrent certificate probes regardless of node order The worker-pool test blocked one named node and required the other to be inspected meanwhile. With a single worker it failed only when the blocked node was dequeued first, which depended on ListNodes returning rows in insertion order, and ListNodes has no ORDER BY. Block every probe instead and require two probes to be in flight at the same time. That needs a second worker whichever node comes first. With inspectionWorkers set to 1 the test fails after 10s. Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> * fix(controller): gate stale and failed CSR alerts on credential monitoring With credentialMonitoring.enabled=false the CSR observer is not registered, but the collector keeps exporting the last stored CSR inventory and its pending age keeps growing, so NVKEKubeletServingCSRStale and NVKEKubeletServingCSRFailed kept firing on a frozen snapshot. Gate both on nvke_controller_credential_monitoring_enabled like the availability alerts, and cover the disabled case with a promtool test. Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> * build: run chart-check in preflight for credential alert fixtures controller/deploy/monitoring/credential-alerts-test.yaml is only consumed by promtool inside chart-check, but preflight did not route that directory to chart-check, so a fixture-only change skipped it locally. Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> * docs(controller): state renewal setting limits in the renewal guide certRenewal.interval and thresholdDays now have enforced ranges, and with credential monitoring enabled warningDays must exceed thresholdDays by two renewal intervals, so installs with thresholdDays above 44 fail to upgrade. Say so where operators configure renewal and link the monitoring rule. Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> * docs(controller): mark the gated CSR alerts in the response table Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> * docs(controller): name the credential monitoring ConfigMap as main now does Main renamed the chart's default controller ConfigMap to nvke-controller-config, so the guide's lookup for these settings found nothing on a default install. The guide now names controllerConfig.name with its default, and the new comments use the current name. Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> * fix(credential-monitoring): give kubelet certificates their own expiry alert The kubelet rotates its client and serving certificates itself at 70-90% of their lifetime, so NVKECertificateExpiring's warningDays window fired on healthy rotations. NVKECertificateExpiring now excludes kubelet-client and kubelet-serving, and the new NVKEKubeletCertificateExpiring rule warns when either has fewer than a fixed seven days left, which only happens when kubelet rotation has stopped working. Promtool fixtures cover 40 and 6 days for both kubelet certificates and a kubeadm leaf inside warningDays. The monitoring guide also names the metrics NetworkPolicy namespace requirement and says inspection availability keeps its stored value until observationMaxAge when monitoring is disabled. Addresses review threads r4335329332 (seven-day kubelet threshold), r4335329829 and r4335330237. Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> * fix(credential-monitoring): match controller duration bounds and env inventory Fixes PR #1377 review findings F1 and F2. F1: the chart compared duration bounds in whole seconds, dropping any fractional second, while the controller compares exact time.Duration values. Compare in nanoseconds so the chart refuses exactly what Validate refuses, and add the sub-second refusals and accept render to the assertions script. F2: the CREDENTIAL_MONITORING_ENABLED, CERTIFICATE_INSPECTION_INTERVAL, CERTIFICATE_OBSERVATION_MAX_AGE and CERTIFICATE_WARNING_DAYS variables never existed, so drop them from controller-config-env.yaml and list their keys in configMapOnly. The drift test now refuses a key in both. The guide limits the "no longer reads" sentence to the former CERT_RENEWAL_* variables. Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> * fix(credential-monitoring): escalate stuck accepted renewals from alerts The renewal Stuck and Overdue alerts told operators to confirm termination and then release ownership or retry. Certificate renewal now treats an accepted cycle whose Temporal execution has closed as stop-and-escalate: the lock must not be released, the cycle ID not restarted and no forced cycle started. The Stuck alert now asks whether the workflow is still running and, if it has closed while the cycle is accepted, to stop maintenance and escalate. The Overdue alert defers to that response when a cycle is still accepted. The alert table matches, and the Failed row states the full automatic retry condition. The promtool fixtures carry the new descriptions. Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> * docs(credential-monitoring): correct renewal margin, retry and two-voter notes Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> * fix(credential-monitoring): write certificate inspection column-only and reject zero observed time Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> --------- Signed-off-by: Tjark Gunnar Rasche <trasche@nvidia.com> |
||
|
|
ddab4187b5 |
feat: read API authentication from apiAuth first (#1935)
Prepare for apiAuth in nvke-controller-config to be the only source of the NVKE API authentication configuration. Nothing here is breaking; retiring AUTH_CONFIG_PATH and the external-ConfigMap mode follows once an nvkectl with this change is released. - nvkectl, the e2e token helper and hack/nvke-token.sh read apiAuth from nvke-controller-config first and fall back to the authentication ConfigMap when the section is off or absent. - permissiveMode moves to apiAuth.permissive, beside the rest of the section and matching the Helm value. A config.yaml that still sets the top-level key is refused with an error naming the new one. - Issuers take an inline jwks.caBundle as an alternative to caBundlePath, so a private CA no longer needs a file mounted from nvke-auth-config. - Tilt and the CAPNICo e2e path render the configuration from chart values, as CAPD already does, and their nvke-auth-dev manifests drop the ConfigMap. Nothing in the repository uses apiAuth.configMap.create=false any more. - The design document replaces its phase 2 outline with the design. Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@nvidia.com> |
||
|
|
e7ebbc4b1b |
feat(controller): read chart-rendered API authentication from nvke-controller-config (#1812)
When the chart renders the API authentication configuration (apiAuth.configMap.create), the controller now reads it from an apiAuth section of nvke-controller-config instead of the file at AUTH_CONFIG_PATH. auth/authn stays the only owner of the schema: the section reuses authn.Issuer and is validated with the new Config.ValidateStartup, which authn.Load also uses. The section is required and carries an explicit enabled switch, so a missing section is a startup failure rather than "off". A section filled in but switched off is refused, and enabling it while AUTH_CONFIG_PATH is set is a startup failure. A ConfigMap managed elsewhere keeps the AUTH_CONFIG_PATH path, and the chart still renders the authentication ConfigMap for nvkectl and extraFiles. The CAPD e2e lane moves to the chart-rendered configuration; Tilt and capnico-e2e keep the external ConfigMap, so CI covers both. The e2e suite and the token and demo scripts treat either source as authentication being on, whichever name the settings ConfigMap has. The auth-mode gauge now follows whether authn.Setup built an authenticator. Also renames the remaining references to the settings ConfigMap, nke-controller-config, to nvke-controller-config, the chart's default since #1769, in docs, comments, test messages and help text. Kept: the legacy pins and fallbacks for installs that predate the rename, and the "Loaded nke-controller-config" startup log line, which the e2e OIDC site helper matches and released images still print. Includes the design doc, controller/docs/api-auth-in-controller-config-design.md. Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@nvidia.com> |
||
|
|
a3cabe2db2 |
refactor(auth): move the authN library to auth/authn (#1903)
Move controller/internal/auth to auth/authn as package authn, in a new module, github.com/dsx-ai-factory/nvke/auth. This is a pure move with no behavior change: only the package name, import paths, the qualifier and path references change. The new module is wired the way controller/api is: go.work use, a require and replace in controller/go.mod, a replace to ../controller/api in auth/go.mod, the root Makefile module lists, the lint and unit-test CI matrices, the e2e path filters, the coverage registry, the notices and licence ignore lists, CODEOWNERS and the labeler. Signed-off-by: dbudris <dbudris@nvidia.com> |
||
|
|
229df84386 |
feat(controller): allow dev control planes without a VIP (#1893)
* feat(controller): allow dev control planes without a VIP Closes #1892 Signed-off-by: Steven Zhang <stevenzhang@nvidia.com> * docs: clarify no-VIP development guidance Signed-off-by: Steven Zhang <stevenzhang@nvidia.com> * docs: document accepted no-VIP rollout behavior Signed-off-by: Steven Zhang <stevenzhang@nvidia.com> * test(e2e): fit CAPD control planes to local memory Signed-off-by: Steven Zhang <stevenzhang@nvidia.com> --------- Signed-off-by: Steven Zhang <stevenzhang@nvidia.com> |
||
|
|
f1920f7cc1 |
fix(controller): keep bound values out of the database query log (#1840)
* fix(controller): keep bound values out of the database query log A failed statement is logged at error and a slow one at warn, with the SQL that bun formatted. For ORM queries and bun.NewRaw that SQL has the values inlined, and the API stores operator-supplied content in jsonb (cloud-init file contents, pre-kubeadm commands, infrastructure templates), so a failed write logged that content in full. The tracing hook already records the SQL with a "?" for each value. Log the SQL the same way unless the logger is at debug. The operation, the error and the PostgreSQL SQLSTATE and message are unchanged. When the SQL cannot be rebuilt, log none rather than a string that holds the values. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * fix(controller): log query values only when DB_QUERY_LOG_VALUES is set Logging a query's values whenever the logger was at debug meant that turning debug on for any other reason also logged the content of every statement. Make the values an explicit opt-in: DB_QUERY_LOG_VALUES, off by default, set like DB_QUERY_LOG_LEVEL. Without it a query is logged with a "?" for each value at every level, including debug. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * docs(controller): move the query log rationale beside the code State the contract in the doc comments of queryLogFormat and placeholderQuery and put the reasons in short comments next to the code they explain. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * docs(controller): document DB_QUERY_LOG_VALUES Say in the observability page that a failed or slow database query is logged with a "?" for each value, and how to log the values while debugging. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * docs(controller): list DB_QUERY_LOG_VALUES where the other controller settings are Add it to the controller's environment variable table and to .env.local.example, and point the observability page's log-level note at the page that describes it. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * fix(controller): keep PostgreSQL error messages out of the query log A PostgreSQL error message can repeat the value it rejected, for example "invalid input syntax for type uuid", so a failed query could still log a value while its query showed a "?". Without DB_QUERY_LOG_VALUES a PostgreSQL error is now logged by its severity and SQLSTATE alone, and pg_message is dropped. With the setting on, both are logged in full. Errors from outside PostgreSQL are unchanged. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * docs(controller): say that every query log omits values by default The setting applies to every logged query, not only a failed or slow one. Fix the wording in the observe and observability pages, the controller's environment table, and the comments in the code and the test. Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> --------- Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> |
||
|
|
8db5721ae3 |
fix(teleport): own the managed-by values earlier releases wrote (#1792)
* fix(teleport): own the managed-by values earlier releases wrote IsOwnedByController compared the "managed-by" label against the single value the controller writes, so moving teleport.managedByLabelValue disowned every token and node already carrying the previous one. A Teleport token's labels are fixed at mint and a node's at join, and neither is ever relabelled, so the move cannot bring them along: they stop being listed, GetToken and DeleteToken refuse them with ErrNotOwnedByController, and nothing reaps what nothing owns. Take an accept list instead, from the new teleport.acceptedManagedByLabelValues beside the written value. The written value stays single -- a token is stamped with one -- and OwnershipManagedByValues puts it first, then the accepted ones, blanks and duplicates dropped. ListNodes filtered server-side on the written value, which has the same blind spot for the same reason, so it now issues one request per accepted value and dedupes by name. That is the path anti-entropy uses to find stale nodes, and the nodes it could no longer see are exactly the ones that joined before the value moved. The chart default is an empty list, which owns only what the controller writes and leaves a new site unchanged. An existing site lists the value its earlier chart wrote. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix(test): use a real legacy managed-by value in the ownership fixture The duplicate-entry case invented nke-cwe, which the merge gate's name-check rejects: it is not one of the names the allowlist carries, because nothing ever wrote it. The two values this feature exists to keep accepting are nke-cloud-workflow-engine and nke-controller, both allowlisted as such. The case asserts that blanks and repeats are dropped, so any value serves. Using one the controller actually encounters costs nothing and keeps the fixture honest about what a legacy label looks like. Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: Terry Howe <thowe@nvidia.com> |
||
|
|
e34e07e355 |
feat(chart)!: default the controller chart names and SPIFFE service path segment to nvke (#1769)
* test(chart): assert default, legacy-pinned and greenfield renders separately chart-identity-assertions.py asserted the legacy names against the default render, so moving a default and keeping an existing install on its names could not be told apart. It now renders three scenarios, each with its own expectations: the chart's defaults, hack/testdata/chart-legacy-pinned-values.yaml, and a renamed greenfield install. A default that moves now changes DEFAULT only. A pin that stops holding the old name fails the legacy-pinned render. The management namespace check is folded into the scenarios, and every check runs so a failure shows which render it was. Signed-off-by: Terry Howe <thowe@nvidia.com> * feat(chart)!: default nameOverride and the controller config ConfigMap to nvke-controller A new install now gets nvke-controller for the Deployment, Service and every object named from the fullname, and nvke-controller-config for the settings ConfigMap. The ServiceAccount, the ServiceMonitor and the nke-rbac objects keep their names; they move separately. BREAKING CHANGE: an install that predates this must set nameOverride to cloud-workflow-engine and controllerConfig.name to nke-controller-config before it takes this chart. The Deployment's spec.selector is immutable, so an upgrade that moves nameOverride fails, and the ConfigMap rename orphans the live object. hack/testdata/chart-legacy-pinned-values.yaml lists the pins. The default scenario of chart-identity-assertions.py moves to the new names and the legacy-pinned scenario does not. The chart scripts, the chart test and the e2e helpers that select the ConfigMap by name follow the default; nvke-auth-demo.sh takes it from NKE_CONTROLLER_CONFIGMAP. Signed-off-by: Terry Howe <thowe@nvidia.com> * style: gofmt map literal alignment in oidc site_test Signed-off-by: Terry Howe <thowe@nvidia.com> * feat(chart)!: default the SPIFFE service path segment to nvke-service A new install issues the controller the ID spiffe://<trust domain>/nvke-service/<service account>: the chart's default RBAC subjects, the ClusterSPIFFEID and the SPIRE admin ID now agree on nvke-service. The CLI bootstrap, the deploy path, the e2e stacks, Tilt and the e2e helpers that name the controller's ID follow. BREAKING CHANGE: an install that predates this must set spiffe.servicePathSegment to nke-service and keep its ClusterSPIFFEID and SPIRE admin ID on /nke-service/. Node agents from before the nvke rename admit only that path, and the controller dials every node with one SVID, so moving it on such a site breaks controller-to-node mTLS. chart-identity-assertions.py checks each scenario's SPIFFE subjects against its segment: nvke-service by default, nke-service in the legacy-pinned render. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: address review feedback Name the auth demo's controller ConfigMap setting NVKE_CONTROLLER_CONFIGMAP, the prefix AGENTS.md requires for settings that name the controller. Show the default SPIFFE subjects in the chart README under spiffe.servicePathSegment instead of a fixed /nke-service/. Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: Terry Howe <thowe@nvidia.com> |
||
|
|
47478ebe8f |
feat: native LaunchLayer provider integration (#1543)
* feat(db): add LaunchLayer provider type and typed payload structs Per NKX-14085: native typed LaunchLayer integration, mirroring NICo's existing db-layer pattern exactly. Adds db.ProviderTypeLaunchLayer, LaunchLayerClusterProvider, LaunchLayerNodePoolProvider (reused for NodeSet, matching NicoNodePoolProvider's reuse), LaunchLayerControlPlaneProvider, and LaunchLayerNodeProvider, each with the standard XProvider()/SetX() accessor pair and clone helper. Extends every ResolveProviderType() switch with the new case, and every existing SetNico/SetCapi setter to null out the new LaunchLayer field too. New migration adds the launch_layer jsonb column to clusters, node_pools, node_sets, and nodes — control_plane_configurations needs no migration since its config column is already a single jsonb blob that can hold a new key without a DDL change. First of several commits implementing full LaunchLayer provider support (OpenAPI schema, internal/server wiring, the capability-client implementations, RBAC, and Tilt dev wiring follow). Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * feat(api): add LaunchLayer OpenAPI schema sections Per NKX-14085: mirrors NICo's schema pattern exactly — LaunchLayerClusterProvider, LaunchLayerNodePoolProvider (+Update), LaunchLayerNodeSetProvider (read-only), LaunchLayerControlPlaneProvider (+Update), LaunchLayerNodeProvider (read-only), plus the LaunchLayerClusterOwner/LaunchLayerSecurityGroup(Refs) nested shapes CAPLL's own cluster-level schema needs. Wires a launchLayer sibling field into the same ~10 container schemas nico is wired into, and extends every not:anyOf provider-exclusivity block from 2-provider to 3-provider logic (forbid every pair, plus forbid none on create-time schemas). make generate / make api-compat-check both pass clean — purely additive, no breaking change. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * feat(clients): implement the LaunchLayer capability client Per NKX-14085: new internal/clients/launchlayer package implementing all 9 ProviderClient capabilities, matching the existing capi/nico shape exactly (Client struct{} + New(), one file per capability). Registers a case db.ProviderTypeLaunchLayer in all 9 factory switches. CAPLL's own Go module (github.com/NVIDIA/cluster-api-provider-launchlayer) only resolves through this environment's internal proxy, not the real public proxy.golang.org — unlike cluster-api-provider-nico, which already made that transition. Per this repo's own "no internal dependency" rule, LaunchLayerCluster/LaunchLayerMachine manifests are built as plain JSON objects instead of importing CAPLL's typed API, the same approach the capi client already uses for a caller-supplied manifest, applied here to a controller-constructed one. Notable design points, each confirmed against the actual CAPLL repo (pulled fresh) rather than assumed: - CreateMachine calls deps.CreateSpireJoinToken/NodeAgentBootstrapFiles the same way the CAPI client does, not NICo's no-SPIRE path — CAPLL is a pure bootstrap-Secret pass-through (docs/profile-args.md), so SPIRE material has to already be baked into the cloud-init payload. - TryAdvanceStuckMachine and ResolveNodePoolUpgrade are no-ops, matching the CAPI client — CAPLL has no rotation/release-catalog concept. - UsesFMDSBGPPeerASN is always false — the VPC-prefix compatibility signal it reports on is a NICo-only concept. - ValidateNodePoolPayload/ValidateControlPlaneConfigPayload enforce instanceType required + hostOSProfile/vmProfile mutual exclusivity, matching #1387's content-validation pattern. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * feat(server): wire LaunchLayer into cluster/node-pool/control-plane dispatch Per NKX-14085: adds a third case to every provider-dispatch switch in internal/server — the request-shape-to-client-call mapping that #1387 established stays in server, not internal/clients. Covers: - clusters.go: create-time dispatch + field-presence validation (validateCreateLaunchLayerClusterProvider), the cluster->db and db->api conversions, the update-time mismatched-provider gate (generalized from a 2-way nico/infra check to 3-way), and the cluster-level control-plane instanceTypePreference-style update path (a no-op for LaunchLayer, since every field is immutable per CAPLL). - node_pools.go: create/update dispatch, field-presence validation, db<->api conversions for NodePool. validateUpdatedNodePool's clusterIsCAPIBacked() boolean dispatch is generalized to a proper 3-way switch — it was implicitly treating "not CAPI" as "Nico", which would have silently run NICo's disk-selection-strategy check against LaunchLayer node pools. - cluster_control_plane_config.go: the parallel control-plane-config dispatch, field-presence validation, and the "merged spec" validator. - node_sets.go / nodes.go: read-response conversions for NodeSet/Node. config.go: new InfraProviderLaunchLayer constant, added to the SUPPORTED_INFRA_PROVIDERS allowlist. Full test suite passes with zero regressions — confirms the clusterIsCAPIBacked generalization didn't change NICo/CAPI behavior. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * feat(chart): grant RBAC for the LaunchLayer CRDs Per NKX-14085: adds launchlayerclusters/launchlayermachines/ launchlayermachinetemplates to the capi ClusterRole, matching the existing nicoclusters/nicomachines entries — the controller creates and reads these objects directly (ClusterScaffold/MachineMaterialization), the same way it does for NICo's CRDs. Also adds the three CRD names to the apiextensions.k8s.io existence-check rule. helm lint / helm template both verified clean. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * feat(clients): add a 10th capability for the hard-reboot annotation key Per NKX-14085: the hard-reboot path (applyCAPIMachineRebootAnnotation) unconditionally wrote NVKE's own nke.nvidia.com/reboot annotation onto the generic CAPI Machine object. That works for NICo because CAPNico's --reboot-annotation flag is deployed configured to that same key — but CAPLL watches a hardcoded infrastructure.cluster.x-k8s.io/reboot-requested key with no configurable override (confirmed by reading CAPLL's own controllers/instance_lifecycle.go), so the same unconditional write would silently never trigger a LaunchLayer reboot. New RebootAnnotationProvider capability (10th on ProviderClient, registered the same way as the other 9) resolves the right key per provider. CAPI/NICo keep today's key unchanged — this is a new dispatch point, not a behavior change for them, confirmed by the full test suite passing with zero regressions. Added a dedicated test proving a LaunchLayer-backed node gets CAPLL's key, not NVKE's. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * fix(controllerconfig): recognize launchLayer as a supported infra provider The chart-mounted controller config validator still only accepted "nico" and "infra" for supportedInfraProviders, so a deployment that enables the LaunchLayer provider fails config validation at startup. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * fix(tilt): fix nico dev-loop install script against current kind/helm kind load docker-image fails against this node image's containerd 2.3.x ("unknown containerd config version: 4 (supported versions: 2 and 3)"): kind parses `containerd config dump`'s live, migrated schema version, which containerd 2.3.x reports as 4 even though the on-disk config file still says 2. Load the image through ctr directly instead, the same mechanism kind uses internally, skipping its version check. helm upgrade/install also no longer takes --server-side=false on the Helm build pinned here; drop it. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * feat(tilt): add local Tilt dev-environment wiring for the launchlayer provider Mirrors hack/nico-provider/'s shape: a new hack/launchlayer-provider/ Tiltfile plus an install-capll.sh script that builds the CAPLL manager and fake-API images from a local cluster-api-provider-launchlayer checkout, deploys the chart and the 3-service fake LaunchLayer API (VPC, Compute, security groups) into the shared kind cluster, and wires the provider into the root Tiltfile's provider-plugin system and supportedInfraProviders list. Verified end-to-end against a live Tilt session: a LaunchLayerCluster and control-plane LaunchLayerMachine provision against the fake API and reach Ready/Provisioned, and the new mutual-exclusivity and content validators correctly reject malformed requests. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * fix(api): waive the structural api-compat break in the Update not-blocks Forbidding a third provider pair on UpdateClusterControlPlaneConfig and UpdateNodePoolRequest needs their bare `not: {required: [...]}` turned into `not: {anyOf: [...]}}`. The structural differ reads that as the original `required` property being removed, but no request valid under the old schema becomes invalid: every pair it forbade is still forbidden, and the new pairs only involve the brand new `launchLayer` field, which no existing client could have been sending. Tried keeping `not.required` untouched and adding the new pairs via a sibling `allOf` instead (logically equivalent by De Morgan's), since that avoids the compat break without a waiver. It breaks oapi-codegen's generated type for both schemas into an untyped interface{}, so it is not viable here. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * fix(chart): split nico and LaunchLayer RBAC into their own files A deployment that enables only one typed provider was still getting ClusterRole permissions for the other's CRDs and for LaunchLayer's, since capi.rbac.create granted all of them unconditionally. Split rbac-capi.yaml's nico and launchLayer rules into their own ClusterRole/ClusterRoleBinding pairs, each independently gated by a new capi.rbac.nico / capi.rbac.launchLayer value (both default true, so capi.rbac.create=true keeps granting everything it did before unless a deployment opts a provider out). rbac-capi.yaml keeps the provider-agnostic CAPI rules (machines, clusters, the finalizers subresource) and the provisioned-provider rules, which this change leaves alone. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * revert: drop the unneeded kind-load ctr workaround The "unknown containerd config version: 4" failure was my local kind CLI (v0.29.0) being too old for this node image's containerd 2.3.x, not a repo-level incompatibility -- confirmed by testing plain `kind load docker-image` again after upgrading to kind v0.33.0, which loads cleanly with no workaround. Revert both scripts to the plain kind-load call; keep the --server-side removal from the same earlier commit, since that one is a real mismatch against the Helm build pinned here and is unrelated to the kind version. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * fix: close three LaunchLayer gaps the lint exhaustiveness checks caught - internal/kube/tenant_client.go: ClientForDBCluster had no case for db.ProviderTypeLaunchLayer and fell into the "unsupported provider type" default, so any code path needing a LaunchLayer cluster's tenant client would have failed outright. LaunchLayer clusters have no pre-tenant-access legacy path to fall back to, so this always goes through clientFromTenantAccessSecret, same as CAPI. - internal/server/clusters.go: createInitialNodePools copied Nico and Infra from each initial node pool's config into the create request it builds, but not LaunchLayer -- a LaunchLayer cluster created with initial node pools would have silently dropped their launchLayer payload. - internal/server/node_pools.go: validateUpdatedNodePool's switch routed anything that wasn't CAPI or LaunchLayer to Nico's validator through its default case, rather than naming Nico explicitly -- the same implicit-default pattern already generalized elsewhere this epic. A genuinely unknown future provider type would have silently gotten Nico's validation instead of being rejected. Also extracted UpdateCluster's controlPlaneConfig provider-match rejection into validateUpdateControlPlaneConfigProviderMatch: adding the LaunchLayer branch pushed the function to cyclomatic complexity 49 / maintainability index 19 (confirmed this function was lint-clean on main before this branch's changes), well past this repo's linters. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * style(clients): fix golangci-lint findings in the launchlayer package - goconst: the "name" JSON-manifest key appeared 3 times across scaffold.go/machine.go; extracted nameKey. - grouper: two ungrouped single const declarations. No behavior change -- caught by CI's lint job, not run locally before this fix since make lint was never run as part of local verification during implementation. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * fix(api): add missing property descriptions and fix exhaustruct in test/e2e The controller/api lint job runs the openapi-lint spec linter in addition to golangci-lint; it failed with 15 property-description-present violations across the LaunchLayer schemas (securityGroups, securityGroupRefs' two fields, and all four fields each on LaunchLayerNodePoolProviderUpdate, LaunchLayerNodeSetProvider and LaunchLayerControlPlaneProvider -- descriptions existed on the base Create-variant schema but were never copied onto its Update/NodeSet/ControlPlane siblings). test/e2e is a separate Go module with its own golangci-lint job; nodePoolRequest had the same Nico/Infra-but-not-LaunchLayer gap internal/server/clusters.go's createInitialNodePools had, caught by exhaustruct in that module's own lint run rather than controller's. Neither of these ran as part of local verification during implementation -- make lint only covers the controller module, not controller/api or test/e2e, which are separate Go modules with their own golangci-lint jobs in CI. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * fix(name-check): allowlist the embedded swagger blob's incidental hits oapi-codegen embeds the full OpenAPI spec in controller/api/server.gen.go as a gzipped, base64-encoded blob for /openapi.yaml to serve at runtime. Adding descriptions to the LaunchLayer schema in this PR reflowed that blob's bytes and happened to produce a 3-character, case-insensitive "nke" token inside it by chance -- not a name reference, and not something any future spec edit is guaranteed to avoid either. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * fix(api): make LaunchLayer node-pool fields fixed at creation, like NICo LaunchLayerNodePoolProviderUpdate exposed all 5 of its properties (instanceType, hostOSProfile, vmProfile, fulfillmentStrategy, securityGroupRefs) while its own description called all 5 "fixed at creation" -- a contract the server never enforced. Updating any of them silently persisted and could trigger a replacement node set with the changed creation-fixed settings (code-review finding, "Major"). NICo already solves this same problem for its own fixed-at-creation fields (instanceTypeID, partitions, sshKeyGroupIDs) by not exposing them in NicoNodePoolProviderUpdate at all, rather than conditionally allowing them up to some point and rejecting them after. Match that precedent instead of building new Compute-submission-state tracking NVKE has nowhere else: LaunchLayerNodePoolProviderUpdate now carries no properties, same shape LaunchLayerControlPlaneProviderUpdate already had. node_pools.go's applier becomes a no-op for launchLayer, matching the existing no-op already written for the control-plane side. Fixed both Update schemas' descriptions to drop the "once a Compute request has been submitted" conditional language that was never enforced. Also added the missing LaunchLayer case to nodePoolReplacementConfigChanged (code-review finding, "Minor"): its switch fell through to the "assume changed" default for LaunchLayer, so an unrelated field change (e.g. maxSurge alone) on a LaunchLayer node pool could incorrectly be treated as needing a replacement node set, which NodePoolNeedsNewNodeSet and validateControlPlaneRollout could then act on. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * fix(temporal): mark the reboot-annotation provider lookup non-retryable clients.GetRebootAnnotationProvider returns a deterministic error for an unsupported cluster.ProviderType -- a pure in-memory switch, no I/O and no transient cause. The activity returned it unwrapped, so Temporal's default retry policy would retry it indefinitely, unable to ever succeed (code-review finding, "Minor"). a.GetCluster's own error is left alone: it already wraps a "not found" error as non-retryable internally. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * fix(name-check): drop the now-dead server.gen.go allowlist entry The schema edit in the previous commit reflowed server.gen.go's embedded swagger blob again, and this time it does not contain an incidental "nke" token -- so the entry added for the last reflow now matches nothing and fails the check as dead, per name-check.py's own design (an allowlist entry must match a real, current hit; it cannot stand as a guard against a hypothetical future one). If a later openapi.yaml edit reflows the blob into containing a hit again, that needs its own fresh entry at that time, not a reinstatement of this one. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * fix(clients): remove SPIRE join-token attestation from LaunchLayer deps.CreateSpireJoinToken already only mints a token when a node is specifically configured for join-token attestation (code-review comment), so this wasn't creating tokens unconditionally. But CAPLL is the production-target provider here, unlike CAPI (dev/test-only), so leaving join-token attestation reachable for it even as a configurable option is the real risk, not just whether it's the active default. CreateMachine no longer calls deps.CreateSpireJoinToken at all. renderBootstrapUserData rejects a node configured for join-token attestation outright, with a LaunchLayer-specific error, instead of silently proceeding to render a SPIRE agent config with no join_token value and no NodeAttestor plugin at all -- which is what would have happened just from removing the template's join-token branches without this guard. The template itself drops the join_token stanza and its NodeAttestor, so there is no path to one reachable even if the guard were ever bypassed. Tested all three attestation methods (tpm, dsxImds, and the join-token rejection) against the actual rendered template output, plus the existing SPIFFE-disabled no-op path. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * fix(launchlayer): register SPIRE identity and node identity for LaunchLayer machines Nothing wrote nke.nvidia.com/spire-agent-spiffe-id-path onto a LaunchLayer-backed Machine, so on a SPIFFE-enabled site MachineSpireEntryController never created its ClusterStaticEntry and the node agent could never authenticate. LaunchLayerSpiffeController now writes it before join. The path is the dsx_imds agent ID DSX gives a LaunchLayer bare-metal instance, /spire/agent/dsx_imds/tenant/<orgID>/bm/<instanceID>, built by the LaunchLayer client's new SpireAgentPathProvider capability from LaunchLayerCluster.status.vpc.orgID and LaunchLayerMachine.status.instanceID, so the controller holds only the watch and Machine wiring. A test drives a SPIFFE-enabled LaunchLayer Machine through both controllers to its ClusterStaticEntry. A SPIFFE-enabled LaunchLayer node can attest only through dsxImds: the Compute API reports no TPM endorsement key, and join-token is not offered for this provider. The new NodeAgentProfileValidator capability holds that rule in the LaunchLayer client. Cluster creation rejects a LaunchLayer cluster with 400 on a deployment whose node-agent profile the rule refuses, instead of accepting a cluster whose nodes never join. CreateMachine checks the node's own pinned profile again, now before anything is applied, and returns ErrUnsupportedMachineConfig, which the activity marks non-retryable, so a rejected node no longer retries forever leaving an orphan LaunchLayerMachine. The post-ready identity readback wrote every provider's instance IDs into node.Nico. It now goes through NewNodeProvider.ApplyObservedNodeIdentity, so a LaunchLayer node records instance, machine and rack IDs in its launchLayer payload, and the provider clients read their own status fields. NICo and CAPI behaviour is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * fix(server): reject a launchLayer payload on NICo and CAPI pool updates UpdateNodePoolRequest promises a 400 for a provider payload that does not match the pool's cluster, but the NICo and CAPI branches never checked launchLayer, so PATCH {"launchLayer":{}} on such a pool succeeded and changed nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * fix(hack): keep --server-side=false on the CAPNICo Helm installs Dropping it switched the CAPNICo installs to server-side apply under the pinned Helm 4.2.4, for the NICo e2e lane and Tilt, where the later kubectl patch of the manager args can conflict on a rerun. The change was unrelated to LaunchLayer; this restores main's version of the script. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * docs: document the LaunchLayer provider and how to enable it The Clusters tag and the infrastructure-providers page still said NICo was the only provider, while the API reference and chart RBAC present launchLayer. Both now describe it, and the page covers enabling it: supportedInfraProviders, capi.rbac.launchLayer, and dsxImds attestation on a SPIFFE-enabled deployment. The supportedInfraProviders comment names launchLayer, and the chart README gains the capi.rbac.nico and capi.rbac.launchLayer rows with the updated capi.rbac.create and supportedInfraProviders descriptions. The controller README gains a LaunchLayer Tilt section. The node-pool schema says "at most one" of hostOSProfile and vmProfile, matching the validator, and the control-plane provider is "Fixed at creation." Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * fix: guard a nil LaunchLayer pool update and document capi.rbac.create validateUpdateLaunchLayerNodePoolRequest dereferenced a nil update body, which the surrounding update path treats as a no-op. The generated HTTP handler never passes nil, but the validator now matches its callers. The LaunchLayer RBAC renders only when capi.rbac.create and capi.rbac.launchLayer are both true, and capi.rbac.create defaults to false, so the enabling steps now list it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * fix(server): close LaunchLayer validation gaps Several LaunchLayer requests were accepted with 201 and only failed later, inside CAPLL or at node join, where nothing reports the cause back to the caller. Node-pool create and a control-plane desiredCount increase now run the same node-agent profile check as cluster create, through one shared function. A cluster created while SPIFFE was off could otherwise gain pools or control-plane nodes after SPIFFE was enabled with tpm or joinToken, and every one of those nodes would fail to join. Cluster create now rejects security groups that CAPLL's CRD would refuse: the name pattern and length are in the schema, and the server checks that networkType is set exactly for VIRTUALIZED groups, that names are unique, and that a VIRTUALIZED group is not placed in a BARE_METAL VPC. Without this, ApplyCAPIClusterResources gets 422 and the provisioning workflow retries forever. securityGroupRefs on node pools and the control plane must name one of the cluster's groups, and cloudProviderEnabled true is rejected because NVKE runs no cloud controller manager to set the Node's provider ID. The schema now marks siteID and instanceType as required, which the server already enforced, and corrects descriptions that claimed NVKE applies CAPLL's vpcType default or that some fields stay mutable. No published API tag contains a LaunchLayer schema, so this is not a breaking change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * fix(launchlayer): register the SPIFFE controller by CRD, skip it without SPIFFE, apply in order LaunchLayerSpiffeController was registered only while supportedInfraProviders listed launchLayer. That list gates admission of new clusters; removing launchLayer from it to stop new clusters also stopped the controller, so scale-ups and replacements on existing SPIFFE clusters never got an agent path and never joined. The controller now runs whenever the Machine and LaunchLayerMachine CRDs are installed. SpireAgentPath ignored node.SpiffeEnabled. With SPIFFE off and the method left at dsxImds it still wrote a path and requeued every 30 seconds while the organization was pending. It now supplies no path without SPIFFE. CreateMachine built the CAPI Machine after applying the LaunchLayerMachine and the bootstrap Secret, so a build error left both behind and was retried, contrary to its comment. Every object is now built before the first apply. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * docs: correct LaunchLayer enablement and Tilt setup The site guide and chart docs described a LaunchLayer setup that does not work as written. nodeAgent.spireAttestationMethod applies to every provider's new nodes, and NICo accepts any method, so the guide's "nico,launchLayer" example would pin a TPM-attested NICo site's new nodes to dsxImds; they would fail only when they attest. The guide and the supportedInfraProviders value now say so, and tell operators to append launchLayer to the existing value rather than replace it. The guide also omitted settings the deployment needs: operatorTenant and endpoint with dsxImds, the SPIRE server's dsx_imds node attestor and the node-side agent plugin and checksum, tenantAccess.enabled (LaunchLayer reaches the tenant API only through that Secret), and keeping capi.rbac.launchLayer true while CAPLL's CRDs exist, now that the LaunchLayer SPIFFE controller is registered by CRD. capi.rbac.nico=false likewise requires the NICo controllers to be off. The "Order Matters" section now names CAPLL and the fourth CRD-gated controller. The controller README's LaunchLayer Tilt example set only the attestation method, which the chart refuses to render without operatorTenant; it now enables the dsx-imds-attestation provider, which sets everything. The Tiltfile header lists the launchlayer provider, the capnico-crds fixture no longer claims the chart grants NICo RBAC unconditionally, and the chart provider assertions cover a nico,infra,launchLayer value and both RBAC toggles. The four LaunchLayer waivers now record controller/api/v0.0.45, the newest published API tag. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * docs: describe NICo as the default provider, not the only one The API reference, the site guide and the chart describe LaunchLayer as a supported provider that a deployment accepts once its operator enables it, but five other places still said NICo is the only infrastructure provider: the preview-status limitations, the NICo provider page, the installation plan, the supported-platforms table and the docs glossary. They now say NICo is the default and LaunchLayer is supported once enabled, linking to the LaunchLayer enabling section. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * refactor(launchlayer): adopt the nvke.nvidia.com keys #1713 moved NVKE's label and annotation keys into internal/keys: they are written under nvke.nvidia.com and read under either domain. The rebase onto it left this branch on the removed constants. LaunchLayerSpiffeController reads host-id and the SPIRE agent path with Value and writes the path with String(), as NicoSpiffeController does. The reboot key had become a list on main (both domains, so CAPNICo keeps reacting while its --reboot-annotation names the legacy key), while this branch's RebootAnnotationProvider returned one key. It now returns HardRebootAnnotationKeys: both domains for NICo and CAPI, which keeps main's behaviour, and CAPLL's one fixed key for LaunchLayer. The activity writes each key to request a reboot and drops them to clear it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * feat(launchlayer): implement TenantAPIAccess and NodeMachineIDLabel #1684 added both capabilities to ProviderClient with CAPI and NICo implementations, so GetProviderClient failed with "unsupported provider type" for every LaunchLayer cluster, not only at tenant access and node labelling. LaunchLayer reaches the tenant API through the published tenant-access Secret (it has no node-agent fallback), and its machine-ID label is the physical machine ID CAPLL records, empty on virtual machines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * refactor(clients): compose every capability in ProviderClient ProviderClient composes every settled capability, as the #1684 review pointed out, but NodeAgentProfileValidator and SpireAgentPathProvider were outside it. GetProviderClient now resolves both, and its test checks every capability for CAPI, NICo and LaunchLayer. The reboot-annotation activity and LaunchLayerSpiffeController have the cluster in scope, so they resolve the root client instead of calling a single factory. The API validators keep their factory calls, as main's other validators do. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * fix(launchlayer): reject vmProfile and check pool scale-up for node-agent profile A SPIFFE-enabled LaunchLayer node attests through DSX IMDS, which identifies bare-metal instances only. A vmProfile node got a /bm/ agent path it could never attest to and hung. ValidateNodeAgentProfile now takes the node pool and rejects vmProfile unless external mTLS carries the node-agent connection without an SVID. NICo and CAPI ignore the pool. The check runs on every path that adds nodes: - node-pool create and cluster create (each initial pool) - the control plane at cluster create and scale-up, through the pool ControlPlaneConfigNodeProvider builds from its spec - node-pool scale-up through desiredNodeCount, which was not checked before - CreateMachine, for a node created outside the API An unknown provider in a control-plane update now gets "unsupported cluster provider" instead of "please provide " with an empty name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * refactor(launchlayer): drop checks the API and NVKE already guarantee buildInfraMachine re-checked instanceType, which the schema and the node-pool and control-plane validators already require. readStatusString checked the group and kind of infrastructure references NVKE writes itself, on a controller that only runs for LaunchLayer clusters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * chore: satisfy interfacebloat and wastedassign ProviderClient has one accessor per settled capability, so it grows past the linter's 10 as capabilities move into it; it carries a reasoned nolint like the agent client. The provider-match switch now returns on an unknown provider, so its empty initial values were never read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> --------- Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
6e8871aa40 |
feat!: make the management namespace configurable and default it to nvke-system (#1698)
* feat(controller): make the management namespace configurable The shared management-plane namespace was the compile-time constant constants.NamespaceNVKESystem. It is now the nke-controller-config key managementNamespace, read through config.Config.ManagementNamespaceOrDefault and threaded to what addresses that namespace: the tenant-access publish and Secret-reconcile paths, the nke-rbac read, the CAPI cluster and machine activities, failure-domain discovery, the Teleport token controller, the OIDC rollout operation and the Secret cache the manager builds. An unset key resolves to nke-system, which is what a config.yaml written before the key existed decodes to, so a controller upgrade alone never moves a site. The old constant is renamed LegacyManagementNamespace to say which of the two it is. Signed-off-by: Terry Howe <thowe@nvidia.com> * feat(chart): default the management namespace to nvke-system nvkeSystemNamespace.name is new and defaults to nvke-system. One helper, controller.managementNamespace, feeds the Namespace object, the nke-rbac ConfigMap, the Role and RoleBinding scoped to it and the managementNamespace key the controller reads, so the grant and the namespace it covers cannot drift apart. This moves the default a new install gets. The old namespace is not also read, so a site installed before the value existed must pin nvkeSystemNamespace.name to nke-system before it upgrades; the chart README says so and chart-identity-assertions.py now renders that pin and asserts every object and the controller config land on it. Signed-off-by: Terry Howe <thowe@nvidia.com> * feat(cli): read kubeconfig Secrets from a configurable namespace nvkectl get kubeconfig reads nvke-system and then nke-system, so it finds the Secret whether or not the site has pinned the old management namespace, and --namespace names one outright. The error from a miss names the last namespace searched rather than reporting only the first. The bootstrap engine installs the chart with default values, so its own constant moves to nvke-system with the chart default. Signed-off-by: Terry Howe <thowe@nvidia.com> * chore: move the greenfield deploy, e2e and docs to nvke-system The base-config Namespace manifests, Tilt, the e2e lanes, the CI helper scripts and the user-facing docs all name the management namespace. They describe a new install, so they follow the chart default. Nothing here is read by a site that has pinned nke-system. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: address review feedback fix: address CI failures Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: address CI failures The CLI falls back from nvke-system to nke-system and its not-found error names the last namespace tried, so the smoke test accepts either. Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: Terry Howe <thowe@nvidia.com> |
||
|
|
17f1f606e0 |
feat(controller): support create-only Machine metadata (#1708)
- Add Machine labels and annotations to node pools and control-plane configuration - Persist metadata and apply it when creating Machines - Validate reserved domains with separate configurable allowlists - Add tests and documentation; validate lifecycle behavior on Tilt with mock NICo Signed-off-by: Vivin Wilson <vwilson@nvidia.com> |
||
|
|
5c095369f5 |
refactor(controller)!: remove control-plane controller flag and node-pool control plane path (#1608)
* refactor(controller)!: remove control-plane controller flag and node-pool control plane path Control planes are always provisioned by the control-plane controller. Remove PROVISION_CONTROL_PLANE_WITH_CONTROL_PLANE_CONTROLLER, the flag-off node-pool provisioning branches, and the e2e plumbing that toggled it. Run the control-plane migration unconditionally on worker boot. Signed-off-by: Eric Staples <estaples@nvidia.com> * refactor(controller): remove unused NodePoolUpgradeConfig provider capability The control-plane reconciler no longer resolves node-pool upgrades, so the capability, its capi and nico implementations, and the factory that GetProviderClient ran on every resolve have no callers. Signed-off-by: Eric Staples <estaples@nvidia.com> * refactor(controller): count surge nodes from the in-memory control plane reconcileNodesNeedingRollout re-listed the cluster's control-plane nodes to count controller-managed ones, duplicating the list readControlPlane already loaded for the same reconcile. Signed-off-by: Eric Staples <estaples@nvidia.com> * fix(controller): guard nil controlPlaneConfig before reading desiredCount Signed-off-by: Eric Staples <estaples@nvidia.com> * docs(controller): tighten MigrateControlPlaneToController doc comment Signed-off-by: Eric Staples <estaples@nvidia.com> * fix(controller): skip clusters with no snapshot source in the migration leftover check A non-deleting cluster with no configuration_id whose only control-plane pools are deleting cannot be snapshotted, so its pooled nodes stayed pooled and tripped the fail-closed check, blocking worker startup. Signed-off-by: Eric Staples <estaples@nvidia.com> * test(controller): cover MigrateControlPlaneToController against Postgres The re-parent, deprecated-generation and cleanup SQL is Postgres-only and had no coverage. The test runs it on a fresh database named by NVKE_TEST_POSTGRES_DSN and skips when that is unset. Signed-off-by: Eric Staples <estaples@nvidia.com> * fix(controller): warn for each cluster the control-plane migration skips A non-deleting cluster with pooled control-plane nodes, no configuration snapshot and no active control-plane pool has nothing to migrate from, so the leftover check skips it. Log a warning per skipped cluster with its ID, name and pooled node count so the skip is visible. MigrateControlPlaneToController now takes a logger. Signed-off-by: Eric Staples <estaples@nvidia.com> * test(controller): use the nvke name in control-plane test fixtures name-check rejects the legacy product name in new lines. Signed-off-by: Eric Staples <estaples@nvidia.com> --------- Signed-off-by: Eric Staples <estaples@nvidia.com> |
||
|
|
fadaa3483e |
feat(controller): validate node pool labels and taints, with a configurable label allowlist (#1615)
* chore: validate node labels and taints Signed-off-by: pbikki-nv <50849668+pbikki@users.noreply.github.com> * feat(controller): make the node label allowlist configurable Labels under kubernetes.io and k8s.io are rejected unless listed in nodeMetadataAllowlistedLabelKeys in nke-controller-config (chart value nodeMetadata.allowlistedLabelKeys, empty by default). Internal nke/nvke domains and the control-plane role key are always reserved, and the controller fails to start if the allowlist names them. Rejection errors name the reserved domain the key falls under. Signed-off-by: pbikki-nv <50849668+pbikki@users.noreply.github.com> * docs(controller): clarify node label allowlist Signed-off-by: pbikki-nv <50849668+pbikki@users.noreply.github.com> * fix(controller): align reserved node metadata domains and pass name-check Reserve nvke.nvidia.com, nke.nvidia.com and nke.io, dropping nvke.io. The OpenAPI descriptions now list all three and mark the nke domains as legacy. Allowlist the bare nke.io token in name-check: the controller names it only to reserve it. Signed-off-by: pbikki-nv <50849668+pbikki@users.noreply.github.com> * fix(controller): address review on node metadata validation Report the first invalid node label in sorted key order so repeated requests name the same key. Document the allowlist exclusions and startup validation in the chart values and README, and state why control-plane pools reject taints. Regenerate the embedded OpenAPI spec in server.gen.go, which was stale after the rebase, and fix a label test that the new Calico gate rejected first. Signed-off-by: pbikki-nv <50849668+pbikki@users.noreply.github.com> --------- Signed-off-by: pbikki-nv <50849668+pbikki@users.noreply.github.com> |
||
|
|
a7254929c3 |
feat(controller): per-provider OIDC discoveryURL (#1628)
Fleet-wide providers in oidc.providers could not set a discovery URL, so kube-apiserver always fetched <issuerURL>/.well-known/ openid-configuration, and an issuer the tenant API servers cannot reach at its own URL could not be used. Only the shared provider had one. Each provider now takes an optional discoveryURL, rendered as the issuer's discoveryURL in the tenant AuthenticationConfiguration and pinned with the rest of the provider on new clusters. The loader applies the checks kube-apiserver would: an absolute https URL with no credentials, query or fragment, different from issuerURL, and unique across the providers and the enabled shared provider. Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@nvidia.com> |
||
|
|
f520e100aa |
feat(controller)!: converge control-plane node-agent versions (#1353)
* refactor(agent)!: use version and method for agent updates Signed-off-by: Chao Chen <chaoch@nvidia.com> * feat(controller): converge control-plane node-agent versions Signed-off-by: Chao Chen <chaoch@nvidia.com> * test: cover agent convergence and deletion recovery Signed-off-by: Chao Chen <chaoch@nvidia.com> * docs: explain control-plane node-agent updates Signed-off-by: Chao Chen <chaoch@nvidia.com> |
||
|
|
a12794be51 |
feat(controller): create trace context without a span export endpoint (#1597)
* feat(controller): create trace context without a span export endpoint The controller now always creates and propagates trace context, so its log lines carry a trace_id whether or not spans are exported. tracing.enabled and tracing.endpoint decide only whether spans leave the process. The request log also carries the User-Agent, and the bootstrap troubleshooting guide shows how to search the controller logs by trace ID. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * test(controller): reject every SQL span in the export-off tracing e2e Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * fix(controller): keep malformed resource attributes from stopping startup Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * docs(controller): state contracts in the remaining tracing comments Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * feat(controller): warn when span export is enabled without an endpoint Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> * test(controller): drop the separate test for the missing-endpoint warning Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> --------- Signed-off-by: Anisha Gupta <anisgupta@nvidia.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
3038cf917c | feat(controller): gate new Calico clusters (#1599) | ||
|
|
8608645c97 |
fix(controller): bound node-agent readiness probes (#1328)
The node-agent readiness controller previously checked agents serially using a shared two-minute timeout. A slow agent could therefore occupy the only worker and delay readiness checks across the fleet. This change adds a configurable worker pool (default eight), a dedicated agent RPC timeout (default 30s), and jitter around the two-minute requeue interval. In addition, probe concurrency and latency metrics were added. Signed-off-by: Michael Shen <mishen@nvidia.com> |
||
|
|
5427e14ac7 |
refactor: launch rename E, identity and RBAC dual-accept windows and nke: prune (#1563)
* refactor: accept both identity spellings and rename tenant RBAC to nvke Accept both forms for one release on the receiving side: the nvke-controller and nke-controller JWT audiences, the nke: and nvke: reserved identity prefixes, and the auth.nvke/auth.nke auth-config apiVersions. Rename the tenant RBAC objects to nvke:cwe and nvke:capi-cluster-admin, move the server-side-apply field manager to nvke, and prune the old nke: objects from each tenant cluster after the new manifest applies. A site that pins the old tenantRbacName keeps what it applies. Make the Teleport resource-group label a setting and move the managed-by, token prefix and resource-group defaults to nvke for new sites; existing sites pin the old values. Leave the leader-election leases alone permanently and record them under existing-sites identity in the name-check allowlist. Part of #1496 Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: align the local controller config with the new Teleport defaults Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: satisfy the controller linters in the legacy RBAC prune golangci-lint flagged the new prune helper: legacyRBACObjects as a package global, the repeated "nke:cwe" literal, and the Delete error checked inline through IgnoreNotFound. Make the list a function, name the literal, and split the Delete out of the if. Also fix a misspelling the US locale rejects. Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: Terry Howe <thowe@nvidia.com> |
||
|
|
8c6e47fc1e |
feat(controller)!: read settings only from nke-controller-config (#1527)
The controller now takes the 61 settings nke-controller-config carries from the mounted file only. Each config.Config field that moved trades its env tag for a controllerconfig tag naming its config.yaml key, and controllerconfig.LoadStartupConfig fills them at startup from the file CONTROLLER_CONFIG_PATH names, which is now required. The chart stops setting the 61 variables, and config.Validate checks only what the environment still supplies; the file validates the rest when it loads. With no tracing.endpoint in the file, the controller falls back to the OTEL_EXPORTER_OTLP_* variables the OpenTelemetry Operator injects, as it did before. The exporter gets the endpoint as a URL whose scheme carries the resolved transport, so an injected http:// endpoint cannot downgrade a secure tracing.endpoint, and an https:// one stays secure. Host-local runs and the gofail e2e worker start from hack/local-controller-config.yaml. The e2e helpers that toggled OIDC and permissive mode on the Deployment now edit nke-controller-config and restart the controller. Rolling back across this change needs the chart and the image rolled back together: an older image under this chart runs on Go defaults for every setting the chart no longer passes. Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@nvidia.com> |
||
|
|
3baba6d1b4 |
ci: give the name check its launch allowlist, and move the stragglers to the new name (#1484)
* chore: move test doubles, examples and stale references to the new name What the name check still reported outside the Tier 2 identifiers: synthetic names in tests (nke-site, nke-old, nke-injected, nke-role, nke-key-1 and friends), registry and path examples in documents and flag help (registry.example.com/nke, ghcr.io/my-org/nke, ~/dev/nke), development defaults (DEV_NAME, kind contexts, the promtail job, the mutagen example), stale references to packages renamed earlier (internal/nke, nke.NewClient, nkecli, nkeutils), the `nke#1399` issue shorthand, the CI image tag nke/capd-reboot-controller, the prune script's package names, and a few comments and messages. The UpdateNKERBAC rpc's errors now start with the rpc name, which no caller parses. Kept: the two synthetic fixture profiles' image URLs, because osprofiles-to-crs refuses to change a published MachineImage spec; the salt of the bring-up VMs' default password hash; the legacy installer path the kubeadm-distro test asserts is absent; the fleet names existing sites carry. The postgresql chart's description changes with a patch bump. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * ci: give the name check its launch allowlist hack/name-check-allowlist.txt grows from two entries to 48, each with its reason: the Tier 2 identifiers that stay until the post-launch release (PR4 Kubernetes, PR5 node, PR6 OS image and packages), the permanent keeps (migration names and texts, the NKEAuth magic and its package, fleet release and profile names, the identity of existing sites), the settings-coupled names (the old NGC token secret, the CODEOWNERS team slugs, the S3 and apt names, the old CLI name), and the files that keep the bare word (the agent version line the updater parses, the OIDC upstream CA subject, the Keycloak lab, the two NVCR workflows whose NGC organisation is named NKE). With it, NAME_CHECK_MODE=fail make name-check passes on this tree: 5,908 hits, all allowed, every entry in use. The make target keeps report mode until the launch flips it (W4). Closes #1483 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> --------- Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> |
||
|
|
6029bf16ab |
chore: say NVKE in the comments and display text that still said NKE (#1470)
* chore: say NVKE in the comments that still said NKE The word NKE in comments becomes NVKE: Go comments through the token scanner, so no string literal moves; proto doc comments, with the generated *.pb.go files regenerated by `make -C agent protos`; and the comment lines of YAML, shell, Make, Tilt, systemd, Packer, Nix and template files. The provisioned provider's CRD description comes from a doc comment, so `make -C cluster-api-provider-provisioned manifests` and `make -C cli provider-manifest` regenerated the CRD and the CLI's embedded copy of it. Kept on purpose: the comment quoting the "NKE Agent Version:" line the updater parses, and the comments about the NGC organisation that is named NKE. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> * chore: say NVKE in the display text that still said NKE User-facing text that carried the word NKE now says NVKE: nvkectl help text; log, error and condition messages; Ginkgo suite and spec names; deb and OCI package metadata; systemd unit descriptions; workflow step names and input descriptions; Helm render failures; and the nine Markdown lines the prose sweep (#1462) missed. The tests that assert these strings move with them. Kept on purpose, because something parses or persists them: the "NKE Agent Version:" and "NKE Agent Updater Version:" lines the updater reads; the "update NKE RBAC:" errors of the UpdateNKERBAC rpc; the 2025 migration text; the OIDC upstream CA's CN and OU, since re-issuing that CA would break tenant trust; the nico-sim tenant "Forge-Tenant-NKE"; the Keycloak lab realm; and the NGC organisation that is named NKE. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> --------- Signed-off-by: Davanum Srinivas <dsrinivas@nvidia.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.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> |
||
|
|
d91db50b78 |
feat(controller): pin fleet-wide OIDC providers at cluster creation (#1426)
Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@nvidia.com> |
||
|
|
97cc189dec |
feat(controller)!: mount nke-controller-config and load it at startup (#1325)
BREAKING CHANGE: The chart refuses an env entry for a setting nke-controller-config carries. Set it through its chart value instead. Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@nvidia.com> |
||
|
|
ed9a2f62b5 |
feat(controller): reject OIDC provider prefixes inside reserved namespaces (#1332)
Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@nvidia.com> |
||
|
|
7beaf77b8f | feat(chart): render the nke-controller-config ConfigMap (#1163) | ||
|
|
e231a67156 |
feat(api)!: remove node workflow history endpoint (#1300)
- Remove the history route, handler, schemas, and generated API code.
- Remove the unused Temporal UI URL from configuration and the version response.
- Update related tests and configuration references.
BREAKING CHANGE: GET /api/nodes/{nodeID}/history and the temporalUIURL field in GET /api/version are removed.
Signed-off-by: Vivin Wilson <vwilson@nvidia.com>
|
||
|
|
f94bef9e93 | feat(controller): add Go types and YAML loader for nke-controller-config (#1066) |