Skip to content

Commit 902f351

Browse files
committed
remove boot image update featuregates
1 parent f595753 commit 902f351

19 files changed

Lines changed: 775 additions & 1396 deletions

features.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,7 @@
104104
| InsightsOnDemandDataGather| <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
105105
| KMSv1| <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
106106
| MachineConfigNodes| <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
107-
| ManagedBootImages| <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
108-
| ManagedBootImagesAWS| <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
109-
| ManagedBootImagesAzure| <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
110107
| ManagedBootImagesCPMS| <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
111-
| ManagedBootImagesvSphere| <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
112108
| MetricsCollectionProfiles| <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
113109
| MutableCSINodeAllocatableCount| <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |
114110
| OpenShiftPodSecurityAdmission| <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> | <span style="background-color: #519450">Enabled</span> |

features/features.go

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -312,38 +312,6 @@ var (
312312
enable(inTechPreviewNoUpgrade(), inDevPreviewNoUpgrade()).
313313
mustRegister()
314314

315-
FeatureGateManagedBootImages = newFeatureGate("ManagedBootImages").
316-
reportProblemsToJiraComponent("MachineConfigOperator").
317-
contactPerson("djoshy").
318-
productScope(ocpSpecific).
319-
enhancementPR(legacyFeatureGateWithoutEnhancement).
320-
enable(inDefault(), inOKD(), inTechPreviewNoUpgrade(), inDevPreviewNoUpgrade()).
321-
mustRegister()
322-
323-
FeatureGateManagedBootImagesAWS = newFeatureGate("ManagedBootImagesAWS").
324-
reportProblemsToJiraComponent("MachineConfigOperator").
325-
contactPerson("djoshy").
326-
productScope(ocpSpecific).
327-
enhancementPR(legacyFeatureGateWithoutEnhancement).
328-
enable(inDefault(), inOKD(), inTechPreviewNoUpgrade(), inDevPreviewNoUpgrade()).
329-
mustRegister()
330-
331-
FeatureGateManagedBootImagesvSphere = newFeatureGate("ManagedBootImagesvSphere").
332-
reportProblemsToJiraComponent("MachineConfigOperator").
333-
contactPerson("rsaini").
334-
productScope(ocpSpecific).
335-
enhancementPR("https://github.com/openshift/enhancements/pull/1496").
336-
enable(inDefault(), inOKD(), inTechPreviewNoUpgrade(), inDevPreviewNoUpgrade()).
337-
mustRegister()
338-
339-
FeatureGateManagedBootImagesAzure = newFeatureGate("ManagedBootImagesAzure").
340-
reportProblemsToJiraComponent("MachineConfigOperator").
341-
contactPerson("djoshy").
342-
productScope(ocpSpecific).
343-
enhancementPR("https://github.com/openshift/enhancements/pull/1761").
344-
enable(inDefault(), inOKD(), inTechPreviewNoUpgrade(), inDevPreviewNoUpgrade()).
345-
mustRegister()
346-
347315
FeatureGateManagedBootImagesCPMS = newFeatureGate("ManagedBootImagesCPMS").
348316
reportProblemsToJiraComponent("MachineConfigOperator").
349317
contactPerson("djoshy").

operator/v1/tests/machineconfigurations.operator.openshift.io/ManagedBootImages.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if we don't have this
22
name: "MachineConfiguration"
33
crdName: machineconfigurations.operator.openshift.io
4-
featureGates:
5-
- ManagedBootImages
64
tests:
75
onCreate:
86
- name: Should be able to create a minimal MachineConfiguration

operator/v1/tests/machineconfigurations.operator.openshift.io/ManagedBootImages+ManagedBootImagesCPMS.yaml renamed to operator/v1/tests/machineconfigurations.operator.openshift.io/ManagedBootImagesCPMS.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ apiVersion: apiextensions.k8s.io/v1 # Hack because controller-gen complains if w
22
name: "MachineConfiguration"
33
crdName: machineconfigurations.operator.openshift.io
44
featureGates:
5-
- ManagedBootImages
65
- ManagedBootImagesCPMS
76
tests:
87
onCreate:

operator/v1/types_machineconfiguration.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ type MachineConfigurationSpec struct {
4747
// and the platform is left to choose a reasonable default, which is subject to change over time.
4848
// The default for each machine manager mode is All for GCP and AWS platforms, and None for all
4949
// other platforms.
50-
// +openshift:enable:FeatureGate=ManagedBootImages
5150
// +optional
5251
ManagedBootImages ManagedBootImages `json:"managedBootImages"`
5352

@@ -288,7 +287,6 @@ type MachineConfigurationStatus struct {
288287

289288
// managedBootImagesStatus reflects what the latest cluster-validated boot image configuration is
290289
// and will be used by Machine Config Controller while performing boot image updates.
291-
// +openshift:enable:FeatureGate=ManagedBootImages
292290
// +optional
293291
ManagedBootImagesStatus ManagedBootImages `json:"managedBootImagesStatus"`
294292

@@ -367,7 +365,7 @@ type ManagedBootImages struct {
367365

368366
// MachineManager describes a target machine resource that is registered for boot image updates. It stores identifying information
369367
// such as the resource type and the API Group of the resource. It also provides granular control via the selection field.
370-
// +openshift:validation:FeatureGateAwareXValidation:requiredFeatureGate=ManagedBootImages;ManagedBootImagesCPMS,rule="self.resource != 'controlplanemachinesets' || self.selection.mode == 'All' || self.selection.mode == 'None'", message="Only All or None selection mode is permitted for ControlPlaneMachineSets"
368+
// +openshift:validation:FeatureGateAwareXValidation:requiredFeatureGate=ManagedBootImagesCPMS,rule="self.resource != 'controlplanemachinesets' || self.selection.mode == 'All' || self.selection.mode == 'None'", message="Only All or None selection mode is permitted for ControlPlaneMachineSets"
371369
type MachineManager struct {
372370
// resource is the machine management resource's type.
373371
// Valid values are machinesets and controlplanemachinesets.
@@ -431,8 +429,8 @@ const (
431429

432430
// MachineManagerManagedResourceType is a string enum used in the MachineManager type to describe the resource
433431
// type to be registered.
434-
// +openshift:validation:FeatureGateAwareEnum:requiredFeatureGate=ManagedBootImages,enum=machinesets
435-
// +openshift:validation:FeatureGateAwareEnum:requiredFeatureGate=ManagedBootImages;ManagedBootImagesCPMS,enum=machinesets;controlplanemachinesets
432+
// +kubebuilder:validation:Enum:="machinesets"
433+
// +openshift:validation:FeatureGateAwareEnum:requiredFeatureGate=ManagedBootImagesCPMS,enum=machinesets;controlplanemachinesets
436434
type MachineManagerMachineSetsResourceType string
437435

438436
const (

operator/v1/zz_generated.featuregated-crd-manifests.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,7 @@ machineconfigurations.operator.openshift.io:
305305
FeatureGates:
306306
- BootImageSkewEnforcement
307307
- IrreconcilableMachineConfig
308-
- ManagedBootImages
309-
- ManagedBootImages+ManagedBootImagesCPMS
308+
- ManagedBootImagesCPMS
310309
FilenameOperatorName: machine-config
311310
FilenameOperatorOrdering: "01"
312311
FilenameRunLevel: "0000_80"

0 commit comments

Comments
 (0)