Skip to content

Commit

Permalink
Add requiredFeatureSets to page outline/layout
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Mar 6, 2024
1 parent 4af218c commit 5536367
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 4 deletions.
44 changes: 44 additions & 0 deletions apis/meta/v1alpha1/openapi_generated.go

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

6 changes: 4 additions & 2 deletions apis/meta/v1alpha1/resourcelayout_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ type ResourceLayoutSpec struct {
}

type ResourcePageLayout struct {
Name string `json:"name"`
Sections []SectionLayout `json:"sections,omitempty"`
Name string `json:"name"`
// +optional
RequiredFeatureSets map[string]FeatureList `json:"requiredFeatureSets,omitempty"`
Sections []SectionLayout `json:"sections,omitempty"`
}

type SectionLayout struct {
Expand Down
6 changes: 4 additions & 2 deletions apis/meta/v1alpha1/resourceoutline_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ type ResourceOutlineSpec struct {
}

type ResourcePageOutline struct {
Name string `json:"name"`
Sections []SectionOutline `json:"sections,omitempty"`
Name string `json:"name"`
// +optional
RequiredFeatureSets map[string]FeatureList `json:"requiredFeatureSets,omitempty"`
Sections []SectionOutline `json:"sections,omitempty"`
}

type SectionOutline struct {
Expand Down
30 changes: 30 additions & 0 deletions apis/meta/v1alpha1/zz_generated.deepcopy.go

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

6 changes: 6 additions & 0 deletions crds/meta.k8s.appscode.com_resourcelayouts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,12 @@ spec:
properties:
name:
type: string
requiredFeatureSets:
additionalProperties:
items:
type: string
type: array
type: object
sections:
items:
properties:
Expand Down
6 changes: 6 additions & 0 deletions crds/meta.k8s.appscode.com_resourceoutlines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,12 @@ spec:
properties:
name:
type: string
requiredFeatureSets:
additionalProperties:
items:
type: string
type: array
type: object
sections:
items:
properties:
Expand Down

0 comments on commit 5536367

Please sign in to comment.