Skip to content

Commit

Permalink
Update app menu types. (labring#4735)
Browse files Browse the repository at this point in the history
* Update app menu types.

Signed-off-by: zzjin <[email protected]>

* rebase code.

Signed-off-by: zzjin <[email protected]>

* Fix typo.

Signed-off-by: zzjin <[email protected]>

---------

Signed-off-by: zzjin <[email protected]>
  • Loading branch information
zzjin committed May 14, 2024
1 parent 4b80930 commit a7c1d9d
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 40 deletions.
9 changes: 4 additions & 5 deletions controllers/app/api/v1/app_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ type Data struct {
}

type MenuData struct {
NameColor string `json:"nameColor,omitempty"`
HelpDropDown bool `json:"helpDropDown,omitempty"`
HelpDocs string `json:"helpDocs,omitempty"`
Name string `json:"name,omitempty"`
Link string `json:"link,omitempty"`
}

type DisplayType string
Expand All @@ -50,8 +49,8 @@ type AppMeta struct {
//+kubebuilder:validation:Optional
DisplayType DisplayType `json:"displayType,omitempty"`

Data Data `json:"data,omitempty"`
MenuData MenuData `json:"menuData,omitempty"`
Data Data `json:"data,omitempty"`
MenuData []MenuData `json:"menuData,omitempty"`
}

// AppSpec defines the desired state of App
Expand Down
10 changes: 7 additions & 3 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.

32 changes: 16 additions & 16 deletions controllers/app/config/crd/bases/app.sealos.io_apps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ spec:
icon:
type: string
menuData:
properties:
helpDocs:
type: string
helpDropDown:
type: boolean
nameColor:
type: string
type: object
items:
properties:
link:
type: string
name:
type: string
type: object
type: array
name:
type: string
type:
Expand All @@ -98,14 +98,14 @@ spec:
icon:
type: string
menuData:
properties:
helpDocs:
type: string
helpDropDown:
type: boolean
nameColor:
type: string
type: object
items:
properties:
link:
type: string
name:
type: string
type: object
type: array
name:
type: string
type:
Expand Down
32 changes: 16 additions & 16 deletions controllers/app/deploy/manifests/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ spec:
icon:
type: string
menuData:
properties:
helpDocs:
type: string
helpDropDown:
type: boolean
nameColor:
type: string
type: object
items:
properties:
link:
type: string
name:
type: string
type: object
type: array
name:
type: string
type:
Expand All @@ -110,14 +110,14 @@ spec:
icon:
type: string
menuData:
properties:
helpDocs:
type: string
helpDropDown:
type: boolean
nameColor:
type: string
type: object
items:
properties:
link:
type: string
name:
type: string
type: object
type: array
name:
type: string
type:
Expand Down

0 comments on commit a7c1d9d

Please sign in to comment.