@catladder/cli 0.0.0-main-93b724a8 → 0.0.0-main-2ce14b21

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-2ce14b21" || 0;
40849
40849
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
40850
40850
 
40851
40851
  /***/ }),
@@ -41405,6 +41405,7 @@ var getLabels = function (context) {
41405
41405
  var _a, _b, _c;
41406
41406
  var labels = __assign({
41407
41407
  "customer-name": sanitize(context.fullConfig.customerName),
41408
+ "component-name": sanitize(context.componentName),
41408
41409
  "app-name": sanitize(context.fullConfig.appName),
41409
41410
  "env-type": sanitize(context.environment.envType),
41410
41411
  "env-name": sanitize(context.environment.shortName),
@@ -43281,12 +43282,12 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
43281
43282
  exports.__esModule = true;
43282
43283
  exports.createKubernetesDeployJobs = void 0;
43283
43284
  var js_yaml_1 = __nccwpck_require__(3618);
43284
- var __1 = __nccwpck_require__(5355);
43285
43285
  var runner_1 = __nccwpck_require__(5071);
43286
43286
  var base_1 = __nccwpck_require__(2866);
43287
43287
  var sbom_1 = __nccwpck_require__(5928);
43288
43288
  var types_1 = __nccwpck_require__(3109);
43289
43289
  var kubeValues_1 = __nccwpck_require__(1061);
43290
+ var getEnvironmentVariables_1 = __nccwpck_require__(6602);
43290
43291
  var createKubernetesDeployJobs = function (context) {
43291
43292
  var _a, _b, _c;
43292
43293
  var deployConfig = context.componentConfig.deploy;
@@ -43316,7 +43317,7 @@ var createKubernetesDeployJobs = function (context) {
43316
43317
  })
43317
43318
  };
43318
43319
  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, "\"")];
43320
+ 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
43321
  return (0, base_1.createDeployementJobs)(context, {
43321
43322
  deploy: __assign(__assign({}, shared), {
43322
43323
  script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read(connectContext), false), ["kubernetesCreateSecret", "kubernetesDeploy"], false), __read((0, sbom_1.getDependencyTrackUploadScript)(context)), false), ["echo deployment successful 😻"], false)
