Skip to content

Commit

Permalink
Merge pull request #247 from Hyperkid123/minor-updates
Browse files Browse the repository at this point in the history
Add permissions attribute to Frontend attributes
  • Loading branch information
Hyperkid123 authored Jan 23, 2025
2 parents f6bf2c4 + 0bd8174 commit 27630b2
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 18 deletions.
34 changes: 18 additions & 16 deletions api/v1alpha1/frontend_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,27 @@ type ServiceMonitorConfig struct {
}

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,omitempty" yaml:"alt_title,omitempty"`
IsExternal bool `json:"isExternal,omitempty" yaml:"isExternal,omitempty"`
FrontendRef string `json:"frontendRef,omitempty" yaml:"frontendRef,omitempty"`
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,omitempty" yaml:"alt_title,omitempty"`
IsExternal bool `json:"isExternal,omitempty" yaml:"isExternal,omitempty"`
FrontendRef string `json:"frontendRef,omitempty" yaml:"frontendRef,omitempty"`
Permissions []Permission `json:"permissions,omitempty" yaml:"permissions,omitempty"`
}

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"`
Description string `json:"description" yaml:"description"`
Icon string `json:"icon" yaml:"icon"`
IsExternal bool `json:"isExternal,omitempty" yaml:"isExternal,omitempty"`
FrontendRef string `json:"frontendRef,omitempty" yaml:"frontendRef,omitempty"`
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"`
Description string `json:"description" yaml:"description"`
Icon string `json:"icon" yaml:"icon"`
IsExternal bool `json:"isExternal,omitempty" yaml:"isExternal,omitempty"`
FrontendRef string `json:"frontendRef,omitempty" yaml:"frontendRef,omitempty"`
Permissions []Permission `json:"permissions,omitempty" yaml:"permissions,omitempty"`
}

type WidgetHeaderLink struct {
Expand Down
20 changes: 18 additions & 2 deletions api/v1alpha1/zz_generated.deepcopy.go

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

30 changes: 30 additions & 0 deletions config/crd/bases/cloud.redhat.com_frontends.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,21 @@ spec:
type: string
isExternal:
type: boolean
permissions:
items:
properties:
apps:
items:
type: string
type: array
args:
x-kubernetes-preserve-unknown-fields: true
method:
type: string
required:
- method
type: object
type: array
title:
type: string
required:
Expand Down Expand Up @@ -536,6 +551,21 @@ spec:
type: string
isExternal:
type: boolean
permissions:
items:
properties:
apps:
items:
type: string
type: array
args:
x-kubernetes-preserve-unknown-fields: true
method:
type: string
required:
- method
type: object
type: array
section:
type: string
title:
Expand Down
30 changes: 30 additions & 0 deletions deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,21 @@ objects:
type: string
isExternal:
type: boolean
permissions:
items:
properties:
apps:
items:
type: string
type: array
args:
x-kubernetes-preserve-unknown-fields: true
method:
type: string
required:
- method
type: object
type: array
title:
type: string
required:
Expand Down Expand Up @@ -991,6 +1006,21 @@ objects:
type: string
isExternal:
type: boolean
permissions:
items:
properties:
apps:
items:
type: string
type: array
args:
x-kubernetes-preserve-unknown-fields: true
method:
type: string
required:
- method
type: object
type: array
section:
type: string
title:
Expand Down

0 comments on commit 27630b2

Please sign in to comment.