Skip to content

Commit e8b0484

Browse files
committed
add CPMS type to MachineConfiguration API
1 parent 138fe6b commit e8b0484

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

operator/v1/types_machineconfiguration.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,9 @@ type ManagedBootImages struct {
135135
// such as the resource type and the API Group of the resource. It also provides granular control via the selection field.
136136
type MachineManager struct {
137137
// resource is the machine management resource's type.
138-
// The only current valid value is machinesets.
138+
// Valid values are machinesets and controlplanemachinesets.
139139
// machinesets means that the machine manager will only register resources of the kind MachineSet.
140+
// controlplanemachinesets means that the machine manager will only register resources of the kind ControlPlaneMachineSet.
140141
// +required
141142
Resource MachineManagerMachineSetsResourceType `json:"resource"`
142143

@@ -194,12 +195,14 @@ const (
194195

195196
// MachineManagerManagedResourceType is a string enum used in the MachineManager type to describe the resource
196197
// type to be registered.
197-
// +kubebuilder:validation:Enum:="machinesets"
198+
// +kubebuilder:validation:Enum:="machinesets";"controlplanemachinesets"
198199
type MachineManagerMachineSetsResourceType string
199200

200201
const (
201202
// MachineSets represent the MachineSet resource type, which manage a group of machines and belong to the Openshift machine API group.
202203
MachineSets MachineManagerMachineSetsResourceType = "machinesets"
204+
// ControlPlaneMachineSets represent the ControlPlaneMachineSets resource type, which manage a group of control-plane machines and belong to the Openshift machine API group.
205+
ControlPlaneMachineSets MachineManagerMachineSetsResourceType = "controlplanemachinesets"
203206
)
204207

205208
// MachineManagerManagedAPIGroupType is a string enum used in in the MachineManager type to describe the APIGroup
@@ -209,7 +212,7 @@ type MachineManagerMachineSetsAPIGroupType string
209212

210213
const (
211214
// MachineAPI represent the traditional MAPI Group that a machineset may belong to.
212-
// This feature only supports MAPI machinesets at this time.
215+
// This feature only supports MAPI machinesets and controlplanemachinesets at this time.
213216
MachineAPI MachineManagerMachineSetsAPIGroupType = "machine.openshift.io"
214217
)
215218

0 commit comments

Comments
 (0)