File tree Expand file tree Collapse file tree 4 files changed +0
-32
lines changed Expand file tree Collapse file tree 4 files changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,6 @@ const Env = z.object({
90
90
KUBERNETES_MEMORY_REQUEST_MIN_GB : z . coerce . number ( ) . min ( 0 ) . default ( 0 ) ,
91
91
KUBERNETES_MEMORY_REQUEST_RATIO : z . coerce . number ( ) . min ( 0 ) . max ( 1 ) . default ( 1 ) , // Ratio of memory limit, so 1 = 100% of memory limit
92
92
KUBERNETES_MEMORY_OVERHEAD_GB : z . coerce . number ( ) . min ( 0 ) . optional ( ) , // Optional memory overhead to add to the limit in GB
93
- KUBERNETES_TOPOLOGY_SPREAD_CONSTRAINTS : z . string ( ) . optional ( ) , // JSON string
94
93
95
94
// Placement tags settings
96
95
PLACEMENT_TAGS_ENABLED : BoolEnv . default ( false ) ,
Original file line number Diff line number Diff line change @@ -56,22 +56,6 @@ export class KubernetesWorkloadManager implements WorkloadManager {
56
56
} ;
57
57
}
58
58
59
- private parseTopologySpreadConstraints ( ) : k8s . V1TopologySpreadConstraint [ ] | null {
60
- if ( ! env . KUBERNETES_TOPOLOGY_SPREAD_CONSTRAINTS ) {
61
- return null ;
62
- }
63
-
64
- try {
65
- return JSON . parse ( env . KUBERNETES_TOPOLOGY_SPREAD_CONSTRAINTS ) ;
66
- } catch ( error ) {
67
- this . logger . error ( "[KubernetesWorkloadManager] Failed to parse topology spread constraints" , {
68
- error : error instanceof Error ? error . message : String ( error ) ,
69
- raw : env . KUBERNETES_TOPOLOGY_SPREAD_CONSTRAINTS ,
70
- } ) ;
71
- return null ;
72
- }
73
- }
74
-
75
59
private stripImageDigest ( imageRef : string ) : string {
76
60
if ( ! env . KUBERNETES_STRIP_IMAGE_DIGEST ) {
77
61
return imageRef ;
@@ -286,8 +270,6 @@ export class KubernetesWorkloadManager implements WorkloadManager {
286
270
}
287
271
288
272
get #defaultPodSpec( ) : Omit < k8s . V1PodSpec , "containers" > {
289
- const topologySpreadConstraints = this . parseTopologySpreadConstraints ( ) ;
290
-
291
273
return {
292
274
restartPolicy : "Never" ,
293
275
automountServiceAccountToken : false ,
@@ -299,7 +281,6 @@ export class KubernetesWorkloadManager implements WorkloadManager {
299
281
} ,
300
282
}
301
283
: { } ) ,
302
- ...( topologySpreadConstraints ? { topologySpreadConstraints } : { } ) ,
303
284
} ;
304
285
}
305
286
Original file line number Diff line number Diff line change @@ -184,10 +184,6 @@ spec:
184
184
value : {{ default "10Gi" .Values.supervisor.config.kubernetes.ephemeralStorageSizeLimit | quote }}
185
185
- name : KUBERNETES_EPHEMERAL_STORAGE_SIZE_REQUEST
186
186
value : {{ default "2Gi" .Values.supervisor.config.kubernetes.ephemeralStorageSizeRequest | quote }}
187
- {{- with .Values.supervisor.config.kubernetes.topologySpreadConstraints }}
188
- - name : KUBERNETES_TOPOLOGY_SPREAD_CONSTRAINTS
189
- value : {{ tpl (toYaml .) $ | toJson | quote }}
190
- {{- end }}
191
187
# Pod cleaner configuration
192
188
- name : POD_CLEANER_ENABLED
193
189
value : {{ .Values.supervisor.config.podCleaner.enabled | quote }}
@@ -276,10 +272,6 @@ spec:
276
272
tolerations :
277
273
{{- toYaml . | nindent 8 }}
278
274
{{- end }}
279
- {{- with .Values.supervisor.topologySpreadConstraints }}
280
- topologySpreadConstraints :
281
- {{- tpl (toYaml .) $ | nindent 8 }}
282
- {{- end }}
283
275
---
284
276
apiVersion : v1
285
277
kind : Service
Original file line number Diff line number Diff line change @@ -265,8 +265,6 @@ supervisor:
265
265
workerNodetypeLabel : " " # When set, runs will only be scheduled on nodes with "nodetype=<label>"
266
266
ephemeralStorageSizeLimit : " " # Default: 10Gi
267
267
ephemeralStorageSizeRequest : " " # Default: 2Gi´
268
- # Topology Spread Constraints for worker pods created by the supervisor. Evaluated as a template
269
- topologySpreadConstraints : []
270
268
podCleaner :
271
269
enabled : true
272
270
batchSize : 100
@@ -357,8 +355,6 @@ supervisor:
357
355
nodeSelector : {}
358
356
tolerations : []
359
357
affinity : {}
360
- # Topology Spread Constraints for pod assignment spread across your cluster among failure-domains. Evaluated as a template
361
- topologySpreadConstraints : []
362
358
363
359
# PostgreSQL configuration
364
360
# Subchart: https://github.com/bitnami/charts/tree/main/bitnami/postgresql
You can’t perform that action at this time.
0 commit comments