Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Feat: refactor hardcode example to embd.FS
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Fix: refactor doc gen for general types
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Fix: update generate format
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Fix: generate terraform reference docs
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Feat: add definition reference generate script
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Fix: refine output format
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Fix: remove dup annotation
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Fix: update doc
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Fix: add i18n support
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Feat: add translation
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Feat: add policy definition gen
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Fix: add compatibility for lable Annotation change
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Fix: add more tests
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Feat: allow mark example doc url on annotation
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
Fix: align vela show with vela def doc-gen, add vela def show equals with vela show
Signed-off-by: Jianbo Sun <jianbo.sjb@alibaba-inc.com>
* Feat: filter by source addon in `vela def list`
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Style: change header year to 2022
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Refactor: use generic filters for extensibility
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Refactor: change variable addonFilter to addonName
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test: update tests according to code changes
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Refactor: unify SearchDefinition params using filters
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test: simplify tests
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Style: remove redundant code
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test: add tests with multiple filters
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Feat: show SOURCE-ADDON column in `def list`, if any
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Feat: add addon filter to apiserver definition-lists
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Style: fix lint issues
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Chore: update swagger doc accordingly
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test: add tests for filter Applying
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Feat: add a helper function to apply filters to lists
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Style: format imports
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Feat: add OwnerAddon to DefinitionBase
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test: add tests for OwnerAddon field
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>
* Test: add addon util tests
Signed-off-by: Charlie Chiang <charlie_c_0129@outlook.com>