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
14 changes: 14 additions & 0 deletions console/v1/types_console_link.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ type ConsoleLinkSpec struct {
//
// +optional
ApplicationMenu *ApplicationMenuSpec `json:"applicationMenu,omitempty"`
// namespaceDashboard holds information about namespaces in which the dashboard link should
// appear, and it is applicable only when location is set to NamespaceDashboard.
// If not specified, the link will appear in all namespaces.
//
// +optional
NamespaceDashboard *NamespaceDashboardSpec `json:"namespaceDashboard,omitempty"`
}

// ApplicationMenuSpec is the specification of the desired section and icon used for the link in the application menu.
Expand All @@ -36,6 +42,12 @@ type ApplicationMenuSpec struct {
ImageURL string `json:"imageURL,omitempty"`
}

// NamespaceDashboardSpec is a specification of namespaces in which the dashboard link should appear.
type NamespaceDashboardSpec struct {
// namespaces is an array of namespace names in which the dashboard link should appear.
Namespaces []string `json:"namespaces"`
}

// ConsoleLinkLocationSelector is a set of possible menu targets to which a link may be appended.
type ConsoleLinkLocation string

Expand All @@ -46,6 +58,8 @@ const (
UserMenu ConsoleLinkLocation = "UserMenu"
// ApplicationMenu indicates that the link should appear inside the application menu of the console.
ApplicationMenu ConsoleLinkLocation = "ApplicationMenu"
// NamespaceDashboard indicates that the link should appear in the namespaced dashboard of the console.
NamespaceDashboard ConsoleLinkLocation = "NamespaceDashboard"
)

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down
26 changes: 26 additions & 0 deletions console/v1/zz_generated.deepcopy.go

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

16 changes: 13 additions & 3 deletions console/v1/zz_generated.swagger_doc_generated.go

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