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

Recreate autopilot plan on new update #825

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

makhov
Copy link
Contributor

@makhov makhov commented Nov 22, 2024

Fixes #816

@makhov makhov added the bug Something isn't working label Nov 22, 2024
}`)

return clientset.RESTClient().Post().
apiVersion: autopilot.k0sproject.io/v1beta2
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Switching to YAML since Patch(types.ApplyPatchType) sets content-type header to application/apply-patch+yaml

@makhov makhov marked this pull request as ready for review November 22, 2024 13:27
@makhov makhov requested a review from a team as a code owner November 22, 2024 13:27
@makhov makhov force-pushed the fix-autopilot-plan branch 12 times, most recently from fd5f67b to 736c663 Compare November 28, 2024 11:24
@makhov makhov requested a review from apedriza November 28, 2024 11:44
@makhov makhov force-pushed the fix-autopilot-plan branch 2 times, most recently from af4a07b to ed61238 Compare November 28, 2024 12:38
@makhov makhov changed the title Patch (apply) autopilot plan instead of creation Recreate autopilot plan on new update Nov 28, 2024
@makhov makhov force-pushed the fix-autopilot-plan branch 2 times, most recently from db78dc8 to 68067ac Compare November 29, 2024 13:53
@makhov makhov force-pushed the fix-autopilot-plan branch from 68067ac to 61d7732 Compare December 2, 2024 07:16
Signed-off-by: Alexey Makhov <amakhov@mirantis.com>
@makhov makhov force-pushed the fix-autopilot-plan branch from 61d7732 to 0958f61 Compare December 2, 2024 07:20
Copy link
Contributor

@apedriza apedriza left a comment

Choose a reason for hiding this comment

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

lgtm

@makhov makhov merged commit 03076e3 into k0sproject:main Dec 3, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autopilot plan is not deleted after running a successful upgrade
2 participants