mirror of
https://github.com/dsx-ai-factory/nvke.git
synced 2026-12-07 04:35:58 +08:00
pull-request/2437
333
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
8150df8f7c |
build(deps): pin klauspost/compress 1.20.5 and brotli 1.3.0 (#2567)
Signed-off-by: Byron McAdams <bmcadams@nvidia.com> |
||
|
|
28a8010cab |
chore(os-image): drop Kubernetes 1.34.2 after staging 1.37 (#2276)
Signed-off-by: Payal Patel <payapatel@nvidia.com> |
||
|
|
643e5eb773 |
feat(os-image): restore optional verified IMDS agent packaging (#2419)
Signed-off-by: Nathan Hensley <nhensley@nvidia.com> |
||
|
|
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>
|
||
|
|
03307407a0 |
build: bump the go-dependencies group across 6 directories with 8 updates (#2445)
* build: bump the go-dependencies group across 6 directories with 8 updates Bumps the go-dependencies group with 8 updates in the / directory: | Package | From | To | | --- | --- | --- | | [go.etcd.io/etcd/api/v3](https://github.com/etcd-io/etcd) | `3.7.3` | `3.7.4` | | [go.etcd.io/etcd/client/v3](https://github.com/etcd-io/etcd) | `3.7.3` | `3.7.4` | | [github.com/cedar-policy/cedar-go](https://github.com/cedar-policy/cedar-go) | `1.9.2` | `1.9.3` | | [github.com/dsx-ai-factory/cluster-api-provider-nico](https://github.com/dsx-ai-factory/cluster-api-provider-nico) | `0.1.0` | `0.2.0` | | [go.temporal.io/sdk/contrib/opentelemetry](https://github.com/temporalio/sdk-go) | `0.8.1` | `0.9.0` | | [golang.org/x/tools](https://github.com/golang/tools) | `0.52.0` | `0.53.0` | | [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go) | `1.70.0` | `1.71.0` | | [google.golang.org/api](https://github.com/googleapis/google-api-go-client) | `0.315.0` | `0.316.0` | Bumps the go-dependencies group with 2 updates in the /agent directory: [go.etcd.io/etcd/api/v3](https://github.com/etcd-io/etcd) and [go.etcd.io/etcd/client/v3](https://github.com/etcd-io/etcd). Bumps the go-dependencies group with 1 update in the /auth directory: [github.com/cedar-policy/cedar-go](https://github.com/cedar-policy/cedar-go). Bumps the go-dependencies group with 2 updates in the /controller directory: [github.com/dsx-ai-factory/cluster-api-provider-nico](https://github.com/dsx-ai-factory/cluster-api-provider-nico) and [go.temporal.io/sdk/contrib/opentelemetry](https://github.com/temporalio/sdk-go). Bumps the go-dependencies group with 2 updates in the /management-engine directory: [github.com/dsx-ai-factory/cluster-api-provider-nico](https://github.com/dsx-ai-factory/cluster-api-provider-nico) and [golang.org/x/tools](https://github.com/golang/tools). Bumps the go-dependencies group with 2 updates in the /release directory: [cloud.google.com/go/storage](https://github.com/googleapis/google-cloud-go) and [google.golang.org/api](https://github.com/googleapis/google-api-go-client). Updates `go.etcd.io/etcd/api/v3` from 3.7.3 to 3.7.4 - [Release notes](https://github.com/etcd-io/etcd/releases) - [Commits](https://github.com/etcd-io/etcd/compare/v3.7.3...v3.7.4) Updates `go.etcd.io/etcd/client/v3` from 3.7.3 to 3.7.4 - [Release notes](https://github.com/etcd-io/etcd/releases) - [Commits](https://github.com/etcd-io/etcd/compare/v3.7.3...v3.7.4) Updates `github.com/cedar-policy/cedar-go` from 1.9.2 to 1.9.3 - [Release notes](https://github.com/cedar-policy/cedar-go/releases) - [Commits](https://github.com/cedar-policy/cedar-go/compare/v1.9.2...v1.9.3) Updates `github.com/dsx-ai-factory/cluster-api-provider-nico` from 0.1.0 to 0.2.0 - [Release notes](https://github.com/dsx-ai-factory/cluster-api-provider-nico/releases) - [Changelog](https://github.com/dsx-ai-factory/cluster-api-provider-nico/blob/main/CHANGELOG.md) - [Commits](https://github.com/dsx-ai-factory/cluster-api-provider-nico/compare/v0.1.0...v0.2.0) Updates `go.temporal.io/sdk/contrib/opentelemetry` from 0.8.1 to 0.9.0 - [Release notes](https://github.com/temporalio/sdk-go/releases) - [Changelog](https://github.com/temporalio/sdk-go/blob/main/CHANGELOG.md) - [Commits](https://github.com/temporalio/sdk-go/compare/contrib/opentelemetry/v0.8.1...contrib/opentelemetry/v0.9.0) Updates `golang.org/x/tools` from 0.52.0 to 0.53.0 - [Release notes](https://github.com/golang/tools/releases) - [Commits](https://github.com/golang/tools/compare/v0.52.0...v0.53.0) Updates `cloud.google.com/go/storage` from 1.70.0 to 1.71.0 - [Release notes](https://github.com/googleapis/google-cloud-go/releases) - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md) - [Commits](https://github.com/googleapis/google-cloud-go/compare/compute/v1.70.0...compute/v1.71.0) Updates `google.golang.org/api` from 0.315.0 to 0.316.0 - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.315.0...v0.316.0) Updates `go.etcd.io/etcd/api/v3` from 3.7.3 to 3.7.4 - [Release notes](https://github.com/etcd-io/etcd/releases) - [Commits](https://github.com/etcd-io/etcd/compare/v3.7.3...v3.7.4) Updates `go.etcd.io/etcd/client/v3` from 3.7.3 to 3.7.4 - [Release notes](https://github.com/etcd-io/etcd/releases) - [Commits](https://github.com/etcd-io/etcd/compare/v3.7.3...v3.7.4) Updates `github.com/cedar-policy/cedar-go` from 1.9.2 to 1.9.3 - [Release notes](https://github.com/cedar-policy/cedar-go/releases) - [Commits](https://github.com/cedar-policy/cedar-go/compare/v1.9.2...v1.9.3) Updates `github.com/dsx-ai-factory/cluster-api-provider-nico` from 0.1.0 to 0.2.0 - [Release notes](https://github.com/dsx-ai-factory/cluster-api-provider-nico/releases) - [Changelog](https://github.com/dsx-ai-factory/cluster-api-provider-nico/blob/main/CHANGELOG.md) - [Commits](https://github.com/dsx-ai-factory/cluster-api-provider-nico/compare/v0.1.0...v0.2.0) Updates `go.temporal.io/sdk/contrib/opentelemetry` from 0.8.1 to 0.9.0 - [Release notes](https://github.com/temporalio/sdk-go/releases) - [Changelog](https://github.com/temporalio/sdk-go/blob/main/CHANGELOG.md) - [Commits](https://github.com/temporalio/sdk-go/compare/contrib/opentelemetry/v0.8.1...contrib/opentelemetry/v0.9.0) Updates `github.com/dsx-ai-factory/cluster-api-provider-nico` from 0.1.0 to 0.2.0 - [Release notes](https://github.com/dsx-ai-factory/cluster-api-provider-nico/releases) - [Changelog](https://github.com/dsx-ai-factory/cluster-api-provider-nico/blob/main/CHANGELOG.md) - [Commits](https://github.com/dsx-ai-factory/cluster-api-provider-nico/compare/v0.1.0...v0.2.0) Updates `golang.org/x/tools` from 0.52.0 to 0.53.0 - [Release notes](https://github.com/golang/tools/releases) - [Commits](https://github.com/golang/tools/compare/v0.52.0...v0.53.0) Updates `cloud.google.com/go/storage` from 1.70.0 to 1.71.0 - [Release notes](https://github.com/googleapis/google-cloud-go/releases) - [Changelog](https://github.com/googleapis/google-cloud-go/blob/main/CHANGES.md) - [Commits](https://github.com/googleapis/google-cloud-go/compare/compute/v1.70.0...compute/v1.71.0) Updates `google.golang.org/api` from 0.315.0 to 0.316.0 - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.315.0...v0.316.0) --- updated-dependencies: - dependency-name: go.etcd.io/etcd/api/v3 dependency-version: 3.7.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: go.etcd.io/etcd/client/v3 dependency-version: 3.7.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/cedar-policy/cedar-go dependency-version: 1.9.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/dsx-ai-factory/cluster-api-provider-nico dependency-version: 0.2.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: go.temporal.io/sdk/contrib/opentelemetry dependency-version: 0.9.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: golang.org/x/tools dependency-version: 0.53.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: cloud.google.com/go/storage dependency-version: 1.71.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: google.golang.org/api dependency-version: 0.316.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: go.etcd.io/etcd/api/v3 dependency-version: 3.7.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: go.etcd.io/etcd/client/v3 dependency-version: 3.7.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/cedar-policy/cedar-go dependency-version: 1.9.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/dsx-ai-factory/cluster-api-provider-nico dependency-version: 0.2.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: go.temporal.io/sdk/contrib/opentelemetry dependency-version: 0.9.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/dsx-ai-factory/cluster-api-provider-nico dependency-version: 0.2.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: golang.org/x/tools dependency-version: 0.53.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: cloud.google.com/go/storage dependency-version: 1.71.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: google.golang.org/api dependency-version: 0.316.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * build: refresh go.work.sum for go-dependencies group bump Signed-off-by: Terry Howe <thowe@nvidia.com> * build: regenerate third-party notices for go-dependencies group bump Signed-off-by: Terry Howe <thowe@nvidia.com> * chore: retrigger ci Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Terry Howe <thowe@nvidia.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Terry Howe <thowe@nvidia.com> |
||
|
|
ee3764cbe1 |
build: bump the kubernetes group across 6 directories with 1 update (#2443)
* build: bump the kubernetes group across 6 directories with 1 update Bumps the kubernetes group with 1 update in the / directory: [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime). Bumps the kubernetes group with 1 update in the /cluster-api-provider-provisioned directory: [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime). Bumps the kubernetes group with 1 update in the /controller directory: [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime). Bumps the kubernetes group with 1 update in the /controller/hack/capd-reboot-controller directory: [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime). Bumps the kubernetes group with 1 update in the /controller/test/e2e directory: [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime). Bumps the kubernetes group with 1 update in the /management-engine directory: [sigs.k8s.io/controller-runtime](https://github.com/kubernetes-sigs/controller-runtime). Updates `sigs.k8s.io/controller-runtime` from 0.25.2 to 0.25.3 - [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases) - [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md) - [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.25.2...v0.25.3) Updates `sigs.k8s.io/controller-runtime` from 0.25.2 to 0.25.3 - [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases) - [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md) - [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.25.2...v0.25.3) Updates `sigs.k8s.io/controller-runtime` from 0.25.2 to 0.25.3 - [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases) - [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md) - [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.25.2...v0.25.3) Updates `sigs.k8s.io/controller-runtime` from 0.25.2 to 0.25.3 - [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases) - [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md) - [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.25.2...v0.25.3) Updates `sigs.k8s.io/controller-runtime` from 0.25.2 to 0.25.3 - [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases) - [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md) - [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.25.2...v0.25.3) Updates `sigs.k8s.io/controller-runtime` from 0.25.2 to 0.25.3 - [Release notes](https://github.com/kubernetes-sigs/controller-runtime/releases) - [Changelog](https://github.com/kubernetes-sigs/controller-runtime/blob/main/RELEASE.md) - [Commits](https://github.com/kubernetes-sigs/controller-runtime/compare/v0.25.2...v0.25.3) --- updated-dependencies: - dependency-name: sigs.k8s.io/controller-runtime dependency-version: 0.25.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: kubernetes - dependency-name: sigs.k8s.io/controller-runtime dependency-version: 0.25.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: kubernetes - dependency-name: sigs.k8s.io/controller-runtime dependency-version: 0.25.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: kubernetes - dependency-name: sigs.k8s.io/controller-runtime dependency-version: 0.25.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: kubernetes - dependency-name: sigs.k8s.io/controller-runtime dependency-version: 0.25.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: kubernetes - dependency-name: sigs.k8s.io/controller-runtime dependency-version: 0.25.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: kubernetes ... Signed-off-by: dependabot[bot] <support@github.com> * build: regenerate third-party notices for controller-runtime v0.25.3 Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Terry Howe <thowe@nvidia.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Terry Howe <thowe@nvidia.com> |
||
|
|
b28d4f13d1 |
test(e2e): scan nico-vms clusters after upgrade and scale (#2417)
The CIS scan ran only on fresh clusters, so nothing showed whether a cluster still passes once its control plane is upgraded or its node pools grow. Two nico-vms entries now scan again at those points, against the same exception register: - "nico-vms k8s upgrade" scans after creation, on 1.35.3, and again once the upgrade to 1.36.3 has replaced its control plane. - "nico-vms" scans after creation and again while its worker pool is scaled up. The scale step is split into "scales the node pools up" and "scales the node pools back down", so the scan runs while the added node is in the cluster. Both clusters are now created encrypted at rest, as CAPD core is, so the scans check the encryption configuration NVKE renders (1.2.27, 1.2.28) rather than report its absence. The upgrade entry therefore upgrades an encrypted cluster, which no lane did before. Both entries are happy-path, which the NICo VMs lane runs. Their tenant nodes boot the NVKE FDE node image, so these are the first scans of that image. The lane now passes -e2e.artifacts-dir, inside the state directory it redacts and uploads, so the scan results are kept. The tenant scan takes the point in the cluster's life it runs at, which names its spec and its results directory, kube-bench/<cluster>/<phase>. Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@nvidia.com> |
||
|
|
dd1ed438ce |
build: bump the go-dependencies group with 8 updates (#2370)
* build: bump the go-dependencies group across 1 directory with 8 updates Bumps the go-dependencies group with 8 updates in the / directory: | Package | From | To | | --- | --- | --- | | [github.com/prometheus/common](https://github.com/prometheus/common) | `0.73.1` | `0.74.0` | | [golang.org/x/crypto](https://github.com/golang/crypto) | `0.58.0` | `0.59.0` | | [github.com/cedar-policy/cedar-go](https://github.com/cedar-policy/cedar-go) | `1.9.0` | `1.9.2` | | [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) | `0.152.0` | `0.153.0` | | go.temporal.io/api | `1.64.2` | `1.64.3` | | go.temporal.io/sdk | `1.50.0` | `1.51.0` | | [golang.org/x/mod](https://github.com/golang/mod) | `0.42.0` | `0.43.0` | | [google.golang.org/api](https://github.com/googleapis/google-api-go-client) | `0.311.0` | `0.315.0` | Updates `github.com/prometheus/common` from 0.73.1 to 0.74.0 - [Release notes](https://github.com/prometheus/common/releases) - [Changelog](https://github.com/prometheus/common/blob/main/CHANGELOG.md) - [Commits](https://github.com/prometheus/common/compare/v0.73.1...v0.74.0) Updates `golang.org/x/crypto` from 0.58.0 to 0.59.0 - [Commits](https://github.com/golang/crypto/compare/v0.58.0...v0.59.0) Updates `github.com/cedar-policy/cedar-go` from 1.9.0 to 1.9.2 - [Release notes](https://github.com/cedar-policy/cedar-go/releases) - [Commits](https://github.com/cedar-policy/cedar-go/compare/v1.9.0...v1.9.2) Updates `github.com/getkin/kin-openapi` from 0.152.0 to 0.153.0 - [Release notes](https://github.com/getkin/kin-openapi/releases) - [Commits](https://github.com/getkin/kin-openapi/compare/v0.152.0...v0.153.0) Updates `go.temporal.io/api` from 1.64.2 to 1.64.3 Updates `go.temporal.io/sdk` from 1.50.0 to 1.51.0 Updates `golang.org/x/mod` from 0.42.0 to 0.43.0 - [Commits](https://github.com/golang/mod/compare/v0.42.0...v0.43.0) Updates `google.golang.org/api` from 0.311.0 to 0.315.0 - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.311.0...v0.315.0) --- updated-dependencies: - dependency-name: github.com/prometheus/common dependency-version: 0.74.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: golang.org/x/crypto dependency-version: 0.59.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/cedar-policy/cedar-go dependency-version: 1.9.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/getkin/kin-openapi dependency-version: 0.153.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: go.temporal.io/api dependency-version: 1.64.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: go.temporal.io/sdk dependency-version: 1.51.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: golang.org/x/mod dependency-version: 0.43.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: google.golang.org/api dependency-version: 0.315.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * build: regenerate notices and workspace, move to DescribeWorkflow Regenerate the third-party notices and go.work.sum for the dependency bumps. Replace the deprecated Temporal DescribeWorkflowExecution with DescribeWorkflow, which the Temporal SDK 1.51.0 bump flags under SA1019. Signed-off-by: dbudris <dbudris@nvidia.com> * build: align workspace manifests after rebase and migrate the gofail teardown test to DescribeWorkflow Signed-off-by: dbudris <dbudris@nvidia.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dbudris <dbudris@nvidia.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
b6915fdb61 |
build: bump sigs.k8s.io/cluster-api/test (#2291)
Bumps the kubernetes group with 1 update in the /controller/hack/capd-reboot-controller directory: [sigs.k8s.io/cluster-api/test](https://github.com/kubernetes-sigs/cluster-api). Updates `sigs.k8s.io/cluster-api/test` from 1.13.7 to 1.13.8 - [Release notes](https://github.com/kubernetes-sigs/cluster-api/releases) - [Commits](https://github.com/kubernetes-sigs/cluster-api/compare/v1.13.7...v1.13.8) --- updated-dependencies: - dependency-name: sigs.k8s.io/cluster-api/test dependency-version: 1.13.8 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: kubernetes ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|
|
0493582197 |
test(e2e): scan CI clusters with kube-bench (#2156)
Scan the clusters the CAPD and bootstrap e2e lanes build with kube-bench, and fail the lane on any FAIL or WARN the exception register does not cover, or on an entry for a check kube-bench does not report. The scan runs the kube-bench v0.16.0 image as published, with cis-1.12, the newest benchmark it ships. The release maps no Kubernetes version after 1.34, so the scan names the benchmark rather than rely on kube-bench falling back to it. A scan runs the policies checks first and alone, in a pod that takes nothing from the host but the admin kubeconfig and runs as a service account that mounts no token, so section 5 does not report the scan itself. It then runs one pod per node, reads each report from its log, and deletes everything it created. A policies report whose audits returned no rows is an error, not a list of findings. NVKE now sets kube-controller-manager's --terminated-pod-gc-threshold to 12500, Kubernetes' own default, on every cluster it creates. The scan's check 1.3.1 looks for the flag; setting the default explicitly satisfies it without changing how many finished pods a cluster keeps. Existing clusters keep the configuration they were created with. Like the other flags NVKE sets, a cluster-create request cannot override it through extraArgs. The register, exceptions.yaml, lists each accepted check by ID, with a title and a reason in our own words. An entry applies on every node of every cluster. One whose check passed on every node is listed as unneeded, since the other kind of cluster may still need it. The CAPD lane scans "CAPD core" on pull requests and "CAPD with etcd encryption" on full runs, once their nodes are ready, and copies the results out with its diagnostics, as the local entrypoint runner now does too. Both create encrypted clusters, so the scan checks the encryption configuration NVKE renders; CAPD core now creates one. The bootstrap lane scans the site cluster in stage 4d of run.sh; a scan that failed or never reached a verdict fails the run after the teardown, and the workflow uploads the results on every provisioned run. The substrate now mounts its etcd tmpfs with mode 0700, the mode kubeadm gives the directory it creates, instead of tmpfs's default 1777. The CAPD node image, which the bootstrap image builds on, now creates the etcd user and, at every boot, gives it /var/lib/etcd, as the production node image does; the node containers mount a root-owned tmpfs there. The scan pods mount each host's /etc/passwd and /etc/group, so kube-bench names the directory's owner as the host does: its own image has no etcd user and reported UNKNOWN:UNKNOWN. Check 1.1.12 then passes on the CI clusters and on production nodes. Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@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> |
||
|
|
347d68c447 |
build(deps): bump ARG-pinned base image digests (#2338)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.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> |
||
|
|
f41e9b693c |
ci: version and release every component by the bare vX.Y.Z tag (#2164)
* ci: version every artifact by the bare v* describe
Every published artifact is now versioned by
`git describe --tags --always --match 'v*' "${GITHUB_SHA}"`, with no
component prefix, so component versions follow the nvke tag rather than
moving independently. The controller image, chart, provisioned provider
image, agent binaries and packages, nvkectl and the OS image resolve
their version this way, and the version is passed to each build so the
binaries report the same version they are published under.
The release registry describes and resolves components against the
bare v* tags, so a beta qualifies the artifacts its tag published.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: build and publish every component on a bare vX.Y.Z tag
Every component build that a vX.Y.Z-beta.N tag runs now runs on a bare
vX.Y.Z tag too: the controller and provisioned provider images, the
controller chart, the agent binaries and packages, the OS image and
nvkectl. The gates that admitted only beta tags admit any bare v* tag,
and nvkectl is versioned by the bare describe for both.
Beta-only behaviour is unchanged: a beta still skips DSX, stays out of
the apt index and bakes non-FDE images only. A release does all three.
promote-dsx now runs on vX.Y.Z, so it tags DSX with the bare describe
the NVCR copy was published under.
The beta flag in tag-publish.yml is removed, so nvkectl is published to
GHCR for every tag it is built for, betas included. cli-artifact.yml
versions it by the bare describe.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* build: version every module by the bare v* describe
The Makefiles, the root cmd_version and the scripts that derive the
agent version described against component tags (agent/v*, controller/v*,
cli/v*, os-image/v*, cluster-api-provider-provisioned/v*,
management-engine/v*). They now use
`git describe --tags --always --dirty --match 'v*'`, the version the
publish workflows already stamp, so a local or CI build reports the same
version as the artifact published from that commit.
The fallbacks for an untagged checkout and a build outside git are
unchanged, as is the agent's 0.0.0- prefix for an untagged .deb. The
e2e VALIDATE_VERSION now pairs with the nvke-validate image, and the
comments and log lines that named the old describe are updated.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* docs: describe one vX.Y.Z tag releasing every component
Components are no longer tagged on their own. The release docs, the
module AGENTS.md and README files and SECURITY.md now say one signed
vX.Y.Z tag releases the repository and every component built from it,
versioned by `git describe --tags --always --match 'v*'`.
docs/artifact-publication.md lists what each workflow publishes for a
release and for a nightly beta, and that an RC publishes nothing of its
own. The prefixed tag instructions, and the go get example that relied
on them, are removed. Mentions of past component tags that remain true
as history are kept.
The qualification docs and the qualify-e2e resolution input now say a
release, an RC and a beta are all qualified with commitDescribe, which
describes the commit the version marks and so resolves every component
to it. gitTag takes the highest v* tag in the repository and is not for
qualification.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: stop publishing artifacts from component release tags
A component release tag (agent/vX.Y.Z, controller/vX.Y.Z,
cluster-api-provider-provisioned/vX.Y.Z, os-image/vX.Y.Z, cli/vX.Y.Z) no
longer starts a publisher; a release is a bare vX.Y.Z tag. Component
release candidate tags still start the same workflows as before.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: publish every GHCR release artifact on vX.Y.Z
agent-artifact.yml, chart-publish.yml and image-validate-nvcr.yml only ran
on component tags, so a release published none of them. Each now runs on a
bare vX.Y.Z tag and versions by the bare v* describe. The controller and
provider GHCR promotions and the agent .deb GHCR push also run on vX.Y.Z
(not betas), since they were gated on component tags too and the GHCR
chart waits for the controller image there.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: name every tag build by its describe version, not the tag
The publishers versioned the build by the bare v* describe but still took
version aliases, GHCR promotion tags, the agent .deb version, the nvkectl
S3 release path and the os-image version from the tag name. On a component
RC tag the two disagreed, and on a vX.Y.Z tag agent-deb's GHCR push would
have been tagged with the commit SHA. Every one now uses the describe
version, which on the tagged commit is the tag itself.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: pass the describe version to build commands through the environment
The version is git describe output, which a tag name controls. It was
interpolated with ${{ }} into the run script of six build steps, so a tag
containing shell syntax would have run in jobs that hold registry
credentials. Each step now reads it from an environment variable.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: give component RC tags no version alias
A component RC tag still starts the agent and nvkectl publishers, and
they name the build by the bare v* describe. On a commit that already
carries a release tag that is the release's version, so the RC run would
move the release's alias to a new manifest. Only a bare v* tag now adds
the version alias; a component RC tag publishes sha-<commit> only.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: resolve every publisher's version through one checked script
Every publisher resolves its version through
release/hack/describe-version.sh instead of calling git describe itself.
A bare v* tag run is published under its own tag; any other run under
the v* describe. Before anything is pushed, the script refuses:
- a describe that is not a v* release, RC or beta, its describe suffix,
or a bare commit. The describe can name any v* tag on the commit, and
agent/Makefile passes it to the shell inside -ldflags.
- on a v* tag run, a tag that is not a version or does not name the
commit being built.
- on a component tag run, a commit a v* tag already names. Its describe
is that tag, so a component RC there would republish that tag's
.debs, images, charts and nvkectl.
Naming a tag run by its tag rather than the describe matters when the
commit carries several: git describe prefers the annotated release, and
of two lightweight betas the first by name. A beta re-run on a released
commit, or a second beta on one commit, now publishes under its own
version instead of another tag's.
release/hack/test_describe_version.py covers these cases against fixture
repositories, and runs with next-tag-test in the merge gate.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: let only a release version into the apt index and GHCR
agent-deb-publish.yml chose whether to update index.json, and whether to
push the .debs to GHCR, from the ref: anything but a beta tag did both.
An agent/v* RC tag carries no -beta., but its packages are versioned by
the describe, so on a commit past a beta it made that build installable
from apt and pushed it to GHCR.
The build job now reports whether its version is a bare vX.Y.Z, and both
follow that instead. A release enters the index and GHCR; a beta, a
component RC and anything else is uploaded under releases/<version>/ and
pushed to NVCR only.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: stamp the published version into standalone nvkectl builds
A dispatched cli-artifact, cli-artifact-nvcr or cli-s3-publish run with no
dist_artifact builds nvkectl itself. The build took its version from the
Makefile's own git describe, which on a commit with a beta and a signed
release names the release, while the run publishes under the beta it was
dispatched from. Pass the resolved version as NVKECTL_VERSION, as
tag-publish.yml already does, so the binary reports the version it is
published under.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: skip a beta dispatch of the GHCR chart publisher
A beta's controller image is never promoted to GHCR, so a chart-publish.yml
run dispatched from a beta tag waited up to 30 minutes for an image that
would not appear, then failed. Skip beta refs, as the automatic beta trigger
already does.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* test: cover the triggering-tag check and a bare RC in describe-version.sh
Every invalid tag in the existing test was also the commit's describe, so
the describe check refused it before the check on the triggering tag ran,
and disabling that check left every test passing. Tag the bad names beside a
valid signed release, which wins the describe, so only the tag check can
refuse them.
Also pin that the helper names a bare RC run by its tag: the publishers'
tag filters, not the helper, keep an RC from publishing.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
* ci: recover a vX.Y.Z agent package release by dispatch
A failed agent/vX.Y.Z publish could be recovered by dispatching Agent Deb
Publish from that tag with ref set to it. Releases are now vX.Y.Z, which the
ref check refused, and a SHA got past it only for every publish job to skip,
since their bare-tag arm requires a push.
Accept a vX.Y.Z ref when the run is dispatched from that same tag, and let
it into the apt intake, GHCR and NVCR jobs. The tag names the run's version,
so the index.json and GHCR gates still admit only a release. A beta is not
admitted, as before.
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
---------
Signed-off-by: Alex Pelavin <apelavin@nvidia.com>
|
||
|
|
d03bd02584 |
refactor(controller): own the release CRDs in controller/k8s-apis (#2305)
The NVKE controller and nvkectl no longer import MachineImage, ClusterRelease and NodePoolRelease from management-engine. They are defined in a new module, controller/k8s-apis/v1, which generates their CRDs, tests them, and ships them through the nvke-crds chart, so the controller owns its release APIs end to end and no longer depends on management-engine's Go types. The API group is unchanged, so stored objects, RBAC and fixtures keep working. Signed-off-by: Miancheng Lin <mianchengl@nvidia.com> |
||
|
|
c65ced3dca |
chore: remove the in-tree NKTP chart (#2300)
Signed-off-by: Vineeth Bandi <vbandi@nvidia.com> |
||
|
|
88081bc8b9 |
test(e2e): check GPU Operator on Mokka's simulated GPUs (#2106)
* test(mokka-demo): add a demo of simulated GPU nodes with Mokka hack/mokka-demo/demo.sh gives an NVKE workload cluster GPU nodes without GPUs and checks the GPU stack on them: a node pool whose nodeLabels select Mokka (nvml-mock), Mokka on that pool only, GPU Operator with values that let Mokka stand in for the driver, and a pod that requests a GPU. It copies an existing worker pool's provider settings, reads the workload cluster's kubeconfig through nvkectl, and prints PASS or FAIL per check. Signed-off-by: Benjamin Kero <bkero@nvidia.com> * test(mokka-demo): let the demo name its Mokka release MOKKA_RELEASE sets the Helm release name for Mokka, so two runs with different GPU profiles and node labels can share a cluster. Signed-off-by: Benjamin Kero <bkero@nvidia.com> * test(mokka-demo): wait for the GPU Operator validator to finish The validator's last step can still be running when a node first advertises its GPUs, which failed the check on a node that passed moments later. Signed-off-by: Benjamin Kero <bkero@nvidia.com> * test(mokka-demo): tighten the validator check and the clean-up steps The validator wait gets its own deadline instead of what the GPU wait left, and passes only when every validator step exits 0: a termination reason such as ContainerStatusUnknown is not success. The README's clean-up now points kubectl and Helm at the workload cluster and uses the configured Mokka release name. Signed-off-by: Benjamin Kero <bkero@nvidia.com> * ci(mokka-demo): run the demo on a CPU runner A new lane, mokka-demo-e2e.yml, runs hack/mokka-demo/demo.sh on a linux-amd64-cpu16 runner, without GPUs. It brings up the CAPD stack with the local entrypoint, which LOCAL_NKE_E2E_DEPLOY_ONLY now stops before its suite, then hack/mokka-demo/ci.sh forwards the NVKE API, points nvkectl at it, creates a CAPD workload cluster from cli/examples/capd-cluster.yaml and runs the demo. Signed-off-by: Benjamin Kero <bkero@nvidia.com> * test(e2e): run the Mokka checks as a CAPD entry Replace the standalone Mokka lane (mokka-demo-e2e.yml, ci.sh and the local entrypoint's LOCAL_NKE_E2E_DEPLOY_ONLY) with a "CAPD Mokka" entry in the tenant table, so the checks run through the existing E2E entrypoints and label filters. The entry has one control-plane node and one worker pool whose node labels select Mokka (nvml-mock). Its mokkaGPU validation installs Mokka and GPU Operator with helm, then asserts the ClusterPolicy is ready, exactly the labeled nodes advertise nvidia.com/gpu, the GPU Operator validator's steps all exit 0 on each, and a pod limited to one GPU lists one. The entry carries the capd label, so full CAPD runs select it, and a mokka label, which the pull-request mirror filter now adds: it costs about six minutes on a CPU runner. CAPD pools can now carry node labels. The GPU Operator values move into the e2e module's testdata so the suite embeds them and demo.sh keeps using the same file. The local entrypoint copies the host's helm into its runner, as the CI entrypoint already does. Signed-off-by: Benjamin Kero <bkero@nvidia.com> * test(e2e): run the Mokka checks on the CAPD core cluster Drop the separate CAPD Mokka entry, which added a second cluster and about six minutes to the pull-request lane. CAPD core's worker now carries the Mokka label, so the checks add only their own two minutes and the lane's label filter is unchanged. Reuse gpuPod and sitePoll, wait at most five minutes per check, fix a double count of the expected nodes after a failed connect, and turn off dcgm-exporter, which nothing reads. Signed-off-by: Benjamin Kero <bkero@nvidia.com> * test(e2e): ignore a validator pod being deleted; keep GPU Operator for other Mokka releases A validator pod that is being deleted could pass the check while its replacement is still running. The demo's clean-up removed GPU Operator first, which takes GPUs away from any other Mokka release on the cluster; it now goes last, with a note to keep it while another release remains. Signed-off-by: Benjamin Kero <bkero@nvidia.com> * test(mokka-demo): ignore a validator pod being deleted As in the e2e check: a validator pod being deleted could pass the demo while its replacement is still running. Signed-off-by: Benjamin Kero <bkero@nvidia.com> --------- Signed-off-by: Benjamin Kero <bkero@nvidia.com> |
||
|
|
c650fc0719 |
build(deps): pin sigs.k8s.io/cluster-api to v1.13.7 (#2278)
v1.13.8 (from #2250) rejects exec-plugin kubeconfigs in ClusterCache. OIDC clusters publish a SPIFFE exec kubeconfig in the Secret that Cluster API reads, so the bootstrap authorization controller cannot open a client to those tenants on v1.13.8. Pin v1.13.7 again, and ignore v1.13.8 in Dependabot until upstream accepts that kubeconfig, or another workaround is in place. Refs #2277 Signed-off-by: Ryan Bever <rbever@nvidia.com> |
||
|
|
b6743481f4 |
test(chart): assert no ClusterRole grants the controller Secret access (#2281)
* test(chart): assert no ClusterRole grants the controller Secret access Provider credentials live in the providers' own namespaces, and the controller reads Secrets only through namespaced Roles. A ClusterRole granting secrets would reach every provider's credentials. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * test(chart): match Secret resource names exactly yq's contains matches substrings, so a ClusterRole for externalsecrets would have failed the check. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> --------- Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> |
||
|
|
c8529fb630 |
build: upgrade the Go toolchain to 1.27.4 (#2284)
* build: upgrade the Go toolchain to 1.27.4 Signed-off-by: Ilya Kislenko <ikislenko@nvidia.com> * ci: pin internal-config tools outside Ubuntu mirrors Ubuntu mirror DNS repeatedly prevented the required scanner from running. Extract checksum-pinned ripgrep and current PCRE2 packages from an immutable Debian snapshot, with the library path scoped to the checker step. Preserve the existing scan and merge-gate policy. Signed-off-by: Ilya Kislenko <ikislenko@nvidia.com> * ci: restore the existing Ubuntu package setup Remove the unnecessary custom ripgrep action and Debian snapshot package pins. Restore the original apt installation and keep this pull request focused on the Go 1.27.4 upgrade. Signed-off-by: Ilya Kislenko <ikislenko@nvidia.com> --------- Signed-off-by: Ilya Kislenko <ikislenko@nvidia.com> |
||
|
|
487f51108f |
feat(dev): support Ubuntu on WSL2 in host-up (#2155)
The stock WSL2 kernel is built without CONFIG_TCG_VTPM_PROXY, so host-up could not provide /dev/vtpmx and no package supplies tpm_vtpm_proxy for a Microsoft kernel. ensure-vtpm-proxy.sh now builds the module out of tree from the linux-msft-wsl tag matching uname -r, using the running kernel's /proc/config.gz, installs it under /lib/modules and loads it. The build is cached in /var/cache/nvke-wsl-vtpm, and host-up reinstalls the module from the cache after a WSL restart. Docs gain a WSL2 section, start API Only with capi-core-up so the Cluster API Machine CRD exists, and add the nico-sim console SSH port to the free-port list. Signed-off-by: Eric Staples <estaples@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> |
||
|
|
98fe66d16d |
build(deps): bump ARG-pinned base image digests (#2233)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
||
|
|
a7108806ca |
build: bump the kubernetes group across 1 directory with 9 updates (#2250)
* build: bump the kubernetes group across 1 directory with 9 updates Bumps the kubernetes group with 9 updates in the / directory: | Package | From | To | | --- | --- | --- | | [k8s.io/api](https://github.com/kubernetes/api) | `0.37.1` | `0.37.2` | | [k8s.io/apimachinery](https://github.com/kubernetes/apimachinery) | `0.37.1` | `0.37.2` | | [k8s.io/apiserver](https://github.com/kubernetes/apiserver) | `0.37.1` | `0.37.2` | | [k8s.io/client-go](https://github.com/kubernetes/client-go) | `0.37.1` | `0.37.2` | | [k8s.io/component-base](https://github.com/kubernetes/component-base) | `0.37.1` | `0.37.2` | | [sigs.k8s.io/cluster-api](https://github.com/kubernetes-sigs/cluster-api) | `1.13.7` | `1.13.8` | | [k8s.io/apiextensions-apiserver](https://github.com/kubernetes/apiextensions-apiserver) | `0.37.1` | `0.37.2` | | [k8s.io/kube-proxy](https://github.com/kubernetes/kube-proxy) | `0.37.1` | `0.37.2` | | [k8s.io/kubelet](https://github.com/kubernetes/kubelet) | `0.37.1` | `0.37.2` | Updates `k8s.io/api` from 0.37.1 to 0.37.2 - [Commits](https://github.com/kubernetes/api/compare/v0.37.1...v0.37.2) Updates `k8s.io/apimachinery` from 0.37.1 to 0.37.2 - [Commits](https://github.com/kubernetes/apimachinery/compare/v0.37.1...v0.37.2) Updates `k8s.io/apiserver` from 0.37.1 to 0.37.2 - [Commits](https://github.com/kubernetes/apiserver/compare/v0.37.1...v0.37.2) Updates `k8s.io/client-go` from 0.37.1 to 0.37.2 - [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md) - [Commits](https://github.com/kubernetes/client-go/compare/v0.37.1...v0.37.2) Updates `k8s.io/component-base` from 0.37.1 to 0.37.2 - [Commits](https://github.com/kubernetes/component-base/compare/v0.37.1...v0.37.2) Updates `sigs.k8s.io/cluster-api` from 1.13.7 to 1.13.8 - [Release notes](https://github.com/kubernetes-sigs/cluster-api/releases) - [Commits](https://github.com/kubernetes-sigs/cluster-api/compare/v1.13.7...v1.13.8) Updates `k8s.io/apiextensions-apiserver` from 0.37.1 to 0.37.2 - [Release notes](https://github.com/kubernetes/apiextensions-apiserver/releases) - [Commits](https://github.com/kubernetes/apiextensions-apiserver/compare/v0.37.1...v0.37.2) Updates `k8s.io/kube-proxy` from 0.37.1 to 0.37.2 - [Commits](https://github.com/kubernetes/kube-proxy/compare/v0.37.1...v0.37.2) Updates `k8s.io/kubelet` from 0.37.1 to 0.37.2 - [Commits](https://github.com/kubernetes/kubelet/compare/v0.37.1...v0.37.2) --- updated-dependencies: - dependency-name: k8s.io/api dependency-version: 0.37.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: kubernetes - dependency-name: k8s.io/apimachinery dependency-version: 0.37.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: kubernetes - dependency-name: k8s.io/apiserver dependency-version: 0.37.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: kubernetes - dependency-name: k8s.io/client-go dependency-version: 0.37.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: kubernetes - dependency-name: k8s.io/component-base dependency-version: 0.37.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: kubernetes - dependency-name: sigs.k8s.io/cluster-api dependency-version: 1.13.8 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: kubernetes - dependency-name: k8s.io/apiextensions-apiserver dependency-version: 0.37.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: kubernetes - dependency-name: k8s.io/kube-proxy dependency-version: 0.37.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: kubernetes - dependency-name: k8s.io/kubelet dependency-version: 0.37.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: kubernetes ... Signed-off-by: dependabot[bot] <support@github.com> * build: refresh go.work.sum and third-party notices for kubernetes bump Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Terry Howe <thowe@nvidia.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Terry Howe <thowe@nvidia.com> |
||
|
|
4c2cd016d0 |
build: bump the go-dependencies group across 8 directories with 12 updates (#2251)
* build: bump the go-dependencies group across 8 directories with 12 updates Bumps the go-dependencies group with 12 updates in the / directory: | Package | From | To | | --- | --- | --- | | [github.com/go-jose/go-jose/v4](https://github.com/go-jose/go-jose) | `4.1.7` | `4.1.9` | | [github.com/spf13/pflag](https://github.com/spf13/pflag) | `1.0.10` | `1.1.0` | | [golang.org/x/sync](https://github.com/golang/sync) | `0.24.0` | `0.25.0` | | [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) | `2.33.1` | `2.34.0` | | [github.com/caarlos0/env/v11](https://github.com/caarlos0/env) | `11.4.1` | `11.4.2` | | [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) | `1.14.52` | `1.14.53` | | [github.com/spiffe/spire-api-sdk](https://github.com/spiffe/spire-api-sdk) | `1.15.3` | `1.16.0` | | [github.com/spiffe/spire-controller-manager](https://github.com/spiffe/spire-controller-manager) | `0.8.0` | `0.8.1` | | go.temporal.io/api | `1.64.1` | `1.64.2` | | [go.yaml.in/yaml/v4](https://github.com/yaml/go-yaml) | `4.0.0-rc.7` | `4.0.0` | | [github.com/osrg/gobgp/v4](https://github.com/osrg/gobgp) | `4.10.0` | `4.11.0` | | [google.golang.org/api](https://github.com/googleapis/google-api-go-client) | `0.307.0` | `0.311.0` | Bumps the go-dependencies group with 2 updates in the /auth directory: [github.com/go-jose/go-jose/v4](https://github.com/go-jose/go-jose) and [golang.org/x/sync](https://github.com/golang/sync). Bumps the go-dependencies group with 1 update in the /cli directory: [github.com/spf13/pflag](https://github.com/spf13/pflag). Bumps the go-dependencies group with 8 updates in the /controller directory: | Package | From | To | | --- | --- | --- | | [github.com/go-jose/go-jose/v4](https://github.com/go-jose/go-jose) | `4.1.7` | `4.1.9` | | [golang.org/x/sync](https://github.com/golang/sync) | `0.24.0` | `0.25.0` | | [github.com/caarlos0/env/v11](https://github.com/caarlos0/env) | `11.4.1` | `11.4.2` | | [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) | `1.14.52` | `1.14.53` | | [github.com/spiffe/spire-api-sdk](https://github.com/spiffe/spire-api-sdk) | `1.15.3` | `1.16.0` | | [github.com/spiffe/spire-controller-manager](https://github.com/spiffe/spire-controller-manager) | `0.8.0` | `0.8.1` | | go.temporal.io/api | `1.64.1` | `1.64.2` | | [go.yaml.in/yaml/v4](https://github.com/yaml/go-yaml) | `4.0.0-rc.7` | `4.0.0` | Bumps the go-dependencies group with 3 updates in the /controller/nico-sim directory: [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3), [go.yaml.in/yaml/v4](https://github.com/yaml/go-yaml) and [github.com/osrg/gobgp/v4](https://github.com/osrg/gobgp). Bumps the go-dependencies group with 2 updates in the /controller/test/e2e directory: [golang.org/x/sync](https://github.com/golang/sync) and [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo). Bumps the go-dependencies group with 1 update in the /management-engine directory: [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo). Bumps the go-dependencies group with 2 updates in the /release directory: [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) and [google.golang.org/api](https://github.com/googleapis/google-api-go-client). Updates `github.com/go-jose/go-jose/v4` from 4.1.7 to 4.1.9 - [Release notes](https://github.com/go-jose/go-jose/releases) - [Commits](https://github.com/go-jose/go-jose/compare/v4.1.7...v4.1.9) Updates `github.com/spf13/pflag` from 1.0.10 to 1.1.0 - [Release notes](https://github.com/spf13/pflag/releases) - [Commits](https://github.com/spf13/pflag/compare/v1.0.10...v1.1.0) Updates `golang.org/x/sync` from 0.24.0 to 0.25.0 - [Commits](https://github.com/golang/sync/compare/v0.24.0...v0.25.0) Updates `github.com/onsi/ginkgo/v2` from 2.33.1 to 2.34.0 - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/ginkgo/compare/v2.33.1...v2.34.0) Updates `github.com/caarlos0/env/v11` from 11.4.1 to 11.4.2 - [Release notes](https://github.com/caarlos0/env/releases) - [Commits](https://github.com/caarlos0/env/compare/v11.4.1...v11.4.2) Updates `github.com/mattn/go-sqlite3` from 1.14.52 to 1.14.53 - [Release notes](https://github.com/mattn/go-sqlite3/releases) - [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.52...v1.14.53) Updates `github.com/spiffe/spire-api-sdk` from 1.15.3 to 1.16.0 - [Commits](https://github.com/spiffe/spire-api-sdk/compare/v1.15.3...v1.16.0) Updates `github.com/spiffe/spire-controller-manager` from 0.8.0 to 0.8.1 - [Release notes](https://github.com/spiffe/spire-controller-manager/releases) - [Changelog](https://github.com/spiffe/spire-controller-manager/blob/main/CHANGELOG.md) - [Commits](https://github.com/spiffe/spire-controller-manager/compare/v0.8.0...v0.8.1) Updates `go.temporal.io/api` from 1.64.1 to 1.64.2 Updates `go.yaml.in/yaml/v4` from 4.0.0-rc.7 to 4.0.0 - [Release notes](https://github.com/yaml/go-yaml/releases) - [Commits](https://github.com/yaml/go-yaml/compare/v4.0.0-rc.7...v4.0.0) Updates `github.com/osrg/gobgp/v4` from 4.10.0 to 4.11.0 - [Release notes](https://github.com/osrg/gobgp/releases) - [Commits](https://github.com/osrg/gobgp/compare/v4.10.0...v4.11.0) Updates `google.golang.org/api` from 0.307.0 to 0.311.0 - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.307.0...v0.311.0) Updates `github.com/go-jose/go-jose/v4` from 4.1.7 to 4.1.9 - [Release notes](https://github.com/go-jose/go-jose/releases) - [Commits](https://github.com/go-jose/go-jose/compare/v4.1.7...v4.1.9) Updates `golang.org/x/sync` from 0.24.0 to 0.25.0 - [Commits](https://github.com/golang/sync/compare/v0.24.0...v0.25.0) Updates `github.com/spf13/pflag` from 1.0.10 to 1.1.0 - [Release notes](https://github.com/spf13/pflag/releases) - [Commits](https://github.com/spf13/pflag/compare/v1.0.10...v1.1.0) Updates `github.com/go-jose/go-jose/v4` from 4.1.7 to 4.1.9 - [Release notes](https://github.com/go-jose/go-jose/releases) - [Commits](https://github.com/go-jose/go-jose/compare/v4.1.7...v4.1.9) Updates `golang.org/x/sync` from 0.24.0 to 0.25.0 - [Commits](https://github.com/golang/sync/compare/v0.24.0...v0.25.0) Updates `github.com/caarlos0/env/v11` from 11.4.1 to 11.4.2 - [Release notes](https://github.com/caarlos0/env/releases) - [Commits](https://github.com/caarlos0/env/compare/v11.4.1...v11.4.2) Updates `github.com/mattn/go-sqlite3` from 1.14.52 to 1.14.53 - [Release notes](https://github.com/mattn/go-sqlite3/releases) - [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.52...v1.14.53) Updates `github.com/spiffe/spire-api-sdk` from 1.15.3 to 1.16.0 - [Commits](https://github.com/spiffe/spire-api-sdk/compare/v1.15.3...v1.16.0) Updates `github.com/spiffe/spire-controller-manager` from 0.8.0 to 0.8.1 - [Release notes](https://github.com/spiffe/spire-controller-manager/releases) - [Changelog](https://github.com/spiffe/spire-controller-manager/blob/main/CHANGELOG.md) - [Commits](https://github.com/spiffe/spire-controller-manager/compare/v0.8.0...v0.8.1) Updates `go.temporal.io/api` from 1.64.1 to 1.64.2 Updates `go.yaml.in/yaml/v4` from 4.0.0-rc.7 to 4.0.0 - [Release notes](https://github.com/yaml/go-yaml/releases) - [Commits](https://github.com/yaml/go-yaml/compare/v4.0.0-rc.7...v4.0.0) Updates `github.com/mattn/go-sqlite3` from 1.14.52 to 1.14.53 - [Release notes](https://github.com/mattn/go-sqlite3/releases) - [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.52...v1.14.53) Updates `go.yaml.in/yaml/v4` from 4.0.0-rc.7 to 4.0.0 - [Release notes](https://github.com/yaml/go-yaml/releases) - [Commits](https://github.com/yaml/go-yaml/compare/v4.0.0-rc.7...v4.0.0) Updates `github.com/osrg/gobgp/v4` from 4.10.0 to 4.11.0 - [Release notes](https://github.com/osrg/gobgp/releases) - [Commits](https://github.com/osrg/gobgp/compare/v4.10.0...v4.11.0) Updates `golang.org/x/sync` from 0.24.0 to 0.25.0 - [Commits](https://github.com/golang/sync/compare/v0.24.0...v0.25.0) Updates `github.com/onsi/ginkgo/v2` from 2.33.1 to 2.34.0 - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/ginkgo/compare/v2.33.1...v2.34.0) Updates `github.com/onsi/ginkgo/v2` from 2.33.1 to 2.34.0 - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/ginkgo/compare/v2.33.1...v2.34.0) Updates `github.com/onsi/ginkgo/v2` from 2.33.1 to 2.34.0 - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/ginkgo/compare/v2.33.1...v2.34.0) Updates `google.golang.org/api` from 0.307.0 to 0.311.0 - [Release notes](https://github.com/googleapis/google-api-go-client/releases) - [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md) - [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.307.0...v0.311.0) --- updated-dependencies: - dependency-name: github.com/go-jose/go-jose/v4 dependency-version: 4.1.9 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/spf13/pflag dependency-version: 1.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: golang.org/x/sync dependency-version: 0.25.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/onsi/ginkgo/v2 dependency-version: 2.34.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/caarlos0/env/v11 dependency-version: 11.4.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/mattn/go-sqlite3 dependency-version: 1.14.53 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/spiffe/spire-api-sdk dependency-version: 1.16.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/spiffe/spire-controller-manager dependency-version: 0.8.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: go.temporal.io/api dependency-version: 1.64.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: go.yaml.in/yaml/v4 dependency-version: 4.0.0 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/osrg/gobgp/v4 dependency-version: 4.11.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: google.golang.org/api dependency-version: 0.311.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/go-jose/go-jose/v4 dependency-version: 4.1.9 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: golang.org/x/sync dependency-version: 0.25.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/spf13/pflag dependency-version: 1.1.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/go-jose/go-jose/v4 dependency-version: 4.1.9 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: golang.org/x/sync dependency-version: 0.25.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/caarlos0/env/v11 dependency-version: 11.4.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/mattn/go-sqlite3 dependency-version: 1.14.53 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/spiffe/spire-api-sdk dependency-version: 1.16.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/spiffe/spire-controller-manager dependency-version: 0.8.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: go.temporal.io/api dependency-version: 1.64.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: go.yaml.in/yaml/v4 dependency-version: 4.0.0 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/mattn/go-sqlite3 dependency-version: 1.14.53 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: go.yaml.in/yaml/v4 dependency-version: 4.0.0 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/osrg/gobgp/v4 dependency-version: 4.11.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: golang.org/x/sync dependency-version: 0.25.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/onsi/ginkgo/v2 dependency-version: 2.34.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/onsi/ginkgo/v2 dependency-version: 2.34.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/onsi/ginkgo/v2 dependency-version: 2.34.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: google.golang.org/api dependency-version: 0.311.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * chore: regenerate third-party notices for dependency bumps Signed-off-by: Terry Howe <thowe@nvidia.com> * chore: regenerate workspace sums and nvkectl reference for dependency bumps Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Terry Howe <thowe@nvidia.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Terry Howe <thowe@nvidia.com> |
||
|
|
08d0bcd575 |
refactor(helm): extract shared NVKE catalog CRDs (#2166)
Extract the shared MachineImage, ClusterRelease and NodePoolRelease definitions into a catalog chart, preserving the NVKE controller’s default installation and ownership. Reuse canonical definitions across Helm, Kustomize, generation and CLI packaging. Closes #2165 Created with AI assistance Signed-off-by: Mark Stillwell <mstillwell@nvidia.com> |
||
|
|
24722bc579 |
feat(nico-sim): run VM tenant clusters on Apple silicon with HVF (#1199)
nico-sim's darwin-qemu backend boots arm64 NVKE node images under HVF on
Apple's vmnet network, and the controller's Tilt stack provisions those VMs
end to end while the management plane stays in kind.
- darwin-qemu: QEMU with HVF over vmnet-helper, Apple DHCP leases, swtpm for
FDE guests, cloud-init phone_home served on the vmnet gateway.
- Control-plane VIPs over BGP on macOS, with static host routes installed
through a scoped sudoers rule and re-applied every 30 seconds.
- VM management targets (vms, vm-stop/start/delete, vms-clean) backed by
stop/start support in the lifecycle engine and GET /sim/instances.
- cpu4-mem8gb seed instance type.
- os-image: HVF bakes on Apple silicon default to linux-generic.
- controller/hack/mac-vm-dev-{up,down,e2e}.sh guided bring-up, teardown and
e2e on the Mac.
Signed-off-by: Cullen McDermott <9535761+cullenmcdermott@users.noreply.github.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> |
||
|
|
8cf1dd3faf |
feat(chart): grant CAPLL tenant Node access when launchLayer is enabled (#2139)
With the shared OIDC provider on, the management plane reaches tenant clusters through a SPIRE kubeconfig, and CAPLL reads that same kubeconfig to set each Node's providerID. The tenant RBAC manifest bound only the CAPI controllers, so CAPLL authenticated and was then denied. It now carries nvke:capll-manager (nodes get, list, patch) for spiffe.capllManagerSubject when supportedInfraProviders includes launchLayer. With token exchange and no subject the binding is left out rather than failing the render, so a site that already grants CAPLL through tenantAccess.additionalRBAC keeps upgrading. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> |
||
|
|
792e7748e8 |
fix(tilt): grant CAPLL Secret get in nvke-system for the LaunchLayer provider (#2138)
* fix(tilt): grant CAPLL Secret get in nvke-system for the LaunchLayer provider CAPLL v0.1.0-rc.15 and later grant Secret get only in CAPLL's own namespace, so the provider cannot read the bootstrap Secrets the controller writes in nvke-system and every LaunchLayerMachine stops at a forbidden error. Grant it there after the chart installs, as CAPLL's docs/authentication.md asks of admins. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> * fix(tilt): select the CAPLL Deployment by its release label Reading the first Deployment in the namespace could bind the Secret grant to another workload's ServiceAccount. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> --------- Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> |
||
|
|
ba862e2f62 |
test(e2e): move CI and dev defaults to 1.36 (#2132)
Moves CI and local development off Kubernetes 1.34, which reached end of life on 2026-10-27. The CAPD node image's kindest/node base, which supplies the kubelet and kubeadm of every container node, moves from v1.34.8 to v1.36.4. kubeadm deploys a control plane at most one minor version older than itself, so every cluster version on that base moves with it: tenant defaults to 1.36.3, and site clusters and the control-plane roll target to the base's 1.36.4. The other 1.34.2 defaults move to 1.36.3: the nico-vms entries, the sample scripts and Tilt buttons, the nvkectl smoke suite and the kind smoke lane's site spec. The upgrade test starts at 1.35.3 and upgrades to 1.36.3, and the no-VIP spec, which took its target from that chain, asks for the roll target instead. The e2e kubectl image moves to alpine/k8s 1.36.4. The local development channel keys its release under "1.36". Implements part of #2041. Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@nvidia.com> |
||
|
|
ab0154a7bc |
feat(controller): authorize SPIFFE bootstrap identities (#2130)
Add a controller that grants labeled, joining Machines the tenant RBAC required by kubeadm. Reconcile six kubeadm bindings from resolved SPIFFE identities and remove subjects after each Machine receives a node reference. Gate the controller's tenant permissions on the bootstrap controller setting, report synchronization through Machine conditions, and cover the behavior with unit and chart assertions. CSR approval remains separate. Signed-off-by: Ryan Bever <rbever@nvidia.com> |
||
|
|
55b2a0029a |
refactor(dev)!: remove the deprecated CWE_* and NKE_CONTROLLER_* setting names (#2114)
* refactor(dev)!: remove the deprecated CWE_* and NKE_CONTROLLER_* setting names The controller's development, test and build settings read only their NVKE_CONTROLLER_* names now. The CWE_* and NKE_CONTROLLER_* aliases, deprecated since v0.23.0, are gone from the Makefiles, Tiltfiles, hack and CI scripts, the e2e framework and tests, and the docs. So are CWE_IMAGE (use CONTROLLER_IMAGE), the cwe_image key in tilt_config.json (use nvke_controller_image), --cwe-api in get-kubeconfig.sh (use --controller-api) and the cwe-name input of qualify-e2e.yml (use controller-name). local-backend-e2e.sh reads LOCAL_NVKE_CONTROLLER_IMAGE instead of LOCAL_CWE_IMAGE. BREAKING CHANGE: a value set under an old name, in .env, .env.tilt, tilt_config.json, a shell profile or a repository variable, is now ignored without a warning. Rename CWE_X and NKE_CONTROLLER_X to NVKE_CONTROLLER_X, except CWE_API (use NVKE_CONTROLLER_API_URL) and CWE_IMAGE in make -C cli images (use CONTROLLER_IMAGE). Rename LOCAL_CWE_IMAGE to LOCAL_NVKE_CONTROLLER_IMAGE and the cwe_image key to nvke_controller_image. get-kubeconfig.sh rejects --cwe-api (use --controller-api), and qualify-e2e.yml has no cwe-name input (use controller-name). Signed-off-by: Aaron Patten <apatten@nvidia.com> * ci: fail when a removed controller setting name comes back make name-check, which the merge gate runs, now also runs hack/removed-settings-check.py. It fails on any removed CWE_* or NKE_CONTROLLER_* setting name, LOCAL_CWE_IMAGE, cwe_image, --cwe-api or cwe-name in a tracked file, so a branch cut before the removal cannot bring a reader of an old name back. CHANGELOG.md is not scanned, and two look-alikes that are not controller settings are allowed by file. Signed-off-by: Aaron Patten <apatten@nvidia.com> --------- Signed-off-by: Aaron Patten <apatten@nvidia.com> |
||
|
|
cb27604ad8 |
chore: disable SSH password login by default in the example releases and fixtures (#2010)
- Example release templates (cli/examples) set ssh allow-pw to false.
- The nvke-nico-vms-24.04-{amd64,arm64}-fde ClusterRelease and NodePoolRelease
fixtures set ssh_pwauth to false, matching the nvke-* releases in
nke-site-deploy. nico-vms still enables it for its nico-diag user when
NICO_VMS_DIAG_SSH_ENABLED is on, so guest diagnostics keep working.
- The dev scripts default to nvke-260625-24.04-x86-fde instead of the
deprecated nke-260611-24.04-amd64-fde.
- The nico-sim "Create instance" button passes RELEASE, the variable
capnico-create-instance.sh reads. It passed NODEPOOL_RELEASE, so the
release typed in the button was ignored.
- capnico-create-instance.sh points at cwe-profiles/releases-nvke when the
release is not installed.
Signed-off-by: Miancheng Lin <mianchengl@nvidia.com>
|
||
|
|
a8b578c67d |
build(deps): bump ARG-pinned base image digests (#2064)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
||
|
|
b5105879a3 |
build: bump the go-dependencies group across 1 directory with 16 updates (#2081)
* build: bump the go-dependencies group across 1 directory with 16 updates --- updated-dependencies: - dependency-name: github.com/prometheus/common dependency-version: 0.73.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: go.etcd.io/etcd/api/v3 dependency-version: 3.7.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: go.etcd.io/etcd/client/v3 dependency-version: 3.7.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: google.golang.org/grpc dependency-version: 1.85.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: oras.land/oras-go/v2 dependency-version: 2.7.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/go-jose/go-jose/v4 dependency-version: 4.1.7 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/cedar-policy/cedar-go dependency-version: 1.9.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/oapi-codegen/runtime dependency-version: 1.8.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: go.opentelemetry.io/proto/otlp dependency-version: 1.11.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/getkin/kin-openapi dependency-version: 0.152.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: github.com/dsx-ai-factory/cluster-api-provider-nico dependency-version: 0.1.0 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: github.com/oapi-codegen/nethttp-middleware dependency-version: 1.3.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: go.temporal.io/api dependency-version: 1.64.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: go.yaml.in/yaml/v4 dependency-version: 4.0.0-rc.7 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: go-dependencies - dependency-name: cloud.google.com/go/storage dependency-version: 1.70.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies - dependency-name: google.golang.org/api dependency-version: 0.307.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: go-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * test(controller): use ParseSignedCompact for the operator OIDC token go-jose v4.1.7 deprecates ParseSigned in favour of the serialization-specific entry points. The static key set verifies a JWT in compact serialization, so ParseSignedCompact is the direct replacement and clears staticcheck SA1019. Signed-off-by: Terry Howe <thowe@nvidia.com> * build: sync go.work.sum with the go-dependencies bump Signed-off-by: Terry Howe <thowe@nvidia.com> * docs: regenerate THIRD_PARTY_NOTICES for the go-dependencies bump Signed-off-by: Terry Howe <thowe@nvidia.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Terry Howe <thowe@nvidia.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Terry Howe <thowe@nvidia.com> |
||
|
|
0079021b6c |
feat(controller): add bootstrap controller configuration (#2086)
Signed-off-by: Ryan Bever <rbever@nvidia.com> |
||
|
|
1ce10b480c |
fix(e2e): follow up on the DSX review comments from #1879 (#2055)
* fix(e2e): follow up on the DSX review comments from #1879 Six of the seven comments Terry left after the approval on #1879, which merged before they could be folded in. The environment now keys off the stream's own provider rather than the scope it arrived in. A scope is single-provider by convention only, and this file's neighbour invites the `full` selector to come off -- the day it does, scope is `full` and every dsx leg would take `forge` and read the datahall's identifiers as empty. `matrix` is available in a job-level `environment`, and matrix.provider is already what the env block below keys PROVIDER off. render-template.py now calls numeric zero false, as Go's `if` does. A replica count or a port of 0 is the case that matters. Python would treat it as falsy anyway; spelling it out keeps the rule beside the others rather than leaving it to coincidence. Two comments in environment.go described a derivation this PR's parent removed: the API host is declared in `api` now, and nothing is derived from Key. The DSX example in the README carried a bare label filter while the prose directly above it prescribes `site-controller && !nico-forge`, and the Forge example beside it already carries its own. release/policy.yaml said DSX was a CPU substrate and that only Forge can run `full`. The first was never true of this datahall --- it is accelerator hardware that advertises no GPU model --- and the second stopped being true when nicoDSXTenant landed. The `full` selector stays on anyway, and now says why: no DSX tenant has yet reached provisioned, so taking it off would put a known-red lane into every weekly run. Not addressed: the observation that nothing enforces QUALIFY_E2E_DEPLOY_PATH_REF. deployPathRef() already derives an unset one from the controller version and fails loudly when that cannot resolve, with TestDeployPathRefFollowsTheController covering it, so the concern may be about something this reading missed. Left for Terry rather than guessed at. Signed-off-by: Jayson Du <jaydu@nvidia.com> * chore(controller): use a generic region in the identity-exchange test The last datahall name left in the tree. #1879 took the real ones out of the DSX environment and the lane so that nothing pins them to one datahall; this fixture kept `az51-dev4` as a sample region. Nothing resolves it -- exchangeSubject is a string transform and the test asserts a rewrite, so any region reads the same. The cost is to the reader: a real site in a fixture suggests the test depends on that datahall, and the two cases beside it already use a generic `capd`. `datahall-1` matches what the environment files call one. The case name loses the site too: what it covers is a DSX bare-metal node agent, not the hall it happened to be written against. Signed-off-by: Jayson Du <jaydu@nvidia.com> --------- Signed-off-by: Jayson Du <jaydu@nvidia.com> |
||
|
|
0a6971b6fe |
fix(controller): continue when the dev token script finds no auth config (#2040)
Signed-off-by: Ryan Bever <rbever@nvidia.com> |
||
|
|
b9c08017ac |
test(e2e): add DSX subject claims to the identity exchange mock (#2008)
Signed-off-by: Abhay Krishna Arunachalam <abhaykrishna@nvidia.com> |
||
|
|
c829318291 |
feat(chart): refuse an unsupported supportedInfraProviders entry at render time (#1866)
The chart rendered any supportedInfraProviders value, and only the controller refused an unknown or repeated provider, at startup. With one replica and maxUnavailable 1, a config rollout could replace the running controller with a pod that crash-loops, taking the API down until the value was fixed. The chart now fails the render on such an entry, with the controller's own provider names, so helm and Argo CD report the error and nothing is applied. The startup check stays for configs the chart does not render. Signed-off-by: Meet Vadaria <mvadaria@nvidia.com> |
||
|
|
8eed5173c8 |
feat(deploy)!: move the greenfield overlays and the release namespace to nvke-controller (#1889)
* feat(deploy)!: move the greenfield overlays and the release namespace to nvke-controller This moves them, and with them the persisted identifiers a site carries: the Helm release and its namespace, the database, and the Temporal namespace and task queue. In the three greenfield stacks: nameOverride, fullnameOverride, namespaceOverride, serviceAccount.name, serviceMonitor.name, appDb.dbName, the Temporal namespace and queue, the field managers and the managed-by values, tracing.serviceName, and the objects the stacks render around them -- the Namespace manifest, the Postgres CREATE DATABASE, the SPIRE admin ID and ClusterSPIFFEID namespace selectors, the auth-dev ConfigMap's namespace, the CAPD RBAC ClusterRole and its subject, and the spire-client probe URL. Consumers that move with it: controller/Tiltfile (release name, namespace, SPIRE admin path and the string-matched resource names), deploy/check-site.sh, the e2e site helpers and their collect script, cli/internal/bootstrap/controllerdeploy (including the NodePort Service nvke-controller-external), cli/internal/deploypath's admin path, management-engine/hack/nvke-controller.sh, and the CI lane scripts. The discovery paths search the new name first and keep the old one: nvkectl's authConfigNamespaces, nvke-token.sh, nvke-auth-demo.sh and dev-env-spire.sh now try nvke-controller, then nke-controller, then cloud-workflow-engine. The reference health dashboard matches all three workload names, and Tilt's preflight refuses to take over a cluster that still runs the nke-controller release rather than failing later. The published image keeps its name per #1554 decision 2, as do the nke-controller-config ConfigMap and the nke-controller-chart release artifact; hack/name-check-allowlist.txt now carries one entry per reason rather than one blanket token. Refs #1861, #1554, #1496, #1818 Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: address review feedback Name nke-controller as the intermediate namespace in the authentication docs, matching authConfigNamespaces, and restore the legacy node-agent audience in the exchange mock's test. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: address review feedback Signed-off-by: Terry Howe <thowe@nvidia.com> * fix(e2e): point the nico bootstrap lane at the nvke-controller namespace The nico lane still asserted the tenant credentials Secret landed in nke-controller, so both e2e (nico) jobs failed after the rename. Signed-off-by: Terry Howe <thowe@nvidia.com> * fix(deploy): carry the nvke-controller rename into the rebased files The rebase onto main replayed the rename over two files that gained nke-controller references after the branch was cut: the management-engine dev overlay, which succeeds the hack script this branch had edited and was removed in #1918, and an API-authentication example added in #1935. Refs #1861 Signed-off-by: Terry Howe <thowe@nvidia.com> * fix: address review feedback Continue namespace discovery past a Forbidden lookup in nvke-token.sh and nvke-auth-demo.sh. --ignore-not-found suppresses absence, not denial, so a kubeconfig scoped to nke-controller alone died on the nvke-controller probe before reaching the namespace it can read -- the migration case this branch adds. Keep the first denial, try the remaining candidates, and fail with it only when none was readable, since falling back to cloud-workflow-engine needs a confirmed absence. Refs #1861 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> |
||
|
|
28f9c31337 |
build: bump the docker-images group across 4 directories with 3 updates (#1985)
Bumps the docker-images group with 1 update in the /controller directory: [spiffe/k8s-spiffe-workload-jwt-exec-auth](https://github.com/chainguard-images/images). Bumps the docker-images group with 1 update in the /controller/deploy/k8s/capi-spiffe-exec-auth directory: alpine. Bumps the docker-images group with 1 update in the /controller/hack directory: [spiffe/k8s-spiffe-workload-jwt-exec-auth](https://github.com/chainguard-images/images). Bumps the docker-images group with 1 update in the /management-engine directory: distroless/static. Updates `spiffe/k8s-spiffe-workload-jwt-exec-auth` from 1.0.0 to 1.0.1 - [Commits](https://github.com/chainguard-images/images/commits) Updates `spiffe/k8s-spiffe-workload-jwt-exec-auth` from 1.0.0 to 1.0.1 - [Commits](https://github.com/chainguard-images/images/commits) Updates `alpine` from 3.24.2 to 3.24.3 Updates `spiffe/k8s-spiffe-workload-jwt-exec-auth` from 1.0.0 to 1.0.1 - [Commits](https://github.com/chainguard-images/images/commits) Updates `spiffe/k8s-spiffe-workload-jwt-exec-auth` from 1.0.0 to 1.0.1 - [Commits](https://github.com/chainguard-images/images/commits) Updates `distroless/static` from `e2e927e` to `18f4cc2` --- updated-dependencies: - dependency-name: spiffe/k8s-spiffe-workload-jwt-exec-auth dependency-version: 1.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: docker-images - dependency-name: spiffe/k8s-spiffe-workload-jwt-exec-auth dependency-version: 1.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: docker-images - dependency-name: alpine dependency-version: 3.24.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: docker-images - dependency-name: spiffe/k8s-spiffe-workload-jwt-exec-auth dependency-version: 1.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: docker-images - dependency-name: spiffe/k8s-spiffe-workload-jwt-exec-auth dependency-version: 1.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: docker-images - dependency-name: distroless/static dependency-version: nonroot dependency-type: direct:production dependency-group: docker-images ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.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> |
||
|
|
40926b134d |
feat: create scale nvke controller clusters and nodepools (#1918)
Signed-off-by: Jay Cox <jcox@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> |
||
|
|
fdf9371ba1 |
feat(agent): name the controller client CA bundle only --nvke-controller-client-ca-bundle (#1870)
The agent reads the controller client CA bundle only from --nvke-controller-client-ca-bundle and NVKE_CONTROLLER_CLIENT_CA_BUNDLE. --controller-client-ca-bundle is an unknown flag, and NKE_CONTROLLER_CLIENT_CA_BUNDLE has no effect. The controller writes --nvke-controller-client-ca-bundle for every external-mTLS node, whatever the node's agent version. The CA file path still follows the agent version. External node-agent mTLS requires node agent 0.3.0 or later; the chart and controller docs say so. Related to #1869 Signed-off-by: Aaron Patten <apatten@nvidia.com> |