Skip to content

linera-service: remove linera net up --kubernetes#6325

Merged
ndr-ds merged 2 commits into
mainfrom
ndr-ds/remove-kubernetes-net-up
May 26, 2026
Merged

linera-service: remove linera net up --kubernetes#6325
ndr-ds merged 2 commits into
mainfrom
ndr-ds/remove-kubernetes-net-up

Conversation

@ndr-ds

@ndr-ds ndr-ds commented May 16, 2026

Copy link
Copy Markdown
Contributor

Motivation

linera net up --kubernetes launched a local KinD cluster via Helmfile to test infra config changes. Since infra now lives in ArgoCD with automated sync on merge, any change to linera-infra deploys immediately to the real clusters — testing via a local KinD cluster no longer serves a purpose.

Proposal

Remove the kubernetes feature and all code exclusively used by that path:

  • Delete linera-service/src/cli_wrappers/{local_kubernetes_net,docker,helmfile,kind,kubectl,util}.rs
  • Remove the kubernetes: true CLI match arm and related NetCommand::Up fields from command.rs
  • Remove handle_net_up_kubernetes from net_up_utils.rs
  • Remove the kubernetes feature and its optional deps (k8s-openapi, kube, pathdiff, fs_extra) from linera-service/Cargo.toml and workspace Cargo.toml
  • Delete .github/workflows/remote-kubernetes-net-test.yml
  • Remove changed-files-kubernetes job and cargo clippy --features kubernetes from .github/workflows/rust.yml
  • Delete kubernetes/linera-validator/ (the Helm chart + Helmfile config that backed this feature)

Net: ~-77k lines. cargo check -p linera-service and cargo clippy -p linera-service both exit 0.

Test Plan

CI.

Release Plan

  • Nothing to do / These changes follow the usual release cycle.

@ndr-ds
ndr-ds force-pushed the ndr-ds/remove-kubernetes-net-up branch from 3d5a0bb to 4783f4f Compare May 26, 2026 18:34
@ndr-ds
ndr-ds marked this pull request as ready for review May 26, 2026 18:34
@ndr-ds
ndr-ds enabled auto-merge May 26, 2026 18:41
@ndr-ds
ndr-ds added this pull request to the merge queue May 26, 2026
Merged via the queue into main with commit e29ebd2 May 26, 2026
37 checks passed
@ndr-ds
ndr-ds deleted the ndr-ds/remove-kubernetes-net-up branch May 26, 2026 19:36
ndr-ds added a commit that referenced this pull request Jun 26, 2026
…#6564)

## Motivation

`linera net up --kubernetes` and the in-tree
`kubernetes/linera-validator` Helm chart are obsolete: validator
deployment is now driven by the ArgoCD setup in `linera-infra`. The
feature also carried a flaky, disabled CI job
(`remote-kubernetes-net-test`) and a stack of `cli_wrappers`
(helmfile/kind/kubectl/docker/local_kubernetes_net) that nothing else
uses.

This backports #6325 (already merged to `main`) to `testnet_conway` so
the two branches do not diverge.

## Proposal

Remove `linera net up --kubernetes` and everything specific to it:
- the `kubernetes/linera-validator` Helm chart directory;
- the `kubernetes` cargo feature and its `k8s-openapi` / `kube` /
`pathdiff` / `fs_extra` deps;
-
`cli_wrappers/{helmfile,kind,kubectl,docker,local_kubernetes_net,util}.rs`;
- `handle_net_up_kubernetes` and the `--kubernetes` CLI branch;
- the `remote-kubernetes-net-test` workflow and the `kubernetes`-gated
`test_case`s in `linera_net_tests.rs`.

Native (`net up`) and `remote-net` paths are untouched.

## Test Plan

CI. Locally on the `testnet_conway` toolchain: `cargo check -p
linera-service --all-features --tests` and `cargo clippy -p
linera-service --all-features --tests` both pass, `cargo fmt --check`
clean.

## Release Plan

- Nothing to do / These changes follow the usual release cycle.

## Links

- main PR: #6325
- closes #5911 (the flaky `remote-kubernetes-net-test` reliability issue
— resolved by removing the feature)
- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants