k8s

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitScheme

func InitScheme() error

InitScheme adds the executor API types to the scheme

Types

type QueueClient

type QueueClient struct {
	// contains filtered or unexported fields
}

QueueClient implements queue operations using Kubernetes TaskAction CRs

func NewQueueClient

func NewQueueClient(k8sClient client.Client, namespace string) *QueueClient

NewQueueClient creates a new Kubernetes-based queue client

func (*QueueClient) AbortQueuedAction

func (q *QueueClient) AbortQueuedAction(ctx context.Context, actionID *common.ActionIdentifier, reason *string) error

AbortQueuedAction deletes a specific TaskAction CR If the action has children, Kubernetes will cascade delete them via OwnerReferences

func (*QueueClient) AbortQueuedRun

func (q *QueueClient) AbortQueuedRun(ctx context.Context, runID *common.RunIdentifier, reason *string) error

AbortQueuedRun deletes the root TaskAction CR for a run Kubernetes will automatically cascade delete all child TaskActions via OwnerReferences

func (*QueueClient) EnqueueAction

func (q *QueueClient) EnqueueAction(ctx context.Context, req *workflow.EnqueueActionRequest) error

EnqueueAction creates a TaskAction CR in Kubernetes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL