Documentation
¶
Index ¶
Constants ¶
View Source
const ( TaskActionDefaultRequeueDuration = 5 * time.Second // LabelTerminationStatus marks a TaskAction as terminated for GC discovery. LabelTerminationStatus = "flyte.org/termination-status" // LabelCompletedTime records the UTC time (minute precision) when the TaskAction became terminal. LabelCompletedTime = "flyte.org/completed-time" // LabelValueTerminated is the value for LabelTerminationStatus. LabelValueTerminated = "terminated" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GarbageCollector ¶ added in v2.0.8
type GarbageCollector struct {
// contains filtered or unexported fields
}
GarbageCollector periodically deletes terminal TaskActions that have exceeded their TTL. It implements the controller-runtime manager.Runnable interface.
func NewGarbageCollector ¶ added in v2.0.8
func NewGarbageCollector(c client.Client, interval, maxTTL time.Duration) *GarbageCollector
NewGarbageCollector creates a new GarbageCollector.
type K8sEventType ¶ added in v2.0.1
type K8sEventType string
const ( FailedUnmarshal K8sEventType = "FailedUnmarshal" FailedValidation K8sEventType = "FailedValidation" FailedPluginResolve K8sEventType = "FailedPluginResolve" FailedPluginHandle K8sEventType = "FailedPluginHandle" )
type TaskActionReconciler ¶
type TaskActionReconciler struct {
client.Client
Scheme *runtime.Scheme
Recorder record.EventRecorder
PluginRegistry *plugin.Registry
DataStore *storage.DataStore
SecretManager pluginsCore.SecretManager
ResourceManager pluginsCore.ResourceManager
CatalogClient catalog.AsyncClient
// contains filtered or unexported fields
}
TaskActionReconciler reconciles a TaskAction object
func NewTaskActionReconciler ¶
func NewTaskActionReconciler( c client.Client, scheme *runtime.Scheme, registry *plugin.Registry, dataStore *storage.DataStore, eventsClient workflowconnect.EventsProxyServiceClient, cluster string, ) *TaskActionReconciler
NewTaskActionReconciler creates a new TaskActionReconciler
func (*TaskActionReconciler) Reconcile ¶
func (r *TaskActionReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*TaskActionReconciler) SetupWithManager ¶
func (r *TaskActionReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.