k3s/cmd/kubeadm
Lubomir I. Ivanov 1b0ba920fe kubeadm: fix a couple of problems related to initData/joinData
Fix a couple of problems related to data used by the phases runners
of `init` and `join`.

1) make `newInitData()` and `newJoinData()` return pointers.

Methods of the data objects returned by these functions should
be able to modify fields in the data objects - e.g.
`func (d initData) Client()`. This allows us to store a state and
not execute the same logic multiple times - e.g. obtaining a client.

A side effect of this change is that the `new...` functions must return
pointers, so that casting the data object in a phase, from
`workflow.RunData` to a locally defined interface, works.

2) Make it possible to pass arguments from a parent command
to a sub-phase with regards to data initialization.
2019-01-26 18:41:19 +02:00
..
app kubeadm: fix a couple of problems related to initData/joinData 2019-01-26 18:41:19 +02:00
test Update dedent to latest release 2019-01-17 08:30:07 +01:00
.import-restrictions Merge pull request #72923 from saschagrunert/dedent-update 2019-01-25 18:32:23 -08:00
BUILD Move from glog to klog 2018-11-10 07:50:31 -05:00
OWNERS Update kubeadm OWNERS file 2018-11-29 13:12:49 +02:00
kubeadm.go Move from glog to klog 2018-11-10 07:50:31 -05:00