func NewStageStatus(name, message string, phase StageStatusPhase) StageStatus {
	return StageStatus{
		Name:       name,
		Phase:      phase,
		Message:    message,
		StartedAt:  nil,
		FinishedAt: nil,
	}
}
NewStageStatus adds a new StageStatus
package v1alpha1
import (
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
type StageStatusPhase string
const (
	PhaseProgressing StageStatusPhase = "Progressing"
	PhaseSucceeded   StageStatusPhase = "Succeeded"
	PhaseFailed      StageStatusPhase = "Failed"
	PhaseUnknown     StageStatusPhase = "Unknown"
)
type StageStatus struct {
	Name       string           `json:"name"`
	Phase      StageStatusPhase `json:"phase,omitempty"`
	Message    string           `json:"message,omitempty"`
	StartedAt  *metav1.Time     `json:"startedAt,omitempty"`
	FinishedAt *metav1.Time     `json:"finishedAt,omitempty"`
}