@@ -43629,9 +43630,10 @@ var __assign = this && this.__assign || function () {
43629
43630
  exports.__esModule = true;
43630
43631
  exports.createMongodbBaseConfig = void 0;
43631
43632
  var lodash_1 = __nccwpck_require__(3255);
43632
- var __1 = __nccwpck_require__(5355);
43633
+ var getEnvironmentVariables_1 = __nccwpck_require__(6602);
43634
+ var types_1 = __nccwpck_require__(3109);
43633
43635
  var getCredentialString = function (context) {
43634
- return "root:$".concat((0, __1.getSecretVarNameForContext)(context, "MONGODB_ROOT_PASSWORD"), "@");
43636
+ return "root:$".concat((0, getEnvironmentVariables_1.getSecretVarNameForContext)(context, "MONGODB_ROOT_PASSWORD"), "@");
43635
43637
  };
43636
43638
  var getMongodbHost = function (context, name) {
43637
43639
  var namespace = context.environment.envVars.KUBE_NAMESPACE;
@@ -43647,7 +43649,7 @@ var getMongodbReplicasetHost = function (context, index) {
43647
43649
  };
43648
43650
  var createMongodbUrl = function (context, dbName) {
43649
43651
  var _a, _b;
43650
- if (!(0, __1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
43652
+ if (!(0, types_1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
43651
43653
  throw new Error("can only createMongodbUrl on supported deploys");
43652
43654
  }
43653
43655
  var mongodbConfig = (_a = context.componentConfig.deploy.values) === null || _a === void 0 ? void 0 : _a.mongodb;
@@ -43666,7 +43668,7 @@ var createMongodbUrl = function (context, dbName) {
43666
43668
  };
43667
43669
  var createMongoBackupDefaultConfig = function (context) {
43668
43670
  var _a;
43669
- if (!(0, __1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
43671
+ if (!(0, types_1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
43670
43672
  throw new Error("can only create mongodb base config on supported deploys");
43671
43673
  }
43672
43674
  var mongodbConfig = (_a = context.componentConfig.deploy.values) === null || _a === void 0 ? void 0 : _a.mongodb;
@@ -43695,7 +43697,7 @@ var createMongoBackupDefaultConfig = function (context) {
43695
43697
  };
43696
43698
  var createMongodbBaseConfig = function (context) {
43697
43699
  var _a, _b;
43698
- if (!(0, __1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
43700
+ if (!(0, types_1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
43699
43701
  throw new Error("can only create mongodb base config on supported deploys");
43700
43702
  }
43701
43703
  var mongodbConfig = (_a = context.componentConfig.deploy.values) === null || _a === void 0 ? void 0 : _a.mongodb;
@@ -43704,8 +43706,8 @@ var createMongodbBaseConfig = function (context) {
43704
43706
  enabled: true,
43705
43707
  auth: {
43706
43708
  enabled: true,
43707
- rootPassword: "$" + (0, __1.getSecretVarNameForContext)(context, "MONGODB_ROOT_PASSWORD"),
43708
- replicaSetKey: "$" + (0, __1.getSecretVarNameForContext)(context, "MONGODB_REPLICASET_KEY")
43709
+ rootPassword: "$" + (0, getEnvironmentVariables_1.getSecretVarNameForContext)(context, "MONGODB_ROOT_PASSWORD"),
43710
+ replicaSetKey: "$" + (0, getEnvironmentVariables_1.getSecretVarNameForContext)(context, "MONGODB_REPLICASET_KEY")
43709
43711
  },
43710
43712
  persistence: {
43711
43713
  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-2ce14b21" || 0;
354968
354968
  exports.DOCKER_REGISTRY = "git.panter.ch:5001/catladder/catladder" || 0;
354969
354969
 
354970
354970
  /***/ }),
@@ -355524,6 +355524,7 @@ var getLabels = function (context) {
355524
355524
  var _a, _b, _c;
355525
355525
  var labels = __assign({
355526
355526
  "customer-name": sanitize(context.fullConfig.customerName),
355527
+ "component-name": sanitize(context.componentName),
355527
355528
  "app-name": sanitize(context.fullConfig.appName),
355528
355529
  "env-type": sanitize(context.environment.envType),
355529
355530
  "env-name": sanitize(context.environment.shortName),
@@ -357400,12 +357401,12 @@ var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
357400
357401
  exports.__esModule = true;
357401
357402
  exports.createKubernetesDeployJobs = void 0;
357402
357403
  var js_yaml_1 = __nccwpck_require__(3618);
357403
- var __1 = __nccwpck_require__(25355);
357404
357404
  var runner_1 = __nccwpck_require__(55071);
357405
357405
  var base_1 = __nccwpck_require__(82866);
357406
357406
  var sbom_1 = __nccwpck_require__(65928);
357407
357407
  var types_1 = __nccwpck_require__(63109);
357408
357408
  var kubeValues_1 = __nccwpck_require__(1061);
357409
+ var getEnvironmentVariables_1 = __nccwpck_require__(76602);
357409
357410
  var createKubernetesDeployJobs = function (context) {
357410
357411
  var _a, _b, _c;
357411
357412
  var deployConfig = context.componentConfig.deploy;
@@ -357435,7 +357436,7 @@ var createKubernetesDeployJobs = function (context) {
357435
357436
  })
357436
357437
  };
357437
357438
  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, "\"")];
357439
+ 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
357440
  return (0, base_1.createDeployementJobs)(context, {
357440
357441
  deploy: __assign(__assign({}, shared), {
357441
357442
  script: __spreadArray(__spreadArray(__spreadArray(__spreadArray([], __read(connectContext), false), ["kubernetesCreateSecret", "kubernetesDeploy"], false), __read((0, sbom_1.getDependencyTrackUploadScript)(context)), false), ["echo deployment successful 😻"], false)
@@ -357748,9 +357749,10 @@ var __assign = this && this.__assign || function () {
357748
357749
  exports.__esModule = true;
357749
357750
  exports.createMongodbBaseConfig = void 0;
357750
357751
  var lodash_1 = __nccwpck_require__(23255);
357751
- var __1 = __nccwpck_require__(25355);
357752
+ var getEnvironmentVariables_1 = __nccwpck_require__(76602);
357753
+ var types_1 = __nccwpck_require__(63109);
357752
357754
  var getCredentialString = function (context) {
357753
- return "root:$".concat((0, __1.getSecretVarNameForContext)(context, "MONGODB_ROOT_PASSWORD"), "@");
357755
+ return "root:$".concat((0, getEnvironmentVariables_1.getSecretVarNameForContext)(context, "MONGODB_ROOT_PASSWORD"), "@");
357754
357756
  };
357755
357757
  var getMongodbHost = function (context, name) {
357756
357758
  var namespace = context.environment.envVars.KUBE_NAMESPACE;
@@ -357766,7 +357768,7 @@ var getMongodbReplicasetHost = function (context, index) {
357766
357768
  };
357767
357769
  var createMongodbUrl = function (context, dbName) {
357768
357770
  var _a, _b;
357769
- if (!(0, __1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
357771
+ if (!(0, types_1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
357770
357772
  throw new Error("can only createMongodbUrl on supported deploys");
357771
357773
  }
357772
357774
  var mongodbConfig = (_a = context.componentConfig.deploy.values) === null || _a === void 0 ? void 0 : _a.mongodb;
@@ -357785,7 +357787,7 @@ var createMongodbUrl = function (context, dbName) {
357785
357787
  };
357786
357788
  var createMongoBackupDefaultConfig = function (context) {
357787
357789
  var _a;
357788
- if (!(0, __1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
357790
+ if (!(0, types_1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
357789
357791
  throw new Error("can only create mongodb base config on supported deploys");
357790
357792
  }
357791
357793
  var mongodbConfig = (_a = context.componentConfig.deploy.values) === null || _a === void 0 ? void 0 : _a.mongodb;
@@ -357814,7 +357816,7 @@ var createMongoBackupDefaultConfig = function (context) {
357814
357816
  };
357815
357817
  var createMongodbBaseConfig = function (context) {
357816
357818
  var _a, _b;
357817
- if (!(0, __1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
357819
+ if (!(0, types_1.isOfDeployType)(context.componentConfig.deploy, "kubernetes")) {
357818
357820
  throw new Error("can only create mongodb base config on supported deploys");
357819
357821
  }
357820
357822
  var mongodbConfig = (_a = context.componentConfig.deploy.values) === null || _a === void 0 ? void 0 : _a.mongodb;
@@ -357823,8 +357825,8 @@ var createMongodbBaseConfig = function (context) {
357823
357825
  enabled: true,
357824
357826
  auth: {
357825
357827
  enabled: true,
357826
- rootPassword: "$" + (0, __1.getSecretVarNameForContext)(context, "MONGODB_ROOT_PASSWORD"),
357827
- replicaSetKey: "$" + (0, __1.getSecretVarNameForContext)(context, "MONGODB_REPLICASET_KEY")
357828
+ rootPassword: "$" + (0, getEnvironmentVariables_1.getSecretVarNameForContext)(context, "MONGODB_ROOT_PASSWORD"),
357829
+ replicaSetKey: "$" + (0, getEnvironmentVariables_1.getSecretVarNameForContext)(context, "MONGODB_REPLICASET_KEY")
357828
357830
  },
357829
357831
  persistence: {
357830
357832
  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-2ce14b21",
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-2ce14b21",
61
61
  "stableVersion": "0.0.0"
62
62
  }