【kubernetes/kubeadm】工作流之Runner資料結構
阿新 • • 發佈:2019-06-14
// phaseRunner provides a wrapper to a Phase with the addition of a set
// of contextual information derived by the workflow managed by the Runner.
// TODO: If we ever decide to get more sophisticated we can swap this type with a well defined dag or tree library.
type phaseRunner struct {
// Phase provide access to the phase implementation
Phase
// provide access to the parent phase in the workflow managed by the Runner.
parent *phaseRunner
// level define the level of nesting of this phase into the workflow managed by
// the Runner.
level int
// selfPath contains all the elements of the path that identify the phase into
// the workflow managed by the Runner.
selfPath []string
// generatedName is the full name of the phase, that corresponds to the absolute
// path of the phase in the workflow managed by the Runner.
generatedName string
// use is the phase usage string that will be printed in the workflow help.
// It corresponds to the relative path of the phase in the workflow managed by the Runner.
u