UNPKG

@catladder/pipeline

Version:

Panter workflow for cloud CI/CD and DevOps

30 lines (29 loc) 996 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.additionalKubernetesSecretKeys = void 0; var additionalKubernetesSecretKeys = function (_a) { var _b, _c, _d, _e; var deployConfigRaw = _a.deployConfigRaw; if (!deployConfigRaw) { return []; } var keys = []; if ((_c = (_b = deployConfigRaw.values) === null || _b === void 0 ? void 0 : _b.mongodb) === null || _c === void 0 ? void 0 : _c.enabled) { keys.push("MONGODB_ROOT_PASSWORD"); if (deployConfigRaw.values.mongodb.architecture === "replicaset") { keys.push("MONGODB_REPLICASET_KEY"); } } if ((_e = (_d = deployConfigRaw.values) === null || _d === void 0 ? void 0 : _d.cloudsql) === null || _e === void 0 ? void 0 : _e.enabled) { keys.push("POSTGRESQL_PASSWORD"); keys.push("cloudsqlProxyCredentials"); } return keys.map(function (key) { return { key: key }; }); }; exports.additionalKubernetesSecretKeys = additionalKubernetesSecretKeys;