@@ -17,8 +17,6 @@ limitations under the License.
17
17
package config
18
18
19
19
import (
20
- "time"
21
-
22
20
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
23
21
)
24
22
@@ -135,84 +133,3 @@ type RequestedToCapacityRatioArguments struct {
135
133
Shape []UtilizationShapePoint `json:"shape"`
136
134
Resources []ResourceSpec `json:"resources,omitempty"`
137
135
}
138
-
139
- // ExtenderManagedResource describes the arguments of extended resources
140
- // managed by an extender.
141
- type ExtenderManagedResource struct {
142
- // Name is the extended resource name.
143
- Name string
144
- // IgnoredByScheduler indicates whether kube-scheduler should ignore this
145
- // resource when applying predicates.
146
- IgnoredByScheduler bool
147
- }
148
-
149
- // ExtenderTLSConfig contains settings to enable TLS with extender
150
- type ExtenderTLSConfig struct {
151
- // Server should be accessed without verifying the TLS certificate. For testing only.
152
- Insecure bool
153
- // ServerName is passed to the server for SNI and is used in the client to check server
154
- // certificates against. If ServerName is empty, the hostname used to contact the
155
- // server is used.
156
- ServerName string
157
-
158
- // Server requires TLS client certificate authentication
159
- CertFile string
160
- // Server requires TLS client certificate authentication
161
- KeyFile string
162
- // Trusted root certificates for server
163
- CAFile string
164
-
165
- // CertData holds PEM-encoded bytes (typically read from a client certificate file).
166
- // CertData takes precedence over CertFile
167
- CertData []byte
168
- // KeyData holds PEM-encoded bytes (typically read from a client certificate key file).
169
- // KeyData takes precedence over KeyFile
170
- KeyData []byte
171
- // CAData holds PEM-encoded bytes (typically read from a root certificates bundle).
172
- // CAData takes precedence over CAFile
173
- CAData []byte
174
- }
175
-
176
- // Extender holds the parameters used to communicate with the extender. If a verb is unspecified/empty,
177
- // it is assumed that the extender chose not to provide that extension.
178
- type Extender struct {
179
- // URLPrefix at which the extender is available
180
- URLPrefix string
181
- // Verb for the filter call, empty if not supported. This verb is appended to the URLPrefix when issuing the filter call to extender.
182
- FilterVerb string
183
- // Verb for the preempt call, empty if not supported. This verb is appended to the URLPrefix when issuing the preempt call to extender.
184
- PreemptVerb string
185
- // Verb for the prioritize call, empty if not supported. This verb is appended to the URLPrefix when issuing the prioritize call to extender.
186
- PrioritizeVerb string
187
- // The numeric multiplier for the node scores that the prioritize call generates.
188
- // The weight should be a positive integer
189
- Weight int64
190
- // Verb for the bind call, empty if not supported. This verb is appended to the URLPrefix when issuing the bind call to extender.
191
- // If this method is implemented by the extender, it is the extender's responsibility to bind the pod to apiserver. Only one extender
192
- // can implement this function.
193
- BindVerb string
194
- // EnableHTTPS specifies whether https should be used to communicate with the extender
195
- EnableHTTPS bool
196
- // TLSConfig specifies the transport layer security config
197
- TLSConfig * ExtenderTLSConfig
198
- // HTTPTimeout specifies the timeout duration for a call to the extender. Filter timeout fails the scheduling of the pod. Prioritize
199
- // timeout is ignored, k8s/other extenders priorities are used to select the node.
200
- HTTPTimeout time.Duration
201
- // NodeCacheCapable specifies that the extender is capable of caching node information,
202
- // so the scheduler should only send minimal information about the eligible nodes
203
- // assuming that the extender already cached full details of all nodes in the cluster
204
- NodeCacheCapable bool
205
- // ManagedResources is a list of extended resources that are managed by
206
- // this extender.
207
- // - A pod will be sent to the extender on the Filter, Prioritize and Bind
208
- // (if the extender is the binder) phases iff the pod requests at least
209
- // one of the extended resources in this list. If empty or unspecified,
210
- // all pods will be sent to this extender.
211
- // - If IgnoredByScheduler is set to true for a resource, kube-scheduler
212
- // will skip checking the resource in predicates.
213
- // +optional
214
- ManagedResources []ExtenderManagedResource
215
- // Ignorable specifies if the extender is ignorable, i.e. scheduling should not
216
- // fail when the extender returns an error or is not reachable.
217
- Ignorable bool
218
- }
0 commit comments