actions

package
v0.0.0-...-c22b7cd Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Processor types
	SamplingProcessorType = "odigossampling"
	GroupByTraceType      = "groupbytrace"
)
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 OdigosSamplingReconciler

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

func (*OdigosSamplingReconciler) Reconcile

func (*OdigosSamplingReconciler) ReportReconciledToProcessor

func (r *OdigosSamplingReconciler) ReportReconciledToProcessor(ctx context.Context, action metav1.Object) error

func (*OdigosSamplingReconciler) ReportReconciledToProcessorFailed

func (r *OdigosSamplingReconciler) ReportReconciledToProcessorFailed(ctx context.Context, action metav1.Object, reason, msg string) error

type OttlStatementConfig

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

type PiiMaskingConfig

type PiiMaskingConfig struct {
	AllowAllKeys  bool     `json:"allow_all_keys"`
	BlockedValues []string `json:"blocked_values"`
}

type PiiMaskingReconciler

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

func (*PiiMaskingReconciler) Reconcile

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

func (*PiiMaskingReconciler) ReportReconciledToProcessor

func (r *PiiMaskingReconciler) ReportReconciledToProcessor(ctx context.Context, action *actionv1.PiiMasking) error

func (*PiiMaskingReconciler) ReportReconciledToProcessorFailed

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

type ProbabilisticSamplerConfig

type ProbabilisticSamplerConfig struct {
	Value    float64 `json:"sampling_percentage"`
	HashSeed int     `json:"hash_seed"`
}

type ProbabilisticSamplerReconciler

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

func (*ProbabilisticSamplerReconciler) Reconcile

func (*ProbabilisticSamplerReconciler) ReportReconciledToProcessor

func (r *ProbabilisticSamplerReconciler) ReportReconciledToProcessor(ctx context.Context, action *actionv1.ProbabilisticSampler) error

func (*ProbabilisticSamplerReconciler) ReportReconciledToProcessorFailed

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

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"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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