@catladder/cli 0.0.0-main-93b724a8 → 0.0.0-main-8462e63f

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.
@@ -40845,7 +40845,7 @@ exports.readConfigSync = readConfigSync;
40845
40845
 
40846
40846
  exports.__esModule = true;
40847
40847
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
40848
- exports.PIPELINE_IMAGE_TAG = "main-93b724a8" || 0;
40848
+ exports.PIPELINE_IMAGE_TAG = "main-8462e63f" || 0;
40849
40849
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
40850
40850
 
40851
40851
  /***/ }),
@@ -43281,12 +43281,12 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
43281
43281
  exports.__esModule = true;
43282
43282
  exports.createKubernetesDeployJobs = void 0;
43283
43283
  var js_yaml_1 = __nccwpck_require__(3618);
43284
- var __1 = __nccwpck_require__(5355);
43285
43284
  var runner_1 = __nccwpck_require__(5071);
43286
43285
  var base_1 = __nccwpck_require__(2866);
43287
43286
  var sbom_1 = __nccwpck_require__(5928);
43288
43287
  var types_1 = __nccwpck_require__(3109);
43289
43288
  var kubeValues_1 = __nccwpck_require__(1061);
43289
+ var getEnvironmentVariables_1 = __nccwpck_require__(6602);
43290
43290
  var createKubernetesDeployJobs = function (context) {
43291
43291
  var _a, _b, _c;
43292
43292
  var deployConfig = context.componentConfig.deploy;
@@ -43316,7 +43316,7 @@ var createKubernetesDeployJobs = function (context) {
43316
43316
  })
43317
43317
  };
43318
43318
  var clusterName = "kube-".concat(context.environment.fullName);
43319
- var connectContext = ["kubectl config set-cluster \"".concat(clusterName, "\" --server=\"$").concat((0, __1.getSecretVarNameForContext)(context, "KUBE_URL"), "\" --certificate-authority <(echo $").concat((0, __1.getSecretVarNameForContext)(context, "KUBE_CA_PEM"), " | base64 -d) --embed-certs=true"), "kubectl config set-credentials \"".concat(clusterName, "\" --token=\"$").concat((0, __1.getSecretVarNameForContext)(context, "KUBE_TOKEN"), "\""), "kubectl config set-context \"".concat(clusterName, "\" --cluster=\"").concat(clusterName, "\" --user=\"").concat(clusterName, "\" --namespace=\"").concat(context.environment.envVars.KUBE_NAMESPACE, "\""), "kubectl config use-context \"".concat(clusterName, "\"")];
43319
+ var connectContext = ["kubectl config set-cluster \"".concat(clusterName, "\" --server=\"$").concat((0, getEnvironmentVariables_1.getSecretVarNameForContext)(context, "KUBE_URL"), "\" --certificate-authority <(echo $").concat((0, getEnvironmentVariables_1.getSecretVarNameForContext)(context, "KUBE_CA_PEM"), " | base64 -d) --embed-certs=true"), "kubectl config set-credentials \"".concat(clusterName, "\" --token=\"$").concat((0, getEnvironmentVariables_1.getSecretVarNameForContext)(context, "KUBE_TOKEN"), "\""), "kubectl config set-context \"".concat(clusterName, "\" --cluster=\"").concat(clusterName, "\" --user=\"").concat(clusterName, "\" --namespace=\"").concat(context.environment.envVars.KUBE_NAMESPACE, "\""), "kubectl config use-context \"".concat(clusterName, "\"")];
43320
43320
  return (0, base_1.createDeployementJobs)(context, {
43321
43321
  deploy: __assign(__assign({}, shared), {
43322
43322
  script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read(connectContext), false), ["kubernetesCreateSecret", "kubernetesDeploy"], false), __read((0, sbom_1.getDependencyTrackUploadScript)(context)), false), ["echo deployment successful 😻"], false)
