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
2 changes: 2 additions & 0 deletions api/v1alpha1/scalityuicomponent_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ type ScalityUIComponentStatus struct {
Kind string `json:"kind,omitempty"`
// Version represents the version of the UI component
Version string `json:"version,omitempty"`
// LastFetchedImage tracks which image we last fetched configuration from
LastFetchedImage string `json:"lastFetchedImage,omitempty"`
// Conditions represent the latest available observations of a UI component's state
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
Expand Down
4 changes: 4 additions & 0 deletions config/crd/bases/ui.scality.com_scalityuicomponents.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1120,6 +1120,10 @@ spec:
kind:
description: Kind represents the type of UI component
type: string
lastFetchedImage:
description: LastFetchedImage tracks which image we last fetched configuration
from
type: string
publicPath:
description: Path represents the URL path to the UI component
type: string
Expand Down
9 changes: 9 additions & 0 deletions internal/controller/scalityuicomponent/constants.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package scalityuicomponent

const (
// DefaultServicePort is the default port used to connect to the UI component service
DefaultServicePort = 80

// ForceRefreshAnnotation is the annotation key to trigger a force refresh of the configuration
ForceRefreshAnnotation = "ui.scality.com/force-refresh"
)
Loading
Loading