Skip to content

Commit

Permalink
Add spec for Frontend service tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyperkid123 committed Oct 14, 2024
1 parent acb17bd commit 9bfaadf
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 0 deletions.
12 changes: 12 additions & 0 deletions api/v1alpha1/frontend_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ type SearchEntry struct {
IsExternal bool `json:"isExternal" yaml:"isExternal"`
}

type ServiceTile struct {
Section string `json:"section" yaml:"section"`
Group string `json:"group" yaml:"group"`
ID string `json:"id" yaml:"id"`
Href string `json:"href" yaml:"href"`
Title string `json:"title" yaml:"title"`
Icon string `json:"icon" yaml:"icon"`
IsExternal bool `json:"isExternal,omitempty" yaml:"isExternal,omitempty"`
}

// FrontendSpec defines the desired state of Frontend
type FrontendSpec struct {
Disabled bool `json:"disabled,omitempty" yaml:"disabled,omitempty"`
Expand All @@ -68,6 +78,8 @@ type FrontendSpec struct {
AkamaiCacheBustPaths []string `json:"akamaiCacheBustPaths,omitempty" yaml:"akamaiCacheBustPaths,omitempty"`
// The search index partials for the resource
SearchEntries []*SearchEntry `json:"searchEntries,omitempty" yaml:"searchEntries,omitempty"`
// Data for the all services dropdown
ServiceTiles []*ServiceTile `json:"serviceTiles,omitempty" yaml:"serviceTiles,omitempty"`
}

var ReconciliationSuccessful = "ReconciliationSuccessful"
Expand Down
26 changes: 26 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go

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

27 changes: 27 additions & 0 deletions config/crd/bases/cloud.redhat.com_frontends.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,33 @@ spec:
disabled:
type: boolean
type: object
serviceTiles:
description: Data for the all services dropdown
items:
properties:
group:
type: string
href:
type: string
icon:
type: string
id:
type: string
isExternal:
type: boolean
section:
type: string
title:
type: string
required:
- group
- href
- icon
- id
- section
- title
type: object
type: array
title:
type: string
required:
Expand Down
27 changes: 27 additions & 0 deletions deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,33 @@ objects:
disabled:
type: boolean
type: object
serviceTiles:
description: Data for the all services dropdown
items:
properties:
group:
type: string
href:
type: string
icon:
type: string
id:
type: string
isExternal:
type: boolean
section:
type: string
title:
type: string
required:
- group
- href
- icon
- id
- section
- title
type: object
type: array
title:
type: string
required:
Expand Down

0 comments on commit 9bfaadf

Please sign in to comment.