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 17, 2024
1 parent 5c02cb4 commit 9d4a5df
Show file tree
Hide file tree
Showing 24 changed files with 2,267 additions and 379 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ linters:
- errcheck
- exportloopref
- goconst
- gocyclo
- gofmt
- goimports
- gosimple
Expand Down
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 9d4a5df

Please sign in to comment.