Skip to content

Commit

Permalink
Add OOB controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Gchbg committed Apr 11, 2024
1 parent 5c02cb4 commit bc367c3
Show file tree
Hide file tree
Showing 22 changed files with 1,772 additions and 310 deletions.
14 changes: 11 additions & 3 deletions api/v1alpha1/oob_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ const (

type ConsoleProtocol struct {
Name ConsoleProtocolName `json:"name"`

Port int32 `json:"port"`
Port int32 `json:"port"`
}

type ConsoleProtocolName string
Expand Down Expand Up @@ -79,7 +78,7 @@ type OOBStatus struct {
// +optional
FirmwareVersion string `json:"firmwareVersion,omitempty"`

// +kubebuilder:validation:Enum=Ready;Unready;Error
// +kubebuilder:validation:Enum=Ready;Unready;Ignored;Error
// +optional
State OOBState `json:"state,omitempty"`

Expand All @@ -102,9 +101,18 @@ type OOBState string
const (
OOBStateReady OOBState = "Ready"
OOBStateUnready OOBState = "Unready"
OOBStateIgnored OOBState = "Ignored"
OOBStateError OOBState = "Error"
)

const (
OOBConditionTypeReady = "Ready"
OOBConditionReasonInProgress = "InProgress"
OOBConditionReasonNoEndpoint = "NoEndpoint"
OOBConditionReasonIgnored = "Ignored"
OOBConditionReasonError = "Error"
)

// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster
Expand Down
Loading

0 comments on commit bc367c3

Please sign in to comment.