@cyc-seattle/platform 0.2.1 → 0.2.2

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.
Files changed (2) hide show
  1. package/dist/workload.js +4 -0
  2. package/package.json +2 -2
package/dist/workload.js CHANGED
@@ -124,6 +124,10 @@ function deployment(parent, name, args, http) {
124
124
  const metadata = { name, namespace: platform.namespace, labels };
125
125
  const child = { parent, provider: args.provider };
126
126
  const account = serviceAccount(name, args, child);
127
+ if (http !== undefined && args.ports?.some((p) => p.name === "http")) {
128
+ // The API rejects two ports with one name, and only after the preview.
129
+ throw new Error(`${name}: "ports" can't name a port "http"; a WebService's own port has that name.`);
130
+ }
127
131
  const ports = [...(http !== undefined ? [{ name: "http", port: http }] : []), ...(args.ports ?? [])];
128
132
  new k8s.apps.v1.Deployment(name, {
129
133
  metadata,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyc-seattle/platform",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Pulumi components for CYC's shared Google Cloud platform: WebService, the platform outputs reader, and the stacks that build the platform",
5
5
  "author": "CYC Community Sailing Center",
6
6
  "license": "Apache-2.0",
@@ -57,6 +57,6 @@
57
57
  "js-yaml": "^5.4.3",
58
58
  "prettier": "^3.9.10",
59
59
  "typescript": "~5.9.3",
60
- "vitest": "^4.1.11"
60
+ "vitest": "^5.0.0"
61
61
  }
62
62
  }