refactor: rename custom components from shannon-* to hightower-*

Renames API server, worker jobs, credentials secret, and workspaces
PVC to use the hightower prefix. Upstream Shannon names (namespace,
Temporal service, package imports, .shannon/ dir) are unchanged.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-20 09:09:34 -04:00
parent ec4b7e674f
commit 7b16bf98f7
14 changed files with 42 additions and 30 deletions
+1 -1
View File
@@ -33,6 +33,6 @@ export function loadConfig(): Config {
k8sNamespace: process.env.K8S_NAMESPACE || 'shannon',
workerImage,
workspacesDir: process.env.WORKSPACES_DIR || '/app/workspaces',
credentialsSecretName: process.env.CREDENTIALS_SECRET_NAME || 'shannon-credentials',
credentialsSecretName: process.env.CREDENTIALS_SECRET_NAME || 'hightower-credentials',
};
}
+2 -2
View File
@@ -21,7 +21,7 @@ export interface JobParams {
readonly pipelineTesting?: boolean;
}
const WORKER_LABEL = 'shannon-worker';
const WORKER_LABEL = 'hightower-worker';
const REPO_MOUNT_PATH = '/repo';
export function buildJobSpec(params: JobParams): k8s.V1Job {
@@ -36,7 +36,7 @@ export function buildJobSpec(params: JobParams): k8s.V1Job {
// 2. Build volumes and mounts
const volumes: k8s.V1Volume[] = [
{ name: 'workspaces', persistentVolumeClaim: { claimName: 'shannon-workspaces' } },
{ name: 'workspaces', persistentVolumeClaim: { claimName: 'hightower-workspaces' } },
{ name: 'shm', emptyDir: { medium: 'Memory', sizeLimit: '2Gi' } },
];
+1 -1
View File
@@ -4,7 +4,7 @@
import type * as k8s from '@kubernetes/client-node';
const WORKER_LABEL = 'shannon-worker';
const WORKER_LABEL = 'hightower-worker';
export async function createJob(batchApi: k8s.BatchV1Api, namespace: string, job: k8s.V1Job): Promise<void> {
await batchApi.createNamespacedJob({ namespace, body: job });
+2 -2
View File
@@ -26,10 +26,10 @@ export async function startScan(
): Promise<ScanResponse> {
const suffix = randomSuffix();
const taskQueue = `api-${suffix}`;
const jobName = `shannon-worker-${suffix}`;
const jobName = `hightower-worker-${suffix}`;
const workspace =
input.workspace ?? `${new URL(input.targetUrl).hostname.replace(/[^a-zA-Z0-9-]/g, '-')}_shannon-${Date.now()}`;
input.workspace ?? `${new URL(input.targetUrl).hostname.replace(/[^a-zA-Z0-9-]/g, '-')}_hightower-${Date.now()}`;
const job = buildJobSpec({
jobName,