From 82c9d7b2adb24f1edc88b1f22cc9c9ff32d4f5fa Mon Sep 17 00:00:00 2001 From: Jono Cooper Date: Wed, 10 Jan 2024 11:27:42 +1300 Subject: [PATCH] ensure jobs aren't over 63 characters --- src/waka-orchestrator/updaters/kubernetes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/waka-orchestrator/updaters/kubernetes.ts b/src/waka-orchestrator/updaters/kubernetes.ts index 3be0657..b066e79 100644 --- a/src/waka-orchestrator/updaters/kubernetes.ts +++ b/src/waka-orchestrator/updaters/kubernetes.ts @@ -35,7 +35,7 @@ class KubernetesImporter { // regex is to make it DNS-1123 compliant const jobName = `waka-importer-${prefix}-${version .replace(/[_\. ]/g, '-') - .toLowerCase()}` + .toLowerCase().slice(0, 62)}` const k8sEnvironment = Object.keys(env).map(name => ({ name,