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
8 changes: 8 additions & 0 deletions api/v1/hypervisor_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ type HypervisorSpec struct {
// +kubebuilder:default:=true
// InstallCertificate is used to enable the installations of the certificates via kvm-node-agent.
InstallCertificate bool `json:"installCertificate"`

// +kubebuilder:optional
// +kubebuilder:validation:Enum:="";manual;auto;ha
// Maintenance indicates whether the hypervisor is in maintenance mode.
Maintenance string `json:"maintenance,omitempty"`
}

type Instance struct {
Expand Down Expand Up @@ -184,6 +189,9 @@ type HypervisorStatus struct {
// InternalIP is the internal IP address of the hypervisor.
InternalIP string `json:"internalIp,omitempty"`

// Evicted indicates whether the hypervisor is evicted. (no instances left with active maintenance mode)
Evicted bool `json:"evicted,omitempty"`

// Represents the Hypervisor node conditions.
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`

Expand Down
9 changes: 9 additions & 0 deletions applyconfigurations/api/v1/hypervisorspec.go

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

9 changes: 9 additions & 0 deletions applyconfigurations/api/v1/hypervisorstatus.go

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

13 changes: 13 additions & 0 deletions charts/openstack-hypervisor-operator/crds/hypervisor-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,15 @@ spec:
description: LifecycleEnabled enables the lifecycle management of
the hypervisor via hypervisor-operator.
type: boolean
maintenance:
description: Maintenance indicates whether the hypervisor is in maintenance
mode.
enum:
- ""
- manual
- auto
- ha
type: string
reboot:
default: false
description: Reboot request an reboot after successful installation
Expand Down Expand Up @@ -251,6 +260,10 @@ spec:
- type
type: object
type: array
evicted:
description: Evicted indicates whether the hypervisor is evicted.
(no instances left with active maintenance mode)
type: boolean
hypervisorId:
description: HypervisorID is the unique identifier of the hypervisor
in OpenStack.
Expand Down
13 changes: 13 additions & 0 deletions config/crd/bases/kvm.cloud.sap_hypervisors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,15 @@ spec:
description: LifecycleEnabled enables the lifecycle management of
the hypervisor via hypervisor-operator.
type: boolean
maintenance:
description: Maintenance indicates whether the hypervisor is in maintenance
mode.
enum:
- ""
- manual
- auto
- ha
type: string
reboot:
default: false
description: Reboot request an reboot after successful installation
Expand Down Expand Up @@ -252,6 +261,10 @@ spec:
- type
type: object
type: array
evicted:
description: Evicted indicates whether the hypervisor is evicted.
(no instances left with active maintenance mode)
type: boolean
hypervisorId:
description: HypervisorID is the unique identifier of the hypervisor
in OpenStack.
Expand Down
Loading