You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -185,6 +185,7 @@ _Appears in:_
185
185
|`conditions`_[Condition](https://kubernetes.io/docs/reference/generated/kubernetes-api/v/#condition-v1-meta) array_| conditions defines the status conditions array || Optional: \{\} <br /> |
186
186
|`selector`_string_| selector is the label selector for pods. || Optional: \{\} <br /> |
187
187
|`podIPs`_string array_| podIPs are the IP addresses of the underlying pod.<br />A pod may have multiple IPs in dual-stack clusters. || Optional: \{\} <br /> |
188
+
|`nodeName`_string_| nodeName is the name of the node where the underlying pod is scheduled. || Optional: \{\} <br /> |
188
189
189
190
190
191
#### ShutdownPolicy
@@ -220,6 +221,23 @@ Package v1beta1 contains API Schema definitions for the agents v1beta1 API group
220
221
221
222
222
223
224
+
#### AdoptionStrategyType
225
+
226
+
_Underlying type:__string_
227
+
228
+
AdoptionStrategyType defines the strategy used to pick a Sandbox from a Warm Pool.
229
+
230
+
231
+
232
+
_Appears in:_
233
+
-[SandboxTemplateSpec](#sandboxtemplatespec)
234
+
235
+
| Field | Description |
236
+
| --- | --- |
237
+
|`OldestReady`| AdoptionStrategyOldestReady selects the oldest ready Sandbox first.<br />If no ready sandboxes are available, it falls back to oldest matching sandboxes.<br /> |
238
+
|`NodeSpread`| AdoptionStrategyNodeSpread spreads adopted Sandboxes across different nodes to prevent resource contention.<br />It prioritizes ready sandboxes first, then selects from the node with the fewest active sandboxes,<br />and uses creation timestamp as a tie-breaker among candidates with the same readiness and occupancy.<br /> |
239
+
240
+
223
241
#### EnvVar
224
242
225
243
@@ -438,6 +456,7 @@ _Appears in:_
438
456
|`networkPolicyManagement`_[NetworkPolicyManagement](#networkpolicymanagement)_| networkPolicyManagement defines whether the controller manages the NetworkPolicy.<br />Valid values are "Managed" (default) or "Unmanaged". | Managed | Enum: [Managed Unmanaged] <br />Optional: \{\} <br /> |
439
457
|`envVarsInjectionPolicy`_[EnvVarsInjectionPolicy](#envvarsinjectionpolicy)_| envVarsInjectionPolicy allows a SandboxClaim to inject or override environment variables defined in the template.<br />If set to Disallowed, the SandboxClaim will be rejected if it specifies any environment variables. | Disallowed | Enum: [Allowed Overrides Disallowed] <br />Optional: \{\} <br /> |
440
458
|`service`_boolean_| service controls whether the controller should automatically create a<br />headless Service for Sandboxes created from this template.<br />When unset, the controller preserves existing Services for backward<br />compatibility but does not create new ones. Set to true to enable or false<br />to explicitly disable and remove the Service. || Optional: \{\} <br /> |
459
+
|`adoptionStrategy`_[AdoptionStrategyType](#adoptionstrategytype)_| adoptionStrategy defines the strategy used to pick a Sandbox from a Warm Pool during adoption.<br />"OldestReady" selects the oldest ready Sandbox first.<br />"NodeSpread" selects a Sandbox to maximize spread across nodes (preferring ready sandboxes first, then fewest active workloads, then creation-time tie breakers). | OldestReady | Enum: [OldestReady NodeSpread] <br />Optional: \{\} <br /> |
Copy file name to clipboardExpand all lines: extensions/api/v1beta1/sandboxtemplate_types.go
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -136,8 +136,30 @@ type SandboxTemplateSpec struct {
136
136
//nolint:nobools // Enum not used to avoid duplicating the Service API; field is not expected to extend (issue #746).
137
137
// +optional
138
138
Service*bool`json:"service,omitempty"`
139
+
140
+
// adoptionStrategy defines the strategy used to pick a Sandbox from a Warm Pool during adoption.
141
+
// "OldestReady" selects the oldest ready Sandbox first.
142
+
// "NodeSpread" selects a Sandbox to maximize spread across nodes (preferring ready sandboxes first, then fewest active workloads, then creation-time tie breakers).
0 commit comments