Skip to content

Commit dc69131

Browse files
committed
Remove profileCustomizations field from the scheduler api
Signed-off-by: Sai Ramesh Vanka <svanka@redhat.com>
1 parent bdcca75 commit dc69131

File tree

8 files changed

+11863
-97298
lines changed

8 files changed

+11863
-97298
lines changed

config/v1/types_scheduling.go

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ type SchedulerSpec struct {
4747
// Defaults to "LowNodeUtilization"
4848
// +optional
4949
Profile SchedulerProfile `json:"profile,omitempty"`
50-
// profileCustomizations contains configuration for modifying the default behavior of existing scheduler profiles.
51-
// +optional
52-
ProfileCustomizations ProfileCustomizations `json:"profileCustomizations"`
5350
// defaultNodeSelector helps set the cluster-wide default node selector to
5451
// restrict pod placement to specific nodes. This is applied to the pods
5552
// created in all namespaces and creates an intersection with any existing
@@ -101,30 +98,6 @@ var (
10198
NoScoring SchedulerProfile = "NoScoring"
10299
)
103100

104-
// ProfileCustomizations contains various parameters for modifying the default behavior of certain profiles
105-
type ProfileCustomizations struct {
106-
// dynamicResourceAllocation allows to enable or disable dynamic resource allocation within the scheduler.
107-
// Dynamic resource allocation is an API for requesting and sharing resources between pods and containers inside a pod.
108-
// Third-party resource drivers are responsible for tracking and allocating resources.
109-
// Different kinds of resources support arbitrary parameters for defining requirements and initialization.
110-
// Valid values are Enabled, Disabled and omitted.
111-
// When omitted, this means no opinion and the platform is left to choose a reasonable default,
112-
// which is subject to change over time.
113-
// The current default is Disabled.
114-
// +optional
115-
DynamicResourceAllocation DRAEnablement `json:"dynamicResourceAllocation"`
116-
}
117-
118-
// +kubebuilder:validation:Enum:="";"Enabled";"Disabled"
119-
type DRAEnablement string
120-
121-
var (
122-
// DRAEnablementEnabled enables dynamic resource allocation feature
123-
DRAEnablementEnabled DRAEnablement = "Enabled"
124-
// DRAEnablementDisabled disables dynamic resource allocation feature
125-
DRAEnablementDisabled DRAEnablement = "Disabled"
126-
)
127-
128101
type SchedulerStatus struct {
129102
}
130103

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

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

config/v1/zz_generated.deepcopy.go

Lines changed: 0 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -109,26 +109,6 @@ spec:
109109
- HighNodeUtilization
110110
- NoScoring
111111
type: string
112-
profileCustomizations:
113-
description: profileCustomizations contains configuration for modifying
114-
the default behavior of existing scheduler profiles.
115-
properties:
116-
dynamicResourceAllocation:
117-
description: |-
118-
dynamicResourceAllocation allows to enable or disable dynamic resource allocation within the scheduler.
119-
Dynamic resource allocation is an API for requesting and sharing resources between pods and containers inside a pod.
120-
Third-party resource drivers are responsible for tracking and allocating resources.
121-
Different kinds of resources support arbitrary parameters for defining requirements and initialization.
122-
Valid values are Enabled, Disabled and omitted.
123-
When omitted, this means no opinion and the platform is left to choose a reasonable default,
124-
which is subject to change over time.
125-
The current default is Disabled.
126-
enum:
127-
- ""
128-
- Enabled
129-
- Disabled
130-
type: string
131-
type: object
132112
type: object
133113
status:
134114
description: status holds observed values from the cluster. They may not

config/v1/zz_generated.swagger_doc_generated.go

Lines changed: 4 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)