Skip to content

[v2.12] Add Documentation for RKE1 Cluster Cleanup #1879

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

Open
wants to merge 5 commits into
base: v2.12.0
Choose a base branch
from

Conversation

krunalhinguu
Copy link

@krunalhinguu krunalhinguu commented Jul 16, 2025

Issue

Description

rancher v2.12 upgrade documentation to explain the validation behavior that blocks upgrades when RKE1-related resources are present, and to guide users through manual recovery if an upgrade fails.

@krunalhinguu krunalhinguu requested review from kinarashah and a team July 16, 2025 04:32
@vardhaman22 vardhaman22 changed the title [v2.12] Add Documentation for RKE1 Upgrade [v2.12] Add Documentation for RKE1 Cluster Cleanup Jul 16, 2025
- This allows Rancher to clean up associated resources and finalizers.
```
#!/bin/bash
Copy link
Member

@kinarashah kinarashah Jul 16, 2025

Choose a reason for hiding this comment

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

@krunalhinguu could you link directly to https://github.com/rancher/rancher/blob/v2.12.0/chart/scripts/pre-upgrade-hook.sh (it'll be available after v2.12.0 is tagged or https://github.com/rancher/rancher/blob/main/chart/scripts/pre-upgrade-hook.sh temporarily for QA) so we don't have to maintain the script in multiple places?

Choose a reason for hiding this comment

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

Good idea. Debating whether we want to pin it to v2.12.0 tag or have it point to main branch so in case we fix/improve the script it will be "automagically" updated in docs. The counter-argument is if we go with main link then potentially untested changes will be live immediately.
Leaning towards the latter just to be safe and we can bump to a newer tag in docs as needed.

Copy link
Contributor

@sunilarjun sunilarjun left a comment

Choose a reason for hiding this comment

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

Hello @krunalhinguu thank you for the updates, I've left some comments adding suggested rephrasing and some syntax updates. Could you please also apply these changes to the v2.9, v2.10, (updating this comment wrt to below clarification) and v2.11 upgrade-docker-installed-rancher.md pages as the content will be relevant for these users who upgrade to v2.12 as well. I've left out v2.8 as this documentation will be archived soon. Please let me know if you need help with porting the content to versions v2.9-v2.11 or if you need any clarification, thanks again!

@krunalhinguu
Copy link
Author

Thanks @sunilarjun for the suggestion and improvements. I have update the documentation as per the instructions. I have also updated the doc for 2.9,2.10 & 2.11 as well. Please let me know if any additional changes are needed

Copy link
Contributor

@sunilarjun sunilarjun left a comment

Choose a reason for hiding this comment

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

Thank you for addressing the feedback! Just a minor edit I've left across versions and then should be good to approve/merge after updating.

- **Manually delete** the resources listed in the upgrade error message (e.g., RKE1 clusters, NodeTemplates, ClusterTemplates).
- If deletion is blocked due to **finalizers**, edit the resources and remove the `metadata.finalizers` field.
- If a **validating webhook** prevents deletion (e.g., for the `system-project`), please refer to the [Bypassing the Webhook](../../../../reference-guides/rancher-webhook.md#bypassing-the-webhook)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- If a **validating webhook** prevents deletion (e.g., for the `system-project`), please refer to the [Bypassing the Webhook](../../../../reference-guides/rancher-webhook.md#bypassing-the-webhook)
- If a **validating webhook** prevents deletion (e.g., for the `system-project`), please refer to the [Bypassing the Webhook](../../../../reference-guides/rancher-webhook.md#bypassing-the-webhook) documentation.

- **Manually delete** the resources listed in the upgrade error message (e.g., RKE1 clusters, NodeTemplates, ClusterTemplates).
- If deletion is blocked due to **finalizers**, edit the resources and remove the `metadata.finalizers` field.
- If a **validating webhook** prevents deletion (e.g., for the `system-project`), please refer to the [Bypassing the Webhook](../../../../reference-guides/rancher-webhook.md#bypassing-the-webhook)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- If a **validating webhook** prevents deletion (e.g., for the `system-project`), please refer to the [Bypassing the Webhook](../../../../reference-guides/rancher-webhook.md#bypassing-the-webhook)
- If a **validating webhook** prevents deletion (e.g., for the `system-project`), please refer to the [Bypassing the Webhook](../../../../reference-guides/rancher-webhook.md#bypassing-the-webhook) documentation.

- **Manually delete** the resources listed in the upgrade error message (e.g., RKE1 clusters, NodeTemplates, ClusterTemplates).
- If deletion is blocked due to **finalizers**, edit the resources and remove the `metadata.finalizers` field.
- If a **validating webhook** prevents deletion (e.g., for the `system-project`), please refer to the [Bypassing the Webhook](../../../../reference-guides/rancher-webhook.md#bypassing-the-webhook)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- If a **validating webhook** prevents deletion (e.g., for the `system-project`), please refer to the [Bypassing the Webhook](../../../../reference-guides/rancher-webhook.md#bypassing-the-webhook)
- If a **validating webhook** prevents deletion (e.g., for the `system-project`), please refer to the [Bypassing the Webhook](../../../../reference-guides/rancher-webhook.md#bypassing-the-webhook) documentation.

@btat
Copy link
Contributor

btat commented Jul 18, 2025

Could you please also apply these changes to the v2.9, v2.10, and v2.11

Since we recommend not skipping minor versions during upgrades I don't think this should be included in v2.9 and v2.10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants