@crossdelta/infrastructure 0.8.6 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1240,6 +1240,7 @@ var normalizeK8sConfig = (config) => {
1240
1240
  };
1241
1241
  var DEFAULTS = {
1242
1242
  replicas: 1,
1243
+ progressDeadlineSeconds: 120,
1243
1244
  resources: {
1244
1245
  requests: { cpu: "100m", memory: "128Mi" },
1245
1246
  limits: { cpu: "500m", memory: "512Mi" }
@@ -1451,6 +1452,7 @@ var deployK8sService = (provider, namespace, config) => {
1451
1452
  },
1452
1453
  spec: {
1453
1454
  replicas,
1455
+ progressDeadlineSeconds: normalizedConfig.progressDeadlineSeconds ?? DEFAULTS.progressDeadlineSeconds,
1454
1456
  strategy: {
1455
1457
  type: "RollingUpdate",
1456
1458
  rollingUpdate: {
package/dist/index.js CHANGED
@@ -1146,6 +1146,7 @@ var normalizeK8sConfig = (config) => {
1146
1146
  };
1147
1147
  var DEFAULTS = {
1148
1148
  replicas: 1,
1149
+ progressDeadlineSeconds: 120,
1149
1150
  resources: {
1150
1151
  requests: { cpu: "100m", memory: "128Mi" },
1151
1152
  limits: { cpu: "500m", memory: "512Mi" }
@@ -1357,6 +1358,7 @@ var deployK8sService = (provider, namespace, config) => {
1357
1358
  },
1358
1359
  spec: {
1359
1360
  replicas,
1361
+ progressDeadlineSeconds: normalizedConfig.progressDeadlineSeconds ?? DEFAULTS.progressDeadlineSeconds,
1360
1362
  strategy: {
1361
1363
  type: "RollingUpdate",
1362
1364
  rollingUpdate: {
@@ -268,6 +268,11 @@ export interface K8sServiceConfig {
268
268
  /** Max unavailable pods during rollout (default: 1) */
269
269
  maxUnavailable?: number;
270
270
  };
271
+ /**
272
+ * Max seconds for a deployment to make progress before it's considered failed.
273
+ * Defaults to 120. Kubernetes default is 600.
274
+ */
275
+ progressDeadlineSeconds?: number;
271
276
  /** Volume mounts for persistent storage */
272
277
  volumes?: K8sVolumeMount[];
273
278
  /** Command to run (overrides container entrypoint) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossdelta/infrastructure",
3
- "version": "0.8.6",
3
+ "version": "0.9.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {