Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GCPodUpdated ¶
func GCPodUpdated(client kubernetes.Interface, pod *corev1.Pod)
GCPodUpdated handles GC pod update. If GC pod is terminated, it will be deleted.
Types ¶
type Handler ¶
type Handler struct { ClusterClient kubernetes.Interface Client clientset.Interface }
Handler ...
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
Operator ...
func NewOperator ¶
func NewOperator(clusterClient kubernetes.Interface, client clientset.Interface, pod *corev1.Pod) (*Operator, error)
NewOperator ...
func (*Operator) DetermineStatus ¶
func (p *Operator) DetermineStatus(wfrOperator workflowrun.Operator)
DetermineStatus determines status of a stage and update WorkflowRun status accordingly. Because coordinator container is the last container running in the pod (it performs collect logs, artifacts, notify resource resolver to push resource), when the coordinator container have been finished (no matter Succeed or Failed), we need to update stage status, and take necessary actions to stop the pod.
Click to show internal directories.
Click to hide internal directories.