actions

package
v0.0.0-...-a7576c3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

	// ProcessorCreatedReason is added to the action when the processor CR is created.
	ProcessorCreatedReason = "ProcessorCreated"
	// FailedToCreateProcessorReason is added to the action when the processor CR creation fails.
	FailedToCreateProcessorReason = "FailedToCreateProcessor"
	// FailedToTransformToProcessorReason is added to the action when the transformation to processor object fails.
	FailedToTransformToProcessorReason = "FailedToTransformToProcessor"
)

Reasons for action condition types

View Source
const (
	// TransformedToProcessor is the condition when the action CR is transformed to a processor CR.
	// This is the first step in the reconciliation process.
	ActionTransformedToProcessorType = "TransformedToProcessor"
)

These are the valid conditions for an odigos action

Variables

This section is empty.

Functions

func SetupWithManager

func SetupWithManager(mgr ctrl.Manager) error

Types

type AddClusterInfoReconciler

type AddClusterInfoReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

func (*AddClusterInfoReconciler) Reconcile

func (*AddClusterInfoReconciler) ReportReconciledToProcessor

func (r *AddClusterInfoReconciler) ReportReconciledToProcessor(ctx context.Context, action *actionv1.AddClusterInfo) error

func (*AddClusterInfoReconciler) ReportReconciledToProcessorFailed

func (r *AddClusterInfoReconciler) ReportReconciledToProcessorFailed(ctx context.Context, action *actionv1.AddClusterInfo, reason string, msg string) error

type DeleteAttributeReconciler

type DeleteAttributeReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

func (*DeleteAttributeReconciler) Reconcile

func (*DeleteAttributeReconciler) ReportReconciledToProcessor

func (r *DeleteAttributeReconciler) ReportReconciledToProcessor(ctx context.Context, action *actionv1.DeleteAttribute) error

func (*DeleteAttributeReconciler) ReportReconciledToProcessorFailed

func (r *DeleteAttributeReconciler) ReportReconciledToProcessorFailed(ctx context.Context, action *actionv1.DeleteAttribute, reason string, msg string) error

type OttlStatementConfig

type OttlStatementConfig struct {
	Context    string   `json:"context"`
	Statements []string `json:"statements"`
}

type RenameAttributeReconciler

type RenameAttributeReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

func (*RenameAttributeReconciler) Reconcile

func (*RenameAttributeReconciler) ReportReconciledToProcessor

func (r *RenameAttributeReconciler) ReportReconciledToProcessor(ctx context.Context, action *actionv1.RenameAttribute) error

func (*RenameAttributeReconciler) ReportReconciledToProcessorFailed

func (r *RenameAttributeReconciler) ReportReconciledToProcessorFailed(ctx context.Context, action *actionv1.RenameAttribute, reason string, msg string) error

type TransformProcessorConfig

type TransformProcessorConfig struct {
	ErrorMode        string                `json:"error_mode"`
	TraceStatements  []OttlStatementConfig `json:"trace_statements,omitempty"`
	MetricStatements []OttlStatementConfig `json:"metric_statements,omitempty"`
	LogStatements    []OttlStatementConfig `json:"log_statements,omitempty"`
}

Jump to

Keyboard shortcuts

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