This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit e053701e6a8bd499a9b2a1c4f1366988298fb9c1 Author: Andrea Cosentino <[email protected]> AuthorDate: Thu May 27 07:19:40 2021 +0200 Added support level to docs generator --- script/generator/generator.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/script/generator/generator.go b/script/generator/generator.go index 1fefed3..b2953f3 100644 --- a/script/generator/generator.go +++ b/script/generator/generator.go @@ -86,6 +86,10 @@ func produceDoc(k camel.Kamelet, out string, image string) { content += fmt.Sprintf("*Provided by: %q*\n", prov) content += "\n" } + if supportLevel, ok := k.Annotations["camel.apache.org/kamelet.support.level"]; ok { + content += fmt.Sprintf("*Support Level for this Kamelet is: %q*\n", supportLevel) + content += "\n" + } content += k.Spec.Definition.Description + "\n" content += "\n" content += "== Configuration Options\n"
