Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubernetes: Allow upgrading existing node groups #205

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

kvaps
Copy link
Member

@kvaps kvaps commented Jul 8, 2024

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 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
Collaborator

@themoriarti themoriarti left a comment

Choose a reason for hiding this comment

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

Looks good

@themoriarti themoriarti merged commit 9709059 into main Jul 8, 2024
@themoriarti 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