@@ -135,8 +135,9 @@ type ManagedBootImages struct {
135
135
// such as the resource type and the API Group of the resource. It also provides granular control via the selection field.
136
136
type MachineManager struct {
137
137
// resource is the machine management resource's type.
138
- // The only current valid value is machinesets .
138
+ // Valid values are machinesets and controlplanemachinesets .
139
139
// 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.
140
141
// +required
141
142
Resource MachineManagerMachineSetsResourceType `json:"resource"`
142
143
@@ -194,12 +195,14 @@ const (
194
195
195
196
// MachineManagerManagedResourceType is a string enum used in the MachineManager type to describe the resource
196
197
// type to be registered.
197
- // +kubebuilder:validation:Enum:="machinesets"
198
+ // +kubebuilder:validation:Enum:="machinesets";"controlplanemachinesets"
198
199
type MachineManagerMachineSetsResourceType string
199
200
200
201
const (
201
202
// MachineSets represent the MachineSet resource type, which manage a group of machines and belong to the Openshift machine API group.
202
203
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"
203
206
)
204
207
205
208
// MachineManagerManagedAPIGroupType is a string enum used in in the MachineManager type to describe the APIGroup
@@ -209,7 +212,7 @@ type MachineManagerMachineSetsAPIGroupType string
209
212
210
213
const (
211
214
// 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.
213
216
MachineAPI MachineManagerMachineSetsAPIGroupType = "machine.openshift.io"
214
217
)
215
218
0 commit comments