We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55f41a2 commit 3c93783Copy full SHA for 3c93783
1 file changed
apps/supervisor/src/workloadManager/kubernetes.ts
@@ -228,9 +228,13 @@ export class KubernetesWorkloadManager implements WorkloadManager {
228
restartPolicy: "Never",
229
automountServiceAccountToken: false,
230
imagePullSecrets: this.getImagePullSecrets(),
231
- nodeSelector: {
232
- nodetype: env.KUBERNETES_WORKER_NODETYPE_LABEL,
233
- },
+ ...(env.KUBERNETES_WORKER_NODETYPE_LABEL
+ ? {
+ nodeSelector: {
234
+ nodetype: env.KUBERNETES_WORKER_NODETYPE_LABEL,
235
+ },
236
+ }
237
+ : {}),
238
};
239
}
240
0 commit comments