Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add spec for Frontend service tiles #195

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading