Skip to content

kubernetes: Allow upgrading existing node groups - #205

Merged
Marian Koreniuk (themoriarti) merged 1 commit into
mainfrom
kubernetes-nodegroups
Jul 8, 2024
Merged

kubernetes: Allow upgrading existing node groups#205
Marian Koreniuk (themoriarti) merged 1 commit into
mainfrom
kubernetes-nodegroups

Conversation

@kvaps

@kvaps Andrei Kvapil (kvaps) commented Jul 8, 2024

Copy link
Copy Markdown
Member

This PR introduces change to allow upgrading existing node groups for tenant Kubernetes cluster:

This fixes the error:

Status: Failed (UpgradeFailed: Helm upgrade failed for release tenant-test0/kubernetes-test0 with chart kubernetes@0.3.0: cannot patch "kubernetes-test0-md0" with kind KubevirtMachineTemplate: admission webhook "validation.kubevirtmachinetemplate.infrastructure.cluster.x-k8s.io" denied the request: KubevirtMachineTemplateSpec is immutable)

This is done by generating unique names for KubevirtMachineTemplate based on hash from spec. Old KubevirtMachineTemplates keep existing in the cluster until some MachineSet continues using them.

@kvaps Andrei Kvapil (kvaps) changed the title kubernetes: Allow to upgrade existing node groups kubernetes: Allow upgrading existing node groups Jul 8, 2024
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@themoriarti
Marian Koreniuk (themoriarti) deleted the kubernetes-nodegroups branch July 8, 2024 20:49
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