@catladder/cli 0.0.0-jdbc-064ed4e2 → 0.0.0-jdbc-e0855190

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.
@@ -40059,7 +40059,7 @@ exports.readConfigSync = readConfigSync;
40059
40059
 
40060
40060
  exports.__esModule = true;
40061
40061
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
40062
- exports.PIPELINE_IMAGE_TAG = "jdbc-064ed4e2" || 0;
40062
+ exports.PIPELINE_IMAGE_TAG = "jdbc-e0855190" || 0;
40063
40063
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
40064
40064
 
40065
40065
  /***/ }),
@@ -41745,13 +41745,12 @@ var getCloudSqlVariables = function (_a) {
41745
41745
 
41746
41746
  if (deployConfigRaw && deployConfigRaw.cloudSql) {
41747
41747
  var DB_NAME = [(_b = deployConfigRaw.cloudSql.dbNamePrefix) !== null && _b !== void 0 ? _b : "".concat(fullConfig.customerName, "-").concat(fullConfig.appName), environmentSlug].filter(Boolean).join("-");
41748
- var hostAndDb = "localhost/$DB_NAME?host=/cloudsql/$CLOUD_SQL_INSTANCE_CONNECTION_NAME";
41749
41748
  return {
41750
41749
  CLOUD_SQL_INSTANCE_CONNECTION_NAME: deployConfigRaw.cloudSql.instanceConnectionName,
41751
41750
  DB_NAME: DB_NAME,
41752
41751
  DB_USER: "postgres",
41753
41752
  DB_PASSWORD: "$" + (0, context_1.getSecretVarName)(env, componentName, "DB_PASSWORD"),
41754
- DATABASE_URL: "postgresql://$DB_USER:$DB_PASSWORD@".concat(hostAndDb),
41753
+ DATABASE_URL: "postgresql://$DB_USER:$DB_PASSWORD@localhost/$DB_NAME?host=/cloudsql/$CLOUD_SQL_INSTANCE_CONNECTION_NAME",
41755
41754
  DATABASE_JDBC_URL: "jdbc:postgresql:///$DB_NAME?cloudSqlInstance=$CLOUD_SQL_INSTANCE_CONNECTION_NAME&socketFactory=com.google.cloud.sql.postgres.SocketFactory&user=$DB_USER&password=$DB_PASSWORD"
41756
41755
  };
41757
41756
  }
@@ -42112,8 +42111,6 @@ var kubernetes_1 = __nccwpck_require__(5682);
42112
42111
 
42113
42112
  __exportStar(__nccwpck_require__(1344), exports);
42114
42113
 
42115
- __exportStar(__nccwpck_require__(1925), exports);
42116
-
42117
42114
  __exportStar(__nccwpck_require__(5682), exports);
42118
42115
 
42119
42116
  __exportStar(__nccwpck_require__(3109), exports);
@@ -42176,7 +42173,9 @@ exports.additionalKubernetesSecretKeys = additionalKubernetesSecretKeys;
42176
42173
 
42177
42174
 
42178
42175
  exports.__esModule = true;
42179
- exports.getKubernetesCloudSQLConfig = exports.hasKubernetesCloudSQL = void 0;
42176
+ exports.createCloudsqlBaseConfig = exports.getKubernetesCloudSQLConfig = exports.hasKubernetesCloudSQL = void 0;
42177
+
42178
+ var context_1 = __nccwpck_require__(2041);
42180
42179
 
42181
42180
  var types_1 = __nccwpck_require__(3109);
42182
42181
 
@@ -42204,23 +42203,10 @@ var getKubernetesCloudSQLConfig = function (context) {
42204
42203
 
42205
42204
  exports.getKubernetesCloudSQLConfig = getKubernetesCloudSQLConfig;
42206
42205
 
42207
- /***/ }),
42208
-
42209
- /***/ 395:
42210
- /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
42211
-
42212
- "use strict";
42213
-
42214
-
42215
- exports.__esModule = true;
42216
- exports.createCloudsqlBaseConfig = void 0;
42217
-
42218
- var __1 = __nccwpck_require__(5355);
42219
-
42220
42206
  var createCloudsqlBaseConfig = function (context) {
42221
42207
  return {
42222
42208
  cloudsql: {
42223
- proxyCredentials: "$".concat((0, __1.getSecretVarNameForContext)(context, "cloudsqlProxyCredentials"))
42209
+ proxyCredentials: "$".concat((0, context_1.getSecretVarNameForContext)(context, "cloudsqlProxyCredentials"))
42224
42210
  }
42225
42211
  };
42226
42212
  };
@@ -42369,6 +42355,23 @@ exports.createKubernetesDeployJobs = createKubernetesDeployJobs;
42369
42355
  "use strict";
42370
42356
 
42371
42357
 
42358
+ var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
42359
+ if (k2 === undefined) k2 = k;
42360
+ Object.defineProperty(o, k2, {
42361
+ enumerable: true,
42362
+ get: function () {
42363
+ return m[k];
42364
+ }
42365
+ });
42366
+ } : function (o, m, k, k2) {
42367
+ if (k2 === undefined) k2 = k;
42368
+ o[k2] = m[k];
42369
+ });
42370
+
42371
+ var __exportStar = this && this.__exportStar || function (m, exports) {
42372
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
42373
+ };
42374
+
42372
42375
  var __importDefault = this && this.__importDefault || function (mod) {
42373
42376
  return mod && mod.__esModule ? mod : {
42374
42377
  "default": mod
@@ -42386,6 +42389,8 @@ var additionalSecretKeys_1 = __nccwpck_require__(5775);
42386
42389
 
42387
42390
  var deployJob_1 = __nccwpck_require__(9792);
42388
42391
 
42392
+ __exportStar(__nccwpck_require__(1925), exports);
42393
+
42389
42394
  exports.KUBERNETES_DEPLOY_TYPE = {
42390
42395
  jobs: deployJob_1.createKubernetesDeployJobs,
42391
42396
  defaults: function () {
@@ -42542,11 +42547,9 @@ var lodash_1 = __nccwpck_require__(3255);
42542
42547
 
42543
42548
  var utils_1 = __nccwpck_require__(7461);
42544
42549
 
42545
- var cloudSql_1 = __nccwpck_require__(1925);
42546
-
42547
42550
  var types_1 = __nccwpck_require__(3109);
42548
42551
 
42549
- var cloudsql_1 = __nccwpck_require__(395);
42552
+ var cloudSql_1 = __nccwpck_require__(1925);
42550
42553
 
42551
42554
  var kubeEnv_1 = __nccwpck_require__(9449);
42552
42555
 
@@ -42612,7 +42615,7 @@ var createKubeValues = function (context) {
42612
42615
  var defaultKubeValues = (0, lodash_1.merge)({
42613
42616
  env: env,
42614
42617
  application: createAppConfig(context, application)
42615
- }, (0, cloudSql_1.hasKubernetesCloudSQL)(context) ? (0, cloudsql_1.createCloudsqlBaseConfig)(context) : {}, ((_b = (_a = deployConfig.values) === null || _a === void 0 ? void 0 : _a.mongodb) === null || _b === void 0 ? void 0 : _b.enabled) ? (0, mongodb_1.createMongodbBaseConfig)(context) : {});
42618
+ }, (0, cloudSql_1.hasKubernetesCloudSQL)(context) ? (0, cloudSql_1.createCloudsqlBaseConfig)(context) : {}, ((_b = (_a = deployConfig.values) === null || _a === void 0 ? void 0 : _a.mongodb) === null || _b === void 0 ? void 0 : _b.enabled) ? (0, mongodb_1.createMongodbBaseConfig)(context) : {});
42616
42619
  var kubeValues = (0, processSecretsAsFiles_1.processSecretsAsFiles)((0, utils_1.mergeWithMergingArrays)(defaultKubeValues, rest));
42617
42620
  return kubeValues;
42618
42621
  };
@@ -351005,7 +351005,7 @@ exports.readConfigSync = readConfigSync;
351005
351005
 
351006
351006
  exports.__esModule = true;
351007
351007
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
351008
- exports.PIPELINE_IMAGE_TAG = "jdbc-064ed4e2" || 0;
351008
+ exports.PIPELINE_IMAGE_TAG = "jdbc-e0855190" || 0;
351009
351009
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
351010
351010
 
351011
351011
  /***/ }),
@@ -352691,13 +352691,12 @@ var getCloudSqlVariables = function (_a) {
352691
352691
 
352692
352692
  if (deployConfigRaw && deployConfigRaw.cloudSql) {
352693
352693
  var DB_NAME = [(_b = deployConfigRaw.cloudSql.dbNamePrefix) !== null && _b !== void 0 ? _b : "".concat(fullConfig.customerName, "-").concat(fullConfig.appName), environmentSlug].filter(Boolean).join("-");
352694
- var hostAndDb = "localhost/$DB_NAME?host=/cloudsql/$CLOUD_SQL_INSTANCE_CONNECTION_NAME";
352695
352694
  return {
352696
352695
  CLOUD_SQL_INSTANCE_CONNECTION_NAME: deployConfigRaw.cloudSql.instanceConnectionName,
352697
352696
  DB_NAME: DB_NAME,
352698
352697
  DB_USER: "postgres",
352699
352698
  DB_PASSWORD: "$" + (0, context_1.getSecretVarName)(env, componentName, "DB_PASSWORD"),
352700
- DATABASE_URL: "postgresql://$DB_USER:$DB_PASSWORD@".concat(hostAndDb),
352699
+ DATABASE_URL: "postgresql://$DB_USER:$DB_PASSWORD@localhost/$DB_NAME?host=/cloudsql/$CLOUD_SQL_INSTANCE_CONNECTION_NAME",
352701
352700
  DATABASE_JDBC_URL: "jdbc:postgresql:///$DB_NAME?cloudSqlInstance=$CLOUD_SQL_INSTANCE_CONNECTION_NAME&socketFactory=com.google.cloud.sql.postgres.SocketFactory&user=$DB_USER&password=$DB_PASSWORD"
352702
352701
  };
352703
352702
  }
@@ -353058,8 +353057,6 @@ var kubernetes_1 = __nccwpck_require__(95682);
353058
353057
 
353059
353058
  __exportStar(__nccwpck_require__(81344), exports);
353060
353059
 
353061
- __exportStar(__nccwpck_require__(11925), exports);
353062
-
353063
353060
  __exportStar(__nccwpck_require__(95682), exports);
353064
353061
 
353065
353062
  __exportStar(__nccwpck_require__(63109), exports);
@@ -353122,7 +353119,9 @@ exports.additionalKubernetesSecretKeys = additionalKubernetesSecretKeys;
353122
353119
 
353123
353120
 
353124
353121
  exports.__esModule = true;
353125
- exports.getKubernetesCloudSQLConfig = exports.hasKubernetesCloudSQL = void 0;
353122
+ exports.createCloudsqlBaseConfig = exports.getKubernetesCloudSQLConfig = exports.hasKubernetesCloudSQL = void 0;
353123
+
353124
+ var context_1 = __nccwpck_require__(22041);
353126
353125
 
353127
353126
  var types_1 = __nccwpck_require__(63109);
353128
353127
 
@@ -353150,23 +353149,10 @@ var getKubernetesCloudSQLConfig = function (context) {
353150
353149
 
353151
353150
  exports.getKubernetesCloudSQLConfig = getKubernetesCloudSQLConfig;
353152
353151
 
353153
- /***/ }),
353154
-
353155
- /***/ 395:
353156
- /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
353157
-
353158
- "use strict";
353159
-
353160
-
353161
- exports.__esModule = true;
353162
- exports.createCloudsqlBaseConfig = void 0;
353163
-
353164
- var __1 = __nccwpck_require__(25355);
353165
-
353166
353152
  var createCloudsqlBaseConfig = function (context) {
353167
353153
  return {
353168
353154
  cloudsql: {
353169
- proxyCredentials: "$".concat((0, __1.getSecretVarNameForContext)(context, "cloudsqlProxyCredentials"))
353155
+ proxyCredentials: "$".concat((0, context_1.getSecretVarNameForContext)(context, "cloudsqlProxyCredentials"))
353170
353156
  }
353171
353157
  };
353172
353158
  };
