mirror of https://github.com/knative/func.git
fix: serialize trigger on faas.config
This commit is contained in:
parent
d33fb2d694
commit
6fdbb649ba
|
@ -18,6 +18,7 @@ type config struct {
|
||||||
Namespace string `yaml:"namespace"`
|
Namespace string `yaml:"namespace"`
|
||||||
Runtime string `yaml:"runtime"`
|
Runtime string `yaml:"runtime"`
|
||||||
Image string `yaml:"image"`
|
Image string `yaml:"image"`
|
||||||
|
Trigger string `yaml:"trigger"`
|
||||||
// Add new values to the toConfig/fromConfig functions.
|
// Add new values to the toConfig/fromConfig functions.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,6 +49,7 @@ func fromConfig(c config) (f Function) {
|
||||||
Namespace: c.Namespace,
|
Namespace: c.Namespace,
|
||||||
Runtime: c.Runtime,
|
Runtime: c.Runtime,
|
||||||
Image: c.Image,
|
Image: c.Image,
|
||||||
|
Trigger: c.Trigger,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,6 +60,7 @@ func toConfig(f Function) config {
|
||||||
Namespace: f.Namespace,
|
Namespace: f.Namespace,
|
||||||
Runtime: f.Runtime,
|
Runtime: f.Runtime,
|
||||||
Image: f.Image,
|
Image: f.Image,
|
||||||
|
Trigger: f.Trigger,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue