@catladder/cli 0.0.0-fix-error-sql-db-delete-a719775a → 0.0.0-fix-error-sql-db-delete-b3878c2e

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/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "node": ">=12.0.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@catladder/pipeline": "0.0.0-fix-error-sql-db-delete-a719775a",
27
+ "@catladder/pipeline": "0.0.0-fix-error-sql-db-delete-b3878c2e",
28
28
  "@kubernetes/client-node": "^0.16.2",
29
29
  "@tsconfig/node14": "^1.0.1",
30
30
  "@types/common-tags": "^1.8.0",
@@ -57,6 +57,6 @@
57
57
  "typescript": "^4.5.4",
58
58
  "vorpal": "^1.12.0"
59
59
  },
60
- "version": "0.0.0-fix-error-sql-db-delete-a719775a",
60
+ "version": "0.0.0-fix-error-sql-db-delete-b3878c2e",
61
61
  "stableVersion": "0.0.0"
62
62
  }
@@ -60,35 +60,14 @@ export default async (vorpal: Vorpal) =>
60
60
  );
61
61
  this.log("");
62
62
 
63
- // legacy, some projects have the cloudsqlProxyCredentials in the secrets
64
- // actually it works without, if the current local shell user has access to the db through google cloud
65
- const cloudsqlProxyCredentials = await getGitlabVar(
66
- this,
67
- env,
68
- componentName,
69
- "cloudsqlProxyCredentials"
70
- );
71
-
72
- await withFile(async ({ path: tmpFilePath }) => {
73
- if (cloudsqlProxyCredentials) {
74
- await writeFile(tmpFilePath, cloudsqlProxyCredentials);
63
+ await spawn(
64
+ "cloud_sql_proxy",
65
+ ["-instances", `${instanceName}=tcp:${localPort}`],
66
+ {
67
+ stdio: "inherit",
68
+ shell: true,
75
69
  }
76
-
77
- await spawn(
78
- "cloud_sql_proxy",
79
- [
80
- "-instances",
81
- `${instanceName}=tcp:${localPort}`,
82
- ...(cloudsqlProxyCredentials
83
- ? ["-credential_file", tmpFilePath]
84
- : []),
85
- ],
86
- {
87
- stdio: "inherit",
88
- shell: true,
89
- }
90
- );
91
- });
70
+ );
92
71
  });
93
72
 
94
73
  const getProxyInfoForKubernetes = async (