Skip to content

Kubernetes upgrade needs a more intelligent upgrade path detector. #4

@sofusalbertsen

Description

@sofusalbertsen
kubectl get nodes -o 'jsonpath={.items[0].status.nodeInfo.kubeletVersion}'
local version_string=v1.27.1
echo v1.27.1
v1.27.1
++ echo v1.27.1
++ cut -d. -f1
local major=v1
++ echo v1.27.1
++ cut -d. -f2
local minor=27
++ echo v1.27.1
++ cut -d. -f3
local patch=1
'[' 1 -gt 0 ']'
patch=0
local next_minor=28
echo v1.28.0
NEXT_VERSION=v1.28.0
v1.28.0
upgrade_kubernetes
echo 'Upgrading Kubernetes to version v1.28.0...'
Upgrading Kubernetes to version v1.28.0...
./talosctl-v1.4.8 -n 192.168.1.109 -e 192.168.1.109 upgrade-k8s --to v1.28.0
automatically detected the lowest Kubernetes version 1.27.1
unsupported upgrade path 1.27->1.28 (from "1.27.1" to "1.28.0")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions