Skip to content

Commit 6819d79

Browse files
committed
Enable DRA(DynamicResourceAllocation) by default from OCP 4.21
- DynamicResourceAllocation feature has been graduated to GA in the upstream i.e. k8s 1.34 - Removed the downstream featuregate DynamicResourceAllocation so that this is enabled by default for all the cluster types - Remove the downstream featuregate dependency from the scheduler.config's ProfileCustomizations field - make update Signed-off-by: Sai Ramesh Vanka <[email protected]>
1 parent f203425 commit 6819d79

23 files changed

+14
-271
lines changed

config/v1/types_scheduling.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ type SchedulerSpec struct {
4949
Profile SchedulerProfile `json:"profile,omitempty"`
5050
// profileCustomizations contains configuration for modifying the default behavior of existing scheduler profiles.
5151
// Deprecated: no longer needed, since DRA is GA starting with 4.21, and
52-
// is enabled by' default in the cluster, this field will be removed in 4.24.
53-
// +openshift:enable:FeatureGate=DynamicResourceAllocation
52+
// is enabled by default in the cluster, this field will be removed in 4.24.
5453
// +openshift:enable:FeatureGate=HyperShiftOnlyDynamicResourceAllocation
5554
// +optional
5655
ProfileCustomizations ProfileCustomizations `json:"profileCustomizations"`

config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_schedulers-Hypershift.crd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ spec:
111111
description: |-
112112
profileCustomizations contains configuration for modifying the default behavior of existing scheduler profiles.
113113
Deprecated: no longer needed, since DRA is GA starting with 4.21, and
114-
is enabled by' default in the cluster, this field will be removed in 4.24.
114+
is enabled by default in the cluster, this field will be removed in 4.24.
115115
properties:
116116
dynamicResourceAllocation:
117117
description: |-

config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_schedulers-SelfManagedHA-CustomNoUpgrade.crd.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ spec:
112112
description: |-
113113
profileCustomizations contains configuration for modifying the default behavior of existing scheduler profiles.
114114
Deprecated: no longer needed, since DRA is GA starting with 4.21, and
115-
is enabled by' default in the cluster, this field will be removed in 4.24.
115+
is enabled by default in the cluster, this field will be removed in 4.24.
116116
properties:
117117
dynamicResourceAllocation:
118118
description: |-

config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_schedulers-SelfManagedHA-DevPreviewNoUpgrade.crd.yaml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -108,28 +108,6 @@ spec:
108108
- HighNodeUtilization
109109
- NoScoring
110110
type: string
111-
profileCustomizations:
112-
description: |-
113-
profileCustomizations contains configuration for modifying the default behavior of existing scheduler profiles.
114-
Deprecated: no longer needed, since DRA is GA starting with 4.21, and
115-
is enabled by' default in the cluster, this field will be removed in 4.24.
116-
properties:
117-
dynamicResourceAllocation:
118-
description: |-
119-
dynamicResourceAllocation allows to enable or disable dynamic resource allocation within the scheduler.
120-
Dynamic resource allocation is an API for requesting and sharing resources between pods and containers inside a pod.
121-
Third-party resource drivers are responsible for tracking and allocating resources.
122-
Different kinds of resources support arbitrary parameters for defining requirements and initialization.
123-
Valid values are Enabled, Disabled and omitted.
124-
When omitted, this means no opinion and the platform is left to choose a reasonable default,
125-
which is subject to change over time.
126-
The current default is Disabled.
127-
enum:
128-
- ""
129-
- Enabled
130-
- Disabled
131-
type: string
132-
type: object
133111
type: object
134112
status:
135113
description: status holds observed values from the cluster. They may not

config/v1/zz_generated.crd-manifests/0000_10_config-operator_01_schedulers-SelfManagedHA-TechPreviewNoUpgrade.crd.yaml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -108,28 +108,6 @@ spec:
108108
- HighNodeUtilization
109109
- NoScoring
110110
type: string
111-
profileCustomizations:
112-
description: |-
113-
profileCustomizations contains configuration for modifying the default behavior of existing scheduler profiles.
114-
Deprecated: no longer needed, since DRA is GA starting with 4.21, and
115-
is enabled by' default in the cluster, this field will be removed in 4.24.
116-
properties:
117-
dynamicResourceAllocation:
118-
description: |-
119-
dynamicResourceAllocation allows to enable or disable dynamic resource allocation within the scheduler.
120-
Dynamic resource allocation is an API for requesting and sharing resources between pods and containers inside a pod.
121-
Third-party resource drivers are responsible for tracking and allocating resources.
122-
Different kinds of resources support arbitrary parameters for defining requirements and initialization.
123-
Valid values are Enabled, Disabled and omitted.
124-
When omitted, this means no opinion and the platform is left to choose a reasonable default,
125-
which is subject to change over time.
126-
The current default is Disabled.
127-
enum:
128-
- ""
129-
- Enabled
130-
- Disabled
131-
type: string
132-
type: object
133111
type: object
134112
status:
135113
description: status holds observed values from the cluster. They may not

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,6 @@ schedulers.config.openshift.io:
575575
Capability: ""
576576
Category: ""
577577
FeatureGates:
578-
- DynamicResourceAllocation
579578
- HyperShiftOnlyDynamicResourceAllocation
580579
FilenameOperatorName: config-operator
581580
FilenameOperatorOrdering: "01"

config/v1/zz_generated.featuregated-crd-manifests/schedulers.config.openshift.io/DynamicResourceAllocation.yaml

Lines changed: 0 additions & 145 deletions
This file was deleted.

config/v1/zz_generated.featuregated-crd-manifests/schedulers.config.openshift.io/HyperShiftOnlyDynamicResourceAllocation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ spec:
113113
description: |-
114114
profileCustomizations contains configuration for modifying the default behavior of existing scheduler profiles.
115115
Deprecated: no longer needed, since DRA is GA starting with 4.21, and
116-
is enabled by' default in the cluster, this field will be removed in 4.24.
116+
is enabled by default in the cluster, this field will be removed in 4.24.
117117
properties:
118118
dynamicResourceAllocation:
119119
description: |-

config/v1/zz_generated.swagger_doc_generated.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

features.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
| DNSNameResolver| | | <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> |
4242
| DualReplica| | | <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> |
4343
| DyanmicServiceEndpointIBMCloud| | | <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> |
44-
| DynamicResourceAllocation| | | <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> |
4544
| EtcdBackendQuota| | | <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> |
4645
| EventTTL| | | <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> |
4746
| Example| | | <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> |

0 commit comments

Comments
 (0)