Skip to content
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
4 changes: 2 additions & 2 deletions openapi/generated_openapi/zz_generated.openapi.go

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

4 changes: 2 additions & 2 deletions openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -25987,7 +25987,7 @@
],
"properties": {
"name": {
"description": "name is the unique name of a capability. Available capabilities are LightspeedButton.",
"description": "name is the unique name of a capability. Available capabilities are LightspeedButton and GettingStartedBanner.",
"type": "string",
"default": ""
},
Expand Down Expand Up @@ -26551,7 +26551,7 @@
"type": "string"
},
"capabilities": {
"description": "capabilities defines an array of capabilities that can be interacted with in the console UI. Each capability defines a visual state that can be interacted with the console to render in the UI. Available capabilities are LightspeedButton. Each of the available capabilities may appear only once in the list.",
"description": "capabilities defines an array of capabilities that can be interacted with in the console UI. Each capability defines a visual state that can be interacted with the console to render in the UI. Available capabilities are LightspeedButton and GettingStartedBanner. Each of the available capabilities may appear only once in the list.",
"type": "array",
"items": {
"default": {},
Expand Down
11 changes: 7 additions & 4 deletions operator/v1/types_console.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ type ConsoleCapabilityName string
const (
// lightspeedButton is the name for the Lightspeed button HTML element.
LightspeedButton ConsoleCapabilityName = "LightspeedButton"

// gettingStartedBanner is the name of the 'Getting started resources' banner in the console UI Overview page.
GettingStartedBanner ConsoleCapabilityName = "GettingStartedBanner"
)

// CapabilityState defines the state of the capability in the console UI.
Expand Down Expand Up @@ -132,8 +135,8 @@ type CapabilityVisibility struct {
// Capabilities contains set of UI capabilities and their state in the console UI.
type Capability struct {
// name is the unique name of a capability.
// Available capabilities are LightspeedButton.
// +kubebuilder:validation:Enum:="LightspeedButton";
// Available capabilities are LightspeedButton and GettingStartedBanner.
// +kubebuilder:validation:Enum:="LightspeedButton";"GettingStartedBanner"
// +kubebuilder:validation:Required
Name ConsoleCapabilityName `json:"name"`
// visibility defines the visibility state of the capability.
Expand All @@ -145,10 +148,10 @@ type Capability struct {
type ConsoleCustomization struct {
// capabilities defines an array of capabilities that can be interacted with in the console UI.
// Each capability defines a visual state that can be interacted with the console to render in the UI.
// Available capabilities are LightspeedButton.
// Available capabilities are LightspeedButton and GettingStartedBanner.
// Each of the available capabilities may appear only once in the list.
// +kubebuilder:validation:MinItems=1
// +kubebuilder:validation:MaxItems=1
// +kubebuilder:validation:MaxItems=2
// +listType=map
// +listMapKey=name
// +optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,19 @@ spec:
description: capabilities defines an array of capabilities that
can be interacted with in the console UI. Each capability defines
a visual state that can be interacted with the console to render
in the UI. Available capabilities are LightspeedButton. Each
of the available capabilities may appear only once in the list.
in the UI. Available capabilities are LightspeedButton and GettingStartedBanner.
Each of the available capabilities may appear only once in the
list.
items:
description: Capabilities contains set of UI capabilities and
their state in the console UI.
properties:
name:
description: name is the unique name of a capability. Available
capabilities are LightspeedButton.
capabilities are LightspeedButton and GettingStartedBanner.
enum:
- LightspeedButton
- GettingStartedBanner
type: string
visibility:
description: visibility defines the visibility state of
Expand All @@ -114,7 +116,7 @@ spec:
- name
- visibility
type: object
maxItems: 1
maxItems: 2
minItems: 1
type: array
x-kubernetes-list-map-keys:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,19 @@ spec:
description: capabilities defines an array of capabilities that
can be interacted with in the console UI. Each capability defines
a visual state that can be interacted with the console to render
in the UI. Available capabilities are LightspeedButton. Each
of the available capabilities may appear only once in the list.
in the UI. Available capabilities are LightspeedButton and GettingStartedBanner.
Each of the available capabilities may appear only once in the
list.
items:
description: Capabilities contains set of UI capabilities and
their state in the console UI.
properties:
name:
description: name is the unique name of a capability. Available
capabilities are LightspeedButton.
capabilities are LightspeedButton and GettingStartedBanner.
enum:
- LightspeedButton
- GettingStartedBanner
type: string
visibility:
description: visibility defines the visibility state of
Expand All @@ -115,7 +117,7 @@ spec:
- name
- visibility
type: object
maxItems: 1
maxItems: 2
minItems: 1
type: array
x-kubernetes-list-map-keys:
Expand Down
4 changes: 2 additions & 2 deletions operator/v1/zz_generated.swagger_doc_generated.go

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