Skip to content

Commit

Permalink
feat: rename function to functionRef
Browse files Browse the repository at this point in the history
Signed-off-by: André Kesser <andre.kesser@dkb.de>
  • Loading branch information
André Kesser committed Apr 18, 2024
1 parent 3a056ac commit 7441b08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ func (g *XGenerator) generateAdditonalPipelineStep(s t.PipelineStep) (*c.Pipelin
return &c.PipelineStep{
Step: s.Step,
FunctionRef: c.FunctionReference{
Name: s.Function.Name,
Name: s.FunctionRef.Name,
},
Input: &runtime.RawExtension{
Raw: rawInput,
Expand Down
10 changes: 5 additions & 5 deletions pkg/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ type PipelineFunction struct {
}

type PipelineStep struct {
Step string `yaml:"step" json:"step"`
Function PipelineFunction `yaml:"function" json:"function"`
Condition *string `yaml:"condition,omitempty" json:"condition,omitempty"`
Input map[string]interface{} `yaml:"input" json:"input"`
Before bool `yaml:"before" json:"before"`
Step string `yaml:"step" json:"step"`
FunctionRef PipelineFunction `yaml:"functionRef" json:"functionRef"`
Condition *string `yaml:"condition,omitempty" json:"condition,omitempty"`
Input map[string]interface{} `yaml:"input" json:"input"`
Before bool `yaml:"before" json:"before"`
}

type TagConfig struct {
Expand Down

0 comments on commit 7441b08

Please sign in to comment.