Add static value source for replacement

Introduces `sourceValue` on replacement object for replacing from a
static value instead of sourcing from another object.

Solves #5516
This commit is contained in:
Ramon Cunyat
2024-03-28 20:22:12 +01:00
committed by Ramon Cuñat
parent cc9dd34216
commit 6c27970019
3 changed files with 75 additions and 1 deletions

View File

@@ -20,6 +20,9 @@ type Replacement struct {
// The N fields to write the value to.
Targets []*TargetSelector `json:"targets,omitempty" yaml:"targets,omitempty"`
// Used to define an static value
SourceValue *string `json:"sourceValue,omitempty" yaml:"sourceValue,omitempty"`
}
// SourceSelector is the source of the replacement transformer.