@@ -353315,6 +353301,23 @@ exports.createKubernetesDeployJobs = createKubernetesDeployJobs;
353315
353301
  "use strict";
353316
353302
 
353317
353303
 
353304
+ var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
353305
+ if (k2 === undefined) k2 = k;
353306
+ Object.defineProperty(o, k2, {
353307
+ enumerable: true,
353308
+ get: function () {
353309
+ return m[k];
353310
+ }
353311
+ });
353312
+ } : function (o, m, k, k2) {
353313
+ if (k2 === undefined) k2 = k;
353314
+ o[k2] = m[k];
353315
+ });
353316
+
353317
+ var __exportStar = this && this.__exportStar || function (m, exports) {
353318
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
353319
+ };
353320
+
353318
353321
  var __importDefault = this && this.__importDefault || function (mod) {
353319
353322
  return mod && mod.__esModule ? mod : {
353320
353323
  "default": mod
@@ -353332,6 +353335,8 @@ var additionalSecretKeys_1 = __nccwpck_require__(75775);
353332
353335
 
353333
353336
  var deployJob_1 = __nccwpck_require__(9792);
353334
353337
 
353338
+ __exportStar(__nccwpck_require__(11925), exports);
353339
+
353335
353340
  exports.KUBERNETES_DEPLOY_TYPE = {
353336
353341
  jobs: deployJob_1.createKubernetesDeployJobs,
353337
353342
  defaults: function () {
@@ -353488,11 +353493,9 @@ var lodash_1 = __nccwpck_require__(23255);
353488
353493
 
353489
353494
  var utils_1 = __nccwpck_require__(37461);
353490
353495
 
353491
- var cloudSql_1 = __nccwpck_require__(11925);
353492
-
353493
353496
  var types_1 = __nccwpck_require__(63109);
353494
353497
 
353495
- var cloudsql_1 = __nccwpck_require__(395);
353498
+ var cloudSql_1 = __nccwpck_require__(11925);
353496
353499
 
353497
353500
  var kubeEnv_1 = __nccwpck_require__(19449);
353498
353501
 
@@ -353558,7 +353561,7 @@ var createKubeValues = function (context) {
353558
353561
  var defaultKubeValues = (0, lodash_1.merge)({
353559
353562
  env: env,
353560
353563
  application: createAppConfig(context, application)
353561
- }, (0, cloudSql_1.hasKubernetesCloudSQL)(context) ? (0, cloudsql_1.createCloudsqlBaseConfig)(context) : {}, ((_b = (_a = deployConfig.values) === null || _a === void 0 ? void 0 : _a.mongodb) === null || _b === void 0 ? void 0 : _b.enabled) ? (0, mongodb_1.createMongodbBaseConfig)(context) : {});
353564
+ }, (0, cloudSql_1.hasKubernetesCloudSQL)(context) ? (0, cloudSql_1.createCloudsqlBaseConfig)(context) : {}, ((_b = (_a = deployConfig.values) === null || _a === void 0 ? void 0 : _a.mongodb) === null || _b === void 0 ? void 0 : _b.enabled) ? (0, mongodb_1.createMongodbBaseConfig)(context) : {});
353562
353565
  var kubeValues = (0, processSecretsAsFiles_1.processSecretsAsFiles)((0, utils_1.mergeWithMergingArrays)(defaultKubeValues, rest));
353563
353566
  return kubeValues;
353564
353567
  };