Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into rhcloud-33912-updat…
Browse files Browse the repository at this point in the history
…e-crd-spec-to-match-chrome-service
  • Loading branch information
florkbr committed Oct 14, 2024
2 parents 5e81b35 + dfc0d44 commit efad664
Show file tree
Hide file tree
Showing 4 changed files with 188 additions and 0 deletions.
23 changes: 23 additions & 0 deletions api/v1alpha1/frontend_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,25 @@ type ServiceMonitorConfig struct {
Disabled bool `json:"disabled,omitempty"`
}

type SearchEntry struct {
ID string `json:"id" yaml:"id"`
Href string `json:"href" yaml:"href"`
Title string `json:"title" yaml:"title"`
Description string `json:"description" yaml:"description"`
AltTitle []string `json:"alt_title" yaml:"alt_title"`
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 @@ -57,6 +76,10 @@ type FrontendSpec struct {
AkamaiCacheBustDisable bool `json:"akamaiCacheBustDisable,omitempty" yaml:"akamaiCacheBustDisable,omitempty"`
// Files to cache bust
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
57 changes: 57 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.

54 changes: 54 additions & 0 deletions config/crd/bases/cloud.redhat.com_frontends.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -304,13 +304,67 @@ spec:
- title
type: object
type: array
searchEntries:
description: The search index partials for the resource
items:
properties:
alt_title:
items:
type: string
type: array
description:
type: string
href:
type: string
id:
type: string
isExternal:
type: boolean
title:
type: string
required:
- alt_title
- description
- href
- id
- isExternal
- title
type: object
type: array
service:
type: string
serviceMonitor:
properties:
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
54 changes: 54 additions & 0 deletions deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -751,13 +751,67 @@ objects:
- title
type: object
type: array
searchEntries:
description: The search index partials for the resource
items:
properties:
alt_title:
items:
type: string
type: array
description:
type: string
href:
type: string
id:
type: string
isExternal:
type: boolean
title:
type: string
required:
- alt_title
- description
- href
- id
- isExternal
- title
type: object
type: array
service:
type: string
serviceMonitor:
properties:
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 efad664

Please sign in to comment.