Skip to content

Commit 6fdbb64

Browse files
committed
fix: serialize trigger on faas.config
1 parent d33fb2d commit 6fdbb64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config.go

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ type config struct {
1818
Namespace string `yaml:"namespace"`
1919
Runtime string `yaml:"runtime"`
2020
Image string `yaml:"image"`
21+
Trigger string `yaml:"trigger"`
2122
// Add new values to the toConfig/fromConfig functions.
2223
}
2324

@@ -48,6 +49,7 @@ func fromConfig(c config) (f Function) {
4849
Namespace: c.Namespace,
4950
Runtime: c.Runtime,
5051
Image: c.Image,
52+
Trigger: c.Trigger,
5153
}
5254
}
5355

@@ -58,6 +60,7 @@ func toConfig(f Function) config {
5860
Namespace: f.Namespace,
5961
Runtime: f.Runtime,
6062
Image: f.Image,
63+
Trigger: f.Trigger,
6164
}
6265
}
6366

0 commit comments

Comments
 (0)