keptntask

package
v0.0.0-...-6e126a9 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeptnContextEnvVar = "KEPTN_CONTEXT"
	SecureData         = "SECURE_DATA"
	Data               = "DATA"
	CmdArgs            = "CMD_ARGS"
	Script             = "SCRIPT"
	FunctionMountName  = "function-mount"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BuilderOptions

type BuilderOptions struct {
	client.Client

	Log logr.Logger

	Image     string
	MountPath string
	ConfigMap string
	// contains filtered or unexported fields
}

BuilderOptions contains everything needed to build the current job

type ContainerBuilder

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

ContainerBuilder implements container builder interface for python

func NewContainerBuilder

func NewContainerBuilder(options BuilderOptions) *ContainerBuilder

func (*ContainerBuilder) CreateContainer

func (c *ContainerBuilder) CreateContainer(ctx context.Context) (*corev1.Container, error)

func (*ContainerBuilder) CreateVolume

func (c *ContainerBuilder) CreateVolume(ctx context.Context) (*corev1.Volume, error)

type JobRunnerBuilder

type JobRunnerBuilder interface {
	// CreateContainer returns a job container based on the task definition spec
	CreateContainer(ctx context.Context) (*corev1.Container, error)
	CreateVolume(ctx context.Context) (*corev1.Volume, error)
}

JobRunnerBuilder is the interface that describes the operations needed to help build job specs of a task

func NewJobRunnerBuilder

func NewJobRunnerBuilder(options BuilderOptions) JobRunnerBuilder

type KeptnTaskReconciler

type KeptnTaskReconciler struct {
	client.Client
	Scheme      *runtime.Scheme
	EventSender eventsender.IEvent
	Log         logr.Logger
	Meters      apicommon.KeptnMeters
}

KeptnTaskReconciler reconciles a KeptnTask object

func (*KeptnTaskReconciler) Reconcile

func (r *KeptnTaskReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*KeptnTaskReconciler) SetupWithManager

func (r *KeptnTaskReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type RuntimeBuilder

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

RuntimeBuilder implements container builder interface for Deno/Python

func NewRuntimeBuilder

func NewRuntimeBuilder(options BuilderOptions) *RuntimeBuilder

func (*RuntimeBuilder) CreateContainer

func (fb *RuntimeBuilder) CreateContainer(ctx context.Context) (*corev1.Container, error)

func (*RuntimeBuilder) CreateVolume

func (fb *RuntimeBuilder) CreateVolume(ctx context.Context) (*corev1.Volume, error)

type RuntimeExecutionParams

type RuntimeExecutionParams struct {
	ConfigMap        string
	Parameters       map[string]string
	SecureParameters string
	CmdParameters    string
	URL              string
	Context          apilifecycle.TaskContext
	Image            string
	MountPath        string
}

RuntimeExecutionParams stores parameters related to Deno/Python container creation

Jump to

Keyboard shortcuts

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