@catladder/pipeline 1.166.0 → 1.167.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.
@@ -0,0 +1,11 @@
1
+ import { createYamlLocalPipeline } from "./__utils__/helpers";
2
+ import config from "./cloud-run-http2";
3
+
4
+ /**
5
+ * This test is auto-generated.
6
+ * Modifications will be overwritten on every `yarn test` run!
7
+ */
8
+
9
+ it("matches snapshot for cloud-run-http2 local pipeline YAML", async () => {
10
+ expect(await createYamlLocalPipeline(config)).toMatchSnapshot();
11
+ });
@@ -0,0 +1,29 @@
1
+ import type { Config } from "../src";
2
+
3
+ const config: Config = {
4
+ appName: "test-app",
5
+ customerName: "pan",
6
+ components: {
7
+ api: {
8
+ dir: "api",
9
+ build: {
10
+ type: "node",
11
+ },
12
+ deploy: {
13
+ type: "google-cloudrun",
14
+ projectId: "google-project-id",
15
+ region: "europe-west6",
16
+
17
+ service: {
18
+ http2: true,
19
+ },
20
+ },
21
+ },
22
+ },
23
+ };
24
+
25
+ export default config;
26
+
27
+ export const information = {
28
+ title: "Cloud Run: with http2 setting",
29
+ };
package/package.json CHANGED
@@ -53,7 +53,7 @@
53
53
  }
54
54
  ],
55
55
  "license": "MIT",
56
- "version": "1.166.0",
56
+ "version": "1.167.0",
57
57
  "scripts": {
58
58
  "build:tsc": "yarn tsc",
59
59
  "build": "yarn build:compile && yarn build:inline-variables && yarn build:bundle",
@@ -15,6 +15,7 @@ export const getYarnCache = (
15
15
  return [
16
16
  {
17
17
  scope: componentIsInWorkspace ? "global" : "buildDir",
18
+ pathMode: componentIsInWorkspace ? "absolute" : "relative",
18
19
  key: "yarn",
19
20
  policy,
20
21
  paths: [".yarn"],
@@ -52,6 +52,7 @@ export const getServiceDeployScript = (
52
52
  timeout: customConfig?.timeout,
53
53
  "vpc-connector": customConfig?.vpcConnector,
54
54
  "vpc-egress": customConfig?.vpcEgress,
55
+ "use-http2": customConfig?.http2,
55
56
  "allow-unauthenticated": customConfig?.allowUnauthenticated ?? true,
56
57
  ingress: customConfig?.ingress ?? "all",
57
58
  "cpu-boost": true,
@@ -166,6 +166,17 @@ export type DeployConfigCloudRunService = {
166
166
  * vpc egress, see https://cloud.google.com/sdk/gcloud/reference/run/deploy#--vpc-egress
167
167
  */
168
168
  vpcEgress?: "all-traffic" | "private-ranges-only";
169
+
170
+ /**
171
+ * Use http2 end-to-end. See https://cloud.google.com/run/docs/configuring/http2
172
+ *
173
+ * Defaults to false.
174
+ *
175
+ * Your service needs to be able to handle http2 requests.
176
+ * Its recommended to use http2 without tls, since cloud run handles the encryption for you. (so called "h2c" (http2 cleartext))
177
+ *
178
+ */
179
+ http2?: boolean;
169
180
  } & DeployConfigCloudRunWithVolumes;
170
181
 
171
182
  export type DeployConfigCloudRunJobBase = {