8000 add option to skip kubelet update by YZ775 · Pull Request #797 · cybozu-go/cke · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

add option to skip kubelet update #797

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

Merged
merged 4 commits into from
May 23, 2025
Merged

add option to skip kubelet update #797

merged 4 commits into from
May 23, 2025

Conversation

YZ775
Copy link
Contributor
@YZ775 YZ775 commented May 22, 2025

@YZ775 YZ775 force-pushed the drain-before-kubelet-upgrade branch from ca220f0 to 3a03682 Compare May 22, 2025 05:33
@YZ775 YZ775 requested a review from Copilot May 22, 2025 06:30
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds an option to skip the kubelet update during cluster operations.

  • Introduces a new boolean option (skip_update) in the kubelet configuration.
  • Updates the strategy logic to conditionally bypass kubelet updates.
  • Extends tests and documentation to cover the new option.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
server/strategy_test.go Added a test case to verify that kubelet update is skipped
server/strategy.go Updated condition to check the skip_update flag
docs/cluster.md Documented the new skip_update option
cluster.go Extended KubeletParams with the new SkipUpdate field
Comments suppressed due to low confidence (1)

server/strategy_test.go:1016

  • [nitpick] The test case name 'RestartKubelet10' may be misleading since the test is validating the skip-update behavior. Consider renaming it to better reflect that kubelet update is being skipped (e.g., 'SkipKubeletUpdate').
Name: "RestartKubelet10",

@YZ775 YZ775 requested a review from masa213f May 22, 2025 06:33
Copy link
Contributor
@masa213f masa213f left a comment

Choose a reason for hiding this comment

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

LGTM

@YZ775 YZ775 merged commit df6b1b5 into main May 23, 2025
8 checks passed
@YZ775 YZ775 deleted the drain-before-kubelet-upgrade branch May 23, 2025 01:57
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
0