fix: serialize trigger on faas.config

This commit is contained in:
Luke K 2020-08-29 01:13:39 +09:00
parent d33fb2d694
commit 6fdbb649ba
No known key found for this signature in database
GPG Key ID: 4896F75BAF2E1966
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,7 @@ type config struct {
Namespace string `yaml:"namespace"`
Runtime string `yaml:"runtime"`
Image string `yaml:"image"`
Trigger string `yaml:"trigger"`
// Add new values to the toConfig/fromConfig functions.
}
@ -48,6 +49,7 @@ func fromConfig(c config) (f Function) {
Namespace: c.Namespace,
Runtime: c.Runtime,
Image: c.Image,
Trigger: c.Trigger,
}
}
@ -58,6 +60,7 @@ func toConfig(f Function) config {
Namespace: f.Namespace,
Runtime: f.Runtime,
Image: f.Image,
Trigger: f.Trigger,
}
}