mirror of
https://github.com/kubereboot/kured.git
synced 2026-08-23 21:36:33 +00:00
Update the deprecated DeleteLocalData
DeleteLocalData was deprecated for users of kubectl in 0.20 [1]. At the same time of the deprecation, the relevant code was also removed [2] without warning: The DeleteLocalData from the helper structure was simply renamed DeleteEmptyDirData, without shims on the exposed pkg. This is a problem, as it completely breaks kured. This should fix it, by using the new field name. [1]: https://github.com/kubernetes/kubectl/commit/56ea9621b7fc333d2d2dde8ae39c15cacf28dbf7 [2]: https://github.com/kubernetes/kubectl/commit/56ea9621b7fc333d2d2dde8ae39c15cacf28dbf7#diff-041bdcdedca650a38a8d82cf15ab6f3665b7b84a0fb44a8bb5dcdc5cd944c63d
This commit is contained in:
committed by
Christian Kotzbauer
parent
20cbf6112d
commit
15c57927c8
+1
-1
@@ -272,7 +272,7 @@ func drain(client *kubernetes.Clientset, node *v1.Node) {
|
||||
Client: client,
|
||||
GracePeriodSeconds: -1,
|
||||
Force: true,
|
||||
DeleteLocalData: true,
|
||||
DeleteEmptyDirData: true,
|
||||
IgnoreAllDaemonSets: true,
|
||||
ErrOut: os.Stderr,
|
||||
Out: os.Stdout,
|
||||
|
||||
Reference in New Issue
Block a user