Skip to content

Remove RKE1 related code#613

Open
pmatseykanets wants to merge 3 commits into
rancher:mainfrom
pmatseykanets:remove-rke1-types
Open

Remove RKE1 related code#613
pmatseykanets wants to merge 3 commits into
rancher:mainfrom
pmatseykanets:remove-rke1-types

Conversation

@pmatseykanets

@pmatseykanets pmatseykanets commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Problem

RKE1 types (NodePool, RancherKubernetesEngineConfig, NetworkConfig, Node.SshUser) were removed from rancher/rancher in rancher/rancher#54586.

Solution

Drop all code that depended on these types:

  • cluster create: remove --disable-docker-version, --import, --k8s-version, --network-provider, --rke-config flags and the RKE engine config block
  • cluster add-node: remove NodePool.List() guard; simplify to check cluster.Driver == "" for custom clusters
  • nodes ls: remove POOL column and getNodePools/getNodePoolName helpers
  • ssh: refactor getNodeAndKey to return sshUser as a separate value instead of storing it on Node.SshUser
  • common: remove readFileReturnJSON, hasPrefix, convertSnakeCaseKeysToCamelCase, renameKeys (all now dead)

Note: rancher/rancher will be updated in #612

RKE1 types (NodePool, RancherKubernetesEngineConfig, NetworkConfig) were
removed from rancher/rancher in rancher/rancher#54586. Drop all CLI code
that depended on these types:

- cluster create: remove --disable-docker-version, --import, --k8s-version,
  --network-provider, --rke-config flags and the RKE engine config block
- cluster add-node: remove NodePool.List() guard; simplify to check
  cluster.Driver == "" for custom clusters
- nodes ls: remove POOL column and getNodePools/getNodePoolName helpers
- common: remove readFileReturnJSON, hasPrefix (now dead)
Node.SshUser was removed in rancher/rancher#54586 alongside NodePool.
Refactor getNodeAndKey to return sshUser as a separate value instead
of storing it on the Node struct.

Also remove convertSnakeCaseKeysToCamelCase, renameKeys, and their tests —
these were only used by the rke-config import path that was already removed.
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.

3 participants