WorkflowExecutor is program which runs as the init/wait container
| 55 | |
| 56 | // WorkflowExecutor is program which runs as the init/wait container |
| 57 | type WorkflowExecutor struct { |
| 58 | PodName string |
| 59 | podUID types.UID |
| 60 | workflow string |
| 61 | workflowUID types.UID |
| 62 | nodeID string |
| 63 | Template wfv1.Template |
| 64 | IncludeScriptOutput bool |
| 65 | Deadline time.Time |
| 66 | ClientSet kubernetes.Interface |
| 67 | taskResultClient argoprojv1.WorkflowTaskResultInterface |
| 68 | RESTClient rest.Interface |
| 69 | Namespace string |
| 70 | RuntimeExecutor ContainerRuntimeExecutor |
| 71 | |
| 72 | // memoized configmaps |
| 73 | memoizedConfigMaps map[string]string |
| 74 | // memoized secrets |
| 75 | memoizedSecrets map[string][]byte |
| 76 | // list of errors that occurred during execution. |
| 77 | // the first of these is used as the overall message of the node |
| 78 | errors []error |
| 79 | |
| 80 | // current progress which is synced every `annotationPatchTickDuration` to the pods annotations. |
| 81 | progress wfv1.Progress |
| 82 | |
| 83 | annotationPatchTickDuration time.Duration |
| 84 | readProgressFileTickDuration time.Duration |
| 85 | |
| 86 | // flag to indicate if the task result was created |
| 87 | taskResultCreated bool |
| 88 | } |
| 89 | |
| 90 | type Initializer interface { |
| 91 | Init(tmpl wfv1.Template) error |
nothing calls this directly
no outgoing calls
no test coverage detected