-
Notifications
You must be signed in to change notification settings - Fork 580
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
Can not set DeleteEmptyDirData to true, even with delete_local_data: true in node_drain_input #3412
Comments
Cause In the declaration of the type
In the function parseNodeDrainInput, RKE uses |
this issue can be validated in RKE v1.5.7-rc3 For validating the fix, please check the testing section in the PR |
Ticket #3412 - Test Results - ✅Verified with RKE
upgrade_strategy:
max_unavailable_worker: 1
max_unavailable_controlplane: 1
drain: true
node_drain_input:
force: false
ignore_daemonsets: true
delete_local_data: true
|
RKE version: 1.3.23
Steps to Reproduce:
Set the
upgrade_strategy
as below:Results:
Log of drain command param
Parameters provided to drain command: "Force: false, IgnoreAllDaemonSets: true, DeleteEmptyDirData: false, Timeout: 2m0s, GracePeriodSeconds: -1"
It's weird that if I add
grace_period
andtimeout
config as below, DeleteEmptyDirData is set to true as expected:Results:
Log of drain command param
Parameters provided to drain command: "Force: false, IgnoreAllDaemonSets: true, DeleteEmptyDirData: true, Timeout: 20m0s, GracePeriodSeconds: -1"
The text was updated successfully, but these errors were encountered: