fix: reliable source upload, build cancel, WordPress port 80 default
- Replace port-forward/netcat PVC upload with kubectl cp for integrity - Add build cancellation API and session cleanup; deploy catches cancel - Default port 80 for WordPress, PHP, and Laravel on create - Build progress modal with cancel; Helm/K8s adjustments for deployments - Update build and kubernetes specs Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -50,7 +50,6 @@ describe('buildHelmValues logic', () => {
|
||||
},
|
||||
wordpress: {
|
||||
enabled: isWordPress,
|
||||
wpContentStorageSize: '2Gi',
|
||||
},
|
||||
changeCause: `Deploy ${imageUri} at 2024-01-01T00:00:00.000Z`,
|
||||
};
|
||||
|
||||
@@ -105,6 +105,7 @@ export class KubernetesService implements OnModuleInit {
|
||||
image: imageUri,
|
||||
port: app.port,
|
||||
replicas: app.replicas,
|
||||
storageSize: app.appStorageSize || '2Gi',
|
||||
},
|
||||
resources: {
|
||||
cpuRequest: app.cpuRequest,
|
||||
@@ -141,7 +142,6 @@ export class KubernetesService implements OnModuleInit {
|
||||
},
|
||||
wordpress: {
|
||||
enabled: isWordPress,
|
||||
wpContentStorageSize: '2Gi',
|
||||
},
|
||||
redis: {
|
||||
enabled: app.enableRedis || false,
|
||||
@@ -2431,7 +2431,7 @@ export class KubernetesService implements OnModuleInit {
|
||||
const { coreApi, kc } = await this.getK8sClient(app.clusterId);
|
||||
const batchApi = kc.makeApiClient(k8s.BatchV1Api);
|
||||
const namespace = `user-${app.userId.split('-')[0]}`;
|
||||
const pvcName = `${app.name}-wp-content`;
|
||||
const pvcName = `${app.name}-storage`;
|
||||
const jobName = `${app.name}-wp-archive-${Date.now()}`;
|
||||
|
||||
const job: k8s.V1Job = {
|
||||
@@ -2563,7 +2563,7 @@ export class KubernetesService implements OnModuleInit {
|
||||
const { coreApi, kc } = await this.getK8sClient(app.clusterId);
|
||||
const batchApi = kc.makeApiClient(k8s.BatchV1Api);
|
||||
const namespace = `user-${app.userId.split('-')[0]}`;
|
||||
const pvcName = `${app.name}-wp-content`;
|
||||
const pvcName = `${app.name}-storage`;
|
||||
const jobName = `${app.name}-wp-restore-${Date.now()}`;
|
||||
const secretName = `${jobName}-archive`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user