@@ -43629,9 +43629,10 @@ var __assign = this && this.__assign || function () {
43629
43629
  exports.__esModule = true;
43630
43630
  exports.createMongodbBaseConfig = void 0;
43631
43631
  var lodash_1 = __nccwpck_require__(3255);
43632
- var __1 = __nccwpck_require__(5355);
43632
+ var getEnvironmentVariables_1 = __nccwpck_require__(6602);
43633
+ var types_1 = __nccwpck_require__(3109);
43633
43634
  var getCredentialString = function (context) {
43634
- return "root:$".concat((0, __1.getSecretVarNameForContext)(context, "MONGODB_ROOT_PASSWORD"), "@");
43635
+ return "root:$".concat((0, getEnvironmentVariables_1.getSecretVarNameForContext)(context, "MONGODB_ROOT_PASSWORD"), "@");
43635
43636
  };
43636
43637
  var getMongodbHost = function (context, name) {
43637
43638
  var namespace = context.environment.envVars.KUBE_NAMESPACE;
@@ -43647,7 +43648,7 @@ var getMongodbReplicasetHost = function (context, index) {
43647
43648
  };
43648
43649
  var createMongodbUrl = function (context, dbName) {
43649
43650
  var _a, _b;
43650
- if (!(0, __1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
43651
+ if (!(0, types_1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
43651
43652
  throw new Error("can only createMongodbUrl on supported deploys");
43652
43653
  }
43653
43654
  var mongodbConfig = (_a = context.componentConfig.deploy.values) === null || _a === void 0 ? void 0 : _a.mongodb;
@@ -43666,7 +43667,7 @@ var createMongodbUrl = function (context, dbName) {
43666
43667
  };
43667
43668
  var createMongoBackupDefaultConfig = function (context) {
43668
43669
  var _a;
43669
- if (!(0, __1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
43670
+ if (!(0, types_1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
43670
43671
  throw new Error("can only create mongodb base config on supported deploys");
43671
43672
  }
43672
43673
  var mongodbConfig = (_a = context.componentConfig.deploy.values) === null || _a === void 0 ? void 0 : _a.mongodb;
@@ -43695,7 +43696,7 @@ var createMongoBackupDefaultConfig = function (context) {
43695
43696
  };
43696
43697
  var createMongodbBaseConfig = function (context) {
43697
43698
  var _a, _b;
43698
- if (!(0, __1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
43699
+ if (!(0, types_1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
43699
43700
  throw new Error("can only create mongodb base config on supported deploys");
43700
43701
  }
43701
43702
  var mongodbConfig = (_a = context.componentConfig.deploy.values) === null || _a === void 0 ? void 0 : _a.mongodb;
@@ -43704,8 +43705,8 @@ var createMongodbBaseConfig = function (context) {
43704
43705
  enabled: true,
43705
43706
  auth: {
43706
43707
  enabled: true,
43707
- rootPassword: "$" + (0, __1.getSecretVarNameForContext)(context, "MONGODB_ROOT_PASSWORD"),
43708
- replicaSetKey: "$" + (0, __1.getSecretVarNameForContext)(context, "MONGODB_REPLICASET_KEY")
43708
+ rootPassword: "$" + (0, getEnvironmentVariables_1.getSecretVarNameForContext)(context, "MONGODB_ROOT_PASSWORD"),
43709
+ replicaSetKey: "$" + (0, getEnvironmentVariables_1.getSecretVarNameForContext)(context, "MONGODB_REPLICASET_KEY")
43709
43710
  },
43710
43711
  persistence: {
43711
43712
  storageClass: "standard-rwo"
@@ -354964,7 +354964,7 @@ exports.readConfigSync = readConfigSync;
354964
354964
 
354965
354965
  exports.__esModule = true;
354966
354966
  exports.DOCKER_REGISTRY = exports.PIPELINE_IMAGE_TAG = void 0;
354967
- exports.PIPELINE_IMAGE_TAG = "main-93b724a8" || 0;
354967
+ exports.PIPELINE_IMAGE_TAG = "main-8462e63f" || 0;
354968
354968
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
354969
354969
 
354970
354970
  /***/ }),
@@ -357400,12 +357400,12 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
357400
357400
  exports.__esModule = true;
357401
357401
  exports.createKubernetesDeployJobs = void 0;
357402
357402
  var js_yaml_1 = __nccwpck_require__(3618);
357403
- var __1 = __nccwpck_require__(25355);
357404
357403
  var runner_1 = __nccwpck_require__(55071);
357405
357404
  var base_1 = __nccwpck_require__(82866);
357406
357405
  var sbom_1 = __nccwpck_require__(65928);
357407
357406
  var types_1 = __nccwpck_require__(63109);
357408
357407
  var kubeValues_1 = __nccwpck_require__(1061);
357408
+ var getEnvironmentVariables_1 = __nccwpck_require__(76602);
357409
357409
  var createKubernetesDeployJobs = function (context) {
357410
357410
  var _a, _b, _c;
357411
357411
  var deployConfig = context.componentConfig.deploy;
@@ -357435,7 +357435,7 @@ var createKubernetesDeployJobs = function (context) {
357435
357435
  })
357436
357436
  };
357437
357437
  var clusterName = "kube-".concat(context.environment.fullName);
357438
- var connectContext = ["kubectl config set-cluster \"".concat(clusterName, "\" --server=\"$").concat((0, __1.getSecretVarNameForContext)(context, "KUBE_URL"), "\" --certificate-authority <(echo $").concat((0, __1.getSecretVarNameForContext)(context, "KUBE_CA_PEM"), " | base64 -d) --embed-certs=true"), "kubectl config set-credentials \"".concat(clusterName, "\" --token=\"$").concat((0, __1.getSecretVarNameForContext)(context, "KUBE_TOKEN"), "\""), "kubectl config set-context \"".concat(clusterName, "\" --cluster=\"").concat(clusterName, "\" --user=\"").concat(clusterName, "\" --namespace=\"").concat(context.environment.envVars.KUBE_NAMESPACE, "\""), "kubectl config use-context \"".concat(clusterName, "\"")];
357438
+ var connectContext = ["kubectl config set-cluster \"".concat(clusterName, "\" --server=\"$").concat((0, getEnvironmentVariables_1.getSecretVarNameForContext)(context, "KUBE_URL"), "\" --certificate-authority <(echo $").concat((0, getEnvironmentVariables_1.getSecretVarNameForContext)(context, "KUBE_CA_PEM"), " | base64 -d) --embed-certs=true"), "kubectl config set-credentials \"".concat(clusterName, "\" --token=\"$").concat((0, getEnvironmentVariables_1.getSecretVarNameForContext)(context, "KUBE_TOKEN"), "\""), "kubectl config set-context \"".concat(clusterName, "\" --cluster=\"").concat(clusterName, "\" --user=\"").concat(clusterName, "\" --namespace=\"").concat(context.environment.envVars.KUBE_NAMESPACE, "\""), "kubectl config use-context \"".concat(clusterName, "\"")];
357439
357439
  return (0, base_1.createDeployementJobs)(context, {
357440
357440
  deploy: __assign(__assign({}, shared), {
357441
357441
  script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read(connectContext), false), ["kubernetesCreateSecret", "kubernetesDeploy"], false), __read((0, sbom_1.getDependencyTrackUploadScript)(context)), false), ["echo deployment successful 😻"], false)
@@ -357748,9 +357748,10 @@ var __assign = this && this.__assign || function () {
357748
357748
  exports.__esModule = true;
357749
357749
  exports.createMongodbBaseConfig = void 0;
357750
357750
  var lodash_1 = __nccwpck_require__(23255);
357751
- var __1 = __nccwpck_require__(25355);
357751
+ var getEnvironmentVariables_1 = __nccwpck_require__(76602);
357752
+ var types_1 = __nccwpck_require__(63109);
357752
357753
  var getCredentialString = function (context) {
357753
- return "root:$".concat((0, __1.getSecretVarNameForContext)(context, "MONGODB_ROOT_PASSWORD"), "@");
357754
+ return "root:$".concat((0, getEnvironmentVariables_1.getSecretVarNameForContext)(context, "MONGODB_ROOT_PASSWORD"), "@");
357754
357755
  };
357755
357756
  var getMongodbHost = function (context, name) {
357756
357757
  var namespace = context.environment.envVars.KUBE_NAMESPACE;
@@ -357766,7 +357767,7 @@ var getMongodbReplicasetHost = function (context, index) {
357766
357767
  };
357767
357768
  var createMongodbUrl = function (context, dbName) {
357768
357769
  var _a, _b;
357769
- if (!(0, __1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
357770
+ if (!(0, types_1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
357770
357771
  throw new Error("can only createMongodbUrl on supported deploys");
357771
357772
  }
357772
357773
  var mongodbConfig = (_a = context.componentConfig.deploy.values) === null || _a === void 0 ? void 0 : _a.mongodb;
@@ -357785,7 +357786,7 @@ var createMongodbUrl = function (context, dbName) {
357785
357786
  };
357786
357787
  var createMongoBackupDefaultConfig = function (context) {
357787
357788
  var _a;
357788
- if (!(0, __1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
357789
+ if (!(0, types_1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
357789
357790
  throw new Error("can only create mongodb base config on supported deploys");
357790
357791
  }
357791
357792
  var mongodbConfig = (_a = context.componentConfig.deploy.values) === null || _a === void 0 ? void 0 : _a.mongodb;
@@ -357814,7 +357815,7 @@ var createMongoBackupDefaultConfig = function (context) {
357814
357815
  };
357815
357816
  var createMongodbBaseConfig = function (context) {
357816
357817
  var _a, _b;
357817
- if (!(0, __1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
357818
+ if (!(0, types_1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
357818
357819
  throw new Error("can only create mongodb base config on supported deploys");
357819
357820
  }
357820
357821
  var mongodbConfig = (_a = context.componentConfig.deploy.values) === null || _a === void 0 ? void 0 : _a.mongodb;
@@ -357823,8 +357824,8 @@ var createMongodbBaseConfig = function (context) {
357823
357824
  enabled: true,
357824
357825
  auth: {
357825
357826
  enabled: true,
357826
- rootPassword: "$" + (0, __1.getSecretVarNameForContext)(context, "MONGODB_ROOT_PASSWORD"),
357827
- replicaSetKey: "$" + (0, __1.getSecretVarNameForContext)(context, "MONGODB_REPLICASET_KEY")
357827
+ rootPassword: "$" + (0, getEnvironmentVariables_1.getSecretVarNameForContext)(context, "MONGODB_ROOT_PASSWORD"),
357828
+ replicaSetKey: "$" + (0, getEnvironmentVariables_1.getSecretVarNameForContext)(context, "MONGODB_REPLICASET_KEY")
357828
357829
  },
357829
357830
  persistence: {
357830
357831
  storageClass: "standard-rwo"
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-main-93b724a8",
27
+ "@catladder/pipeline": "0.0.0-main-8462e63f",
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-main-93b724a8",
60
+ "version": "0.0.0-main-8462e63f",
61
61
  "stableVersion": "0.0.0"
62
62
  }