Skip to content

Commit 9266736

Browse files
nitin-dhevarjhadvig
authored andcommitted
CONSOLE-4055: Add "Getting started resources" console capability
1 parent 6b4a57e commit 9266736

File tree

6 files changed

+25
-18
lines changed

6 files changed

+25
-18
lines changed

openapi/generated_openapi/zz_generated.openapi.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/openapi.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25987,7 +25987,7 @@
2598725987
],
2598825988
"properties": {
2598925989
"name": {
25990-
"description": "name is the unique name of a capability. Available capabilities are LightspeedButton.",
25990+
"description": "name is the unique name of a capability. Available capabilities are LightspeedButton and GettingStartedBanner.",
2599125991
"type": "string",
2599225992
"default": ""
2599325993
},
@@ -26551,7 +26551,7 @@
2655126551
"type": "string"
2655226552
},
2655326553
"capabilities": {
26554-
"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.",
26554+
"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.",
2655526555
"type": "array",
2655626556
"items": {
2655726557
"default": {},

operator/v1/types_console.go

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ type ConsoleCapabilityName string
105105
const (
106106
// lightspeedButton is the name for the Lightspeed button HTML element.
107107
LightspeedButton ConsoleCapabilityName = "LightspeedButton"
108+
109+
// gettingStartedBanner is the name of the 'Getting started resources' banner in the console UI Overview page.
110+
GettingStartedBanner ConsoleCapabilityName = "GettingStartedBanner"
108111
)
109112

110113
// CapabilityState defines the state of the capability in the console UI.
@@ -132,8 +135,8 @@ type CapabilityVisibility struct {
132135
// Capabilities contains set of UI capabilities and their state in the console UI.
133136
type Capability struct {
134137
// name is the unique name of a capability.
135-
// Available capabilities are LightspeedButton.
136-
// +kubebuilder:validation:Enum:="LightspeedButton";
138+
// Available capabilities are LightspeedButton and GettingStartedBanner.
139+
// +kubebuilder:validation:Enum:="LightspeedButton";"GettingStartedBanner"
137140
// +kubebuilder:validation:Required
138141
Name ConsoleCapabilityName `json:"name"`
139142
// visibility defines the visibility state of the capability.
@@ -145,10 +148,10 @@ type Capability struct {
145148
type ConsoleCustomization struct {
146149
// capabilities defines an array of capabilities that can be interacted with in the console UI.
147150
// Each capability defines a visual state that can be interacted with the console to render in the UI.
148-
// Available capabilities are LightspeedButton.
151+
// Available capabilities are LightspeedButton and GettingStartedBanner.
149152
// Each of the available capabilities may appear only once in the list.
150153
// +kubebuilder:validation:MinItems=1
151-
// +kubebuilder:validation:MaxItems=1
154+
// +kubebuilder:validation:MaxItems=2
152155
// +listType=map
153156
// +listMapKey=name
154157
// +optional

operator/v1/zz_generated.crd-manifests/0000_50_console_01_consoles.crd.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,19 @@ spec:
8181
description: capabilities defines an array of capabilities that
8282
can be interacted with in the console UI. Each capability defines
8383
a visual state that can be interacted with the console to render
84-
in the UI. Available capabilities are LightspeedButton. Each
85-
of the available capabilities may appear only once in the list.
84+
in the UI. Available capabilities are LightspeedButton and GettingStartedBanner.
85+
Each of the available capabilities may appear only once in the
86+
list.
8687
items:
8788
description: Capabilities contains set of UI capabilities and
8889
their state in the console UI.
8990
properties:
9091
name:
9192
description: name is the unique name of a capability. Available
92-
capabilities are LightspeedButton.
93+
capabilities are LightspeedButton and GettingStartedBanner.
9394
enum:
9495
- LightspeedButton
96+
- GettingStartedBanner
9597
type: string
9698
visibility:
9799
description: visibility defines the visibility state of
@@ -114,7 +116,7 @@ spec:
114116
- name
115117
- visibility
116118
type: object
117-
maxItems: 1
119+
maxItems: 2
118120
minItems: 1
119121
type: array
120122
x-kubernetes-list-map-keys:

operator/v1/zz_generated.featuregated-crd-manifests/consoles.operator.openshift.io/AAA_ungated.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,17 +82,19 @@ spec:
8282
description: capabilities defines an array of capabilities that
8383
can be interacted with in the console UI. Each capability defines
8484
a visual state that can be interacted with the console to render
85-
in the UI. Available capabilities are LightspeedButton. Each
86-
of the available capabilities may appear only once in the list.
85+
in the UI. Available capabilities are LightspeedButton and GettingStartedBanner.
86+
Each of the available capabilities may appear only once in the
87+
list.
8788
items:
8889
description: Capabilities contains set of UI capabilities and
8990
their state in the console UI.
9091
properties:
9192
name:
9293
description: name is the unique name of a capability. Available
93-
capabilities are LightspeedButton.
94+
capabilities are LightspeedButton and GettingStartedBanner.
9495
enum:
9596
- LightspeedButton
97+
- GettingStartedBanner
9698
type: string
9799
visibility:
98100
description: visibility defines the visibility state of
@@ -115,7 +117,7 @@ spec:
115117
- name
116118
- visibility
117119
type: object
118-
maxItems: 1
120+
maxItems: 2
119121
minItems: 1
120122
type: array
121123
x-kubernetes-list-map-keys:

operator/v1/zz_generated.swagger_doc_generated.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)