Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix OpenAPI generator #37

Merged
merged 1 commit into from
Apr 17, 2024
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
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