@@ -106,7 +106,7 @@ func newCmdNode(out io.Writer) *cobra.Command {
106
106
// sets the data builder function, that will be used by the runner
107
107
// both when running the entire workflow or single phases
108
108
nodeRunner .SetDataInitializer (func (cmd * cobra.Command , args []string ) (workflow.RunData , error ) {
109
- data , err := newNodeData (cmd , args , nodeOptions , out )
109
+ data , err := newNodeData (cmd , nodeOptions , out )
110
110
if err != nil {
111
111
return nil , err
112
112
}
@@ -145,7 +145,7 @@ func addUpgradeNodeFlags(flagSet *flag.FlagSet, nodeOptions *nodeOptions) {
145
145
// newNodeData returns a new nodeData struct to be used for the execution of the kubeadm upgrade node workflow.
146
146
// This func takes care of validating nodeOptions passed to the command, and then it converts
147
147
// options into the internal InitConfiguration type that is used as input all the phases in the kubeadm upgrade node workflow
148
- func newNodeData (cmd * cobra.Command , args [] string , nodeOptions * nodeOptions , out io.Writer ) (* nodeData , error ) {
148
+ func newNodeData (cmd * cobra.Command , nodeOptions * nodeOptions , out io.Writer ) (* nodeData , error ) {
149
149
// Checks if a node is a control-plane node by looking up the kube-apiserver manifest file
150
150
isControlPlaneNode := true
151
151
filepath := constants .GetStaticPodFilepath (constants .KubeAPIServer , constants .GetStaticPodDirectory ())
0 commit comments