Skip to content

Commit

Permalink
Add category to template apps. (#4539)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzjin committed Feb 27, 2024
1 parent 046bb27 commit 6d73bbf
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions controllers/app/api/v1/template_types.go
Expand Up @@ -66,6 +66,7 @@ type TemplateData struct {
Icon string `json:"icon,omitempty"`
TemplateType TemplateType `json:"templateType"`
Draft bool `json:"draft,omitempty"`
Categories []string `json:"categories,omitempty"`
Defaults Defaults `json:"defaults,omitempty"`
Inputs Inputs `json:"inputs,omitempty"`
}
Expand Down
5 changes: 5 additions & 0 deletions controllers/app/api/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions controllers/app/config/crd/bases/app.sealos.io_instances.yaml
Expand Up @@ -50,6 +50,10 @@ spec:
properties:
author:
type: string
categories:
items:
type: string
type: array
defaults:
additionalProperties:
properties:
Expand Down
4 changes: 4 additions & 0 deletions controllers/app/config/crd/bases/app.sealos.io_templates.yaml
Expand Up @@ -50,6 +50,10 @@ spec:
properties:
author:
type: string
categories:
items:
type: string
type: array
defaults:
additionalProperties:
properties:
Expand Down
8 changes: 8 additions & 0 deletions controllers/app/deploy/manifests/deploy.yaml
Expand Up @@ -169,6 +169,10 @@ spec:
properties:
author:
type: string
categories:
items:
type: string
type: array
defaults:
additionalProperties:
properties:
Expand Down Expand Up @@ -265,6 +269,10 @@ spec:
properties:
author:
type: string
categories:
items:
type: string
type: array
defaults:
additionalProperties:
properties:
Expand Down

0 comments on commit 6d73bbf

Please sign in to comment.