@payfit/nx-core 0.0.0-e2e → 0.0.0-semver
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/README.md +10 -163
- package/dist/src/executors/publisher/docker.d.ts +3 -1
- package/dist/src/executors/publisher/docker.js +12 -57
- package/dist/src/executors/publisher/docker.js.map +1 -1
- package/dist/src/executors/publisher/executor.js +12 -9
- package/dist/src/executors/publisher/executor.js.map +1 -1
- package/dist/src/executors/publisher/helm.d.ts +5 -1
- package/dist/src/executors/publisher/helm.js +11 -40
- package/dist/src/executors/publisher/helm.js.map +1 -1
- package/dist/src/executors/publisher/schema.d.ts +5 -0
- package/dist/src/executors/publisher/schema.json +0 -44
- package/dist/src/index.d.ts +1 -24
- package/dist/src/index.js +11 -67
- package/dist/src/index.js.map +1 -1
- package/dist/src/scripts/version-actions.d.ts +20 -3
- package/dist/src/scripts/version-actions.js +41 -23
- package/dist/src/scripts/version-actions.js.map +1 -1
- package/dist/src/utils/{common/aws-auth.d.ts → aws-auth.d.ts} +8 -16
- package/dist/src/utils/aws-auth.js +84 -0
- package/dist/src/utils/aws-auth.js.map +1 -0
- package/dist/src/utils/docker.d.ts +16 -12
- package/dist/src/utils/docker.js +23 -63
- package/dist/src/utils/docker.js.map +1 -1
- package/dist/src/utils/exec.d.ts +7 -0
- package/dist/src/utils/exec.js +25 -0
- package/dist/src/utils/exec.js.map +1 -0
- package/dist/src/utils/get-version.d.ts +6 -0
- package/dist/src/utils/get-version.js +14 -0
- package/dist/src/utils/get-version.js.map +1 -0
- package/dist/src/utils/github.d.ts +4 -0
- package/dist/src/utils/github.js +17 -0
- package/dist/src/utils/github.js.map +1 -0
- package/dist/src/utils/helm.d.ts +16 -32
- package/dist/src/utils/helm.js +15 -83
- package/dist/src/utils/helm.js.map +1 -1
- package/dist/src/utils/import-esm.js.map +1 -0
- package/dist/src/utils/{common/tsh.d.ts → tsh.d.ts} +0 -1
- package/dist/src/utils/{common/tsh.js → tsh.js} +15 -20
- package/dist/src/utils/tsh.js.map +1 -0
- package/executors.json +2 -12
- package/package.json +18 -42
- package/dist/src/codegen.d.ts +0 -3
- package/dist/src/codegen.js +0 -25
- package/dist/src/codegen.js.map +0 -1
- package/dist/src/executors/preview-deploy/README.md +0 -5
- package/dist/src/executors/preview-deploy/argocdOverride.d.ts +0 -4
- package/dist/src/executors/preview-deploy/argocdOverride.js +0 -22
- package/dist/src/executors/preview-deploy/argocdOverride.js.map +0 -1
- package/dist/src/executors/preview-deploy/executor.d.ts +0 -4
- package/dist/src/executors/preview-deploy/executor.js +0 -143
- package/dist/src/executors/preview-deploy/executor.js.map +0 -1
- package/dist/src/executors/preview-deploy/kargoPolicy.d.ts +0 -14
- package/dist/src/executors/preview-deploy/kargoPolicy.js +0 -69
- package/dist/src/executors/preview-deploy/kargoPolicy.js.map +0 -1
- package/dist/src/executors/preview-deploy/schema.json +0 -28
- package/dist/src/executors/publisher/README.md +0 -3
- package/dist/src/executors/publisher/lambda.d.ts +0 -18
- package/dist/src/executors/publisher/lambda.js +0 -86
- package/dist/src/executors/publisher/lambda.js.map +0 -1
- package/dist/src/executors/release/README.md +0 -15
- package/dist/src/executors/release/executor.d.ts +0 -4
- package/dist/src/executors/release/executor.js +0 -104
- package/dist/src/executors/release/executor.js.map +0 -1
- package/dist/src/executors/release/schema.json +0 -37
- package/dist/src/generators/init/README.md +0 -5
- package/dist/src/generators/init/files/.circleci/config.yml.template +0 -232
- package/dist/src/generators/init/files/.circleci/teleport/shared-charts.conf.template +0 -24
- package/dist/src/generators/init/files/.npmrc.template +0 -1
- package/dist/src/generators/init/init.d.ts +0 -13
- package/dist/src/generators/init/init.js +0 -278
- package/dist/src/generators/init/init.js.map +0 -1
- package/dist/src/generators/init/schema.json +0 -7
- package/dist/src/scripts/codegen-with-auth.js +0 -55
- package/dist/src/scripts/version-actions.mock.d.ts +0 -6
- package/dist/src/scripts/version-actions.mock.js +0 -61
- package/dist/src/scripts/version-actions.mock.js.map +0 -1
- package/dist/src/utils/common/aws-auth.js +0 -145
- package/dist/src/utils/common/aws-auth.js.map +0 -1
- package/dist/src/utils/common/circleci.d.ts +0 -2
- package/dist/src/utils/common/circleci.js +0 -20
- package/dist/src/utils/common/circleci.js.map +0 -1
- package/dist/src/utils/common/exec.d.ts +0 -4
- package/dist/src/utils/common/exec.js +0 -52
- package/dist/src/utils/common/exec.js.map +0 -1
- package/dist/src/utils/common/github.d.ts +0 -20
- package/dist/src/utils/common/github.js +0 -60
- package/dist/src/utils/common/github.js.map +0 -1
- package/dist/src/utils/common/import-esm.js.map +0 -1
- package/dist/src/utils/common/logger.d.ts +0 -1
- package/dist/src/utils/common/logger.js +0 -8
- package/dist/src/utils/common/logger.js.map +0 -1
- package/dist/src/utils/common/nx.d.ts +0 -22
- package/dist/src/utils/common/nx.js +0 -174
- package/dist/src/utils/common/nx.js.map +0 -1
- package/dist/src/utils/common/s3.d.ts +0 -1
- package/dist/src/utils/common/s3.js +0 -18
- package/dist/src/utils/common/s3.js.map +0 -1
- package/dist/src/utils/common/tsh.js.map +0 -1
- package/dist/src/utils/datadog.d.ts +0 -1
- package/dist/src/utils/datadog.js +0 -33
- package/dist/src/utils/datadog.js.map +0 -1
- package/dist/src/utils/helm.mock.d.ts +0 -85
- package/dist/src/utils/helm.mock.js +0 -100
- package/dist/src/utils/helm.mock.js.map +0 -1
- package/dist/src/utils/lambda/aws-lambda.d.ts +0 -47
- package/dist/src/utils/lambda/aws-lambda.js +0 -231
- package/dist/src/utils/lambda/aws-lambda.js.map +0 -1
- package/dist/src/utils/lambda/lambda.d.ts +0 -7
- package/dist/src/utils/lambda/lambda.js +0 -20
- package/dist/src/utils/lambda/lambda.js.map +0 -1
- package/dist/src/utils/lambda/oci.d.ts +0 -8
- package/dist/src/utils/lambda/oci.js +0 -22
- package/dist/src/utils/lambda/oci.js.map +0 -1
- package/dist/src/utils/lambda/publish.d.ts +0 -14
- package/dist/src/utils/lambda/publish.js +0 -44
- package/dist/src/utils/lambda/publish.js.map +0 -1
- package/dist/src/utils/lambda/spacelift.d.ts +0 -3
- package/dist/src/utils/lambda/spacelift.js +0 -55
- package/dist/src/utils/lambda/spacelift.js.map +0 -1
- package/dist/src/utils/spacelift/lib/__generated__/fragment-masking.d.ts +0 -19
- package/dist/src/utils/spacelift/lib/__generated__/fragment-masking.js +0 -22
- package/dist/src/utils/spacelift/lib/__generated__/fragment-masking.js.map +0 -1
- package/dist/src/utils/spacelift/lib/__generated__/gql.d.ts +0 -15
- package/dist/src/utils/spacelift/lib/__generated__/gql.js +0 -8
- package/dist/src/utils/spacelift/lib/__generated__/gql.js.map +0 -1
- package/dist/src/utils/spacelift/lib/__generated__/graphql.d.ts +0 -9426
- package/dist/src/utils/spacelift/lib/__generated__/graphql.js +0 -819
- package/dist/src/utils/spacelift/lib/__generated__/graphql.js.map +0 -1
- package/dist/src/utils/spacelift/lib/__generated__/index.d.ts +0 -2
- package/dist/src/utils/spacelift/lib/__generated__/index.js +0 -6
- package/dist/src/utils/spacelift/lib/__generated__/index.js.map +0 -1
- package/dist/src/utils/spacelift/lib/graphql.service.d.ts +0 -18
- package/dist/src/utils/spacelift/lib/graphql.service.js +0 -186
- package/dist/src/utils/spacelift/lib/graphql.service.js.map +0 -1
- package/dist/src/utils/spacelift/lib/query/spacelift.queries.d.ts +0 -34
- package/dist/src/utils/spacelift/lib/query/spacelift.queries.js +0 -48
- package/dist/src/utils/spacelift/lib/query/spacelift.queries.js.map +0 -1
- package/dist/src/utils/spacelift/lib/spacelift.error.d.ts +0 -43
- package/dist/src/utils/spacelift/lib/spacelift.error.js +0 -63
- package/dist/src/utils/spacelift/lib/spacelift.error.js.map +0 -1
- package/dist/src/utils/spacelift/lib/spacelift.service.d.ts +0 -16
- package/dist/src/utils/spacelift/lib/spacelift.service.js +0 -58
- package/dist/src/utils/spacelift/lib/spacelift.service.js.map +0 -1
- package/dist/src/utils/spacelift/lib/utils.d.ts +0 -4
- package/dist/src/utils/spacelift/lib/utils.js +0 -32
- package/dist/src/utils/spacelift/lib/utils.js.map +0 -1
- package/generators.json +0 -9
- /package/dist/src/utils/{common/import-esm.d.ts → import-esm.d.ts} +0 -0
- /package/dist/src/utils/{common/import-esm.js → import-esm.js} +0 -0
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.exec = void 0;
|
|
4
|
-
const args_tokenizer_1 = require("args-tokenizer");
|
|
5
|
-
const tinyexec_1 = require("tinyexec");
|
|
6
|
-
const logger_1 = require("./logger");
|
|
7
|
-
function createLoggingExecWrapper(execFn) {
|
|
8
|
-
return (command, args = [], options = {}) => {
|
|
9
|
-
return execFn(command, args, options);
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
// Accepts a single string, splits it, and runs with logging
|
|
13
|
-
function execWrapperFromString(cmd, options = {}) {
|
|
14
|
-
const [command, ...args] = (0, args_tokenizer_1.tokenizeArgs)(cmd);
|
|
15
|
-
const wrappedExec = createLoggingExecWrapper(tinyexec_1.x);
|
|
16
|
-
const result = wrappedExec(command, args, options);
|
|
17
|
-
// Add a then handler to check for errors
|
|
18
|
-
// Use .then() with both success and error handlers
|
|
19
|
-
const processedResult = result.then(
|
|
20
|
-
// Success handler
|
|
21
|
-
output => {
|
|
22
|
-
// Check if the command failed
|
|
23
|
-
if (output.exitCode !== 0) {
|
|
24
|
-
// Log the error to have it visible in the console
|
|
25
|
-
// Throw if requested
|
|
26
|
-
if (options?.throwOnError) {
|
|
27
|
-
logger_1.consola.error(`Command '${cmd}' failed with exit code ${output.exitCode}:\n ${output.stderr}`);
|
|
28
|
-
throw new Error(`Command '${cmd}' failed with exit code ${output.exitCode}:\n ${output.stderr}`);
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
logger_1.consola.warn(`Command '${cmd}' failed with exit code ${output.exitCode} :\n ${output.stderr}`);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
return output;
|
|
35
|
-
},
|
|
36
|
-
// Error handler (instead of .catch())
|
|
37
|
-
error => {
|
|
38
|
-
// Don't log here to avoid double logging
|
|
39
|
-
if (options?.throwOnError) {
|
|
40
|
-
logger_1.consola.error(`Command '${cmd}' failed with :\n ${error}`);
|
|
41
|
-
throw error;
|
|
42
|
-
}
|
|
43
|
-
// If we don't throw, return a rejected promise with the error
|
|
44
|
-
return Promise.reject(error);
|
|
45
|
-
});
|
|
46
|
-
// Create a new object that combines the original result (for OutputApi methods)
|
|
47
|
-
// with the processed promise result (for then/catch behavior)
|
|
48
|
-
const combinedResult = Object.assign(Object.create(Object.getPrototypeOf(result)), result, { then: processedResult.then.bind(processedResult) });
|
|
49
|
-
return combinedResult;
|
|
50
|
-
}
|
|
51
|
-
exports.exec = execWrapperFromString;
|
|
52
|
-
//# sourceMappingURL=exec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"exec.js","sourceRoot":"","sources":["../../../../src/utils/common/exec.ts"],"names":[],"mappings":";;;AAEA,mDAA6C;AAC7C,uCAA4B;AAE5B,qCAAkC;AAElC,SAAS,wBAAwB,CAAC,MAAgB;IAChD,OAAO,CACL,OAAe,EACf,OAAiB,EAAE,EACnB,UAA4B,EAAE,EAC9B,EAAE;QACF,OAAO,MAAM,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAA;IACvC,CAAC,CAAA;AACH,CAAC;AAED,4DAA4D;AAC5D,SAAS,qBAAqB,CAC5B,GAAW,EACX,UAA4B,EAAE;IAE9B,MAAM,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,GAAG,IAAA,6BAAY,EAAC,GAAG,CAAC,CAAA;IAC5C,MAAM,WAAW,GAAG,wBAAwB,CAAC,YAAC,CAAC,CAAA;IAE/C,MAAM,MAAM,GAAG,WAAW,CAAC,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,CAAA;IAElD,yCAAyC;IACzC,mDAAmD;IACnD,MAAM,eAAe,GAAG,MAAM,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
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get sanitized current git branch name
|
|
3
|
-
*/
|
|
4
|
-
export declare function getSanitizedCurrentGitBranch(): Promise<string>;
|
|
5
|
-
/**
|
|
6
|
-
* Get current commit sha
|
|
7
|
-
*/
|
|
8
|
-
export declare function getCurrentGitCommitSha(): Promise<string>;
|
|
9
|
-
/**
|
|
10
|
-
* Get sanitized current repo url
|
|
11
|
-
*/
|
|
12
|
-
export declare function getSanitizedCurrentGitRepoUrl(): Promise<string>;
|
|
13
|
-
/**
|
|
14
|
-
* Get git repository name from remote origin URL
|
|
15
|
-
*/
|
|
16
|
-
export declare function getGitRepositoryName(): Promise<string | undefined>;
|
|
17
|
-
/**
|
|
18
|
-
* Checks if the branch is a default branch
|
|
19
|
-
*/
|
|
20
|
-
export declare function isDefaultBranch(branchName: string): boolean;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSanitizedCurrentGitBranch = getSanitizedCurrentGitBranch;
|
|
4
|
-
exports.getCurrentGitCommitSha = getCurrentGitCommitSha;
|
|
5
|
-
exports.getSanitizedCurrentGitRepoUrl = getSanitizedCurrentGitRepoUrl;
|
|
6
|
-
exports.getGitRepositoryName = getGitRepositoryName;
|
|
7
|
-
exports.isDefaultBranch = isDefaultBranch;
|
|
8
|
-
const exec_1 = require("./exec");
|
|
9
|
-
/**
|
|
10
|
-
* Get sanitized current git branch name
|
|
11
|
-
*/
|
|
12
|
-
async function getSanitizedCurrentGitBranch() {
|
|
13
|
-
const branchName = await (0, exec_1.exec)(`git branch --show-current`);
|
|
14
|
-
return branchName.exitCode == 0
|
|
15
|
-
? branchName.stdout
|
|
16
|
-
.trim()
|
|
17
|
-
.toLowerCase()
|
|
18
|
-
.replace(/[^a-z0-9-]/g, '')
|
|
19
|
-
: '';
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Get current commit sha
|
|
23
|
-
*/
|
|
24
|
-
async function getCurrentGitCommitSha() {
|
|
25
|
-
const commitSha = await (0, exec_1.exec)(`git rev-parse HEAD`);
|
|
26
|
-
return commitSha.exitCode == 0 ? commitSha.stdout.trim() : '';
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Get sanitized current repo url
|
|
30
|
-
*/
|
|
31
|
-
async function getSanitizedCurrentGitRepoUrl() {
|
|
32
|
-
const repoUrlExec = await (0, exec_1.exec)(`git config --get remote.origin.url`);
|
|
33
|
-
if (repoUrlExec.exitCode == 0) {
|
|
34
|
-
const repoUrlMatching = repoUrlExec.stdout.match(/github\.com[:/]PayFit\/[^/]+/);
|
|
35
|
-
if (repoUrlMatching && repoUrlMatching.length > 0) {
|
|
36
|
-
return `https://${repoUrlMatching[0].trim().replace(':', '/').replace('.git', '')}`;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return '';
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Get git repository name from remote origin URL
|
|
43
|
-
*/
|
|
44
|
-
async function getGitRepositoryName() {
|
|
45
|
-
const repoUrlExec = await (0, exec_1.exec)('git config --get remote.origin.url');
|
|
46
|
-
const repoUrl = repoUrlExec.stdout.trim();
|
|
47
|
-
// Extract repo name from URL (handles both HTTPS and SSH formats)
|
|
48
|
-
const match = repoUrl.match(/\/([^/]+?)(?:\.git)?$/);
|
|
49
|
-
if (match && match[1]) {
|
|
50
|
-
return match[1];
|
|
51
|
-
}
|
|
52
|
-
return undefined;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Checks if the branch is a default branch
|
|
56
|
-
*/
|
|
57
|
-
function isDefaultBranch(branchName) {
|
|
58
|
-
return branchName === 'main' || branchName === 'master';
|
|
59
|
-
}
|
|
60
|
-
//# sourceMappingURL=github.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"github.js","sourceRoot":"","sources":["../../../../src/utils/common/github.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GAAG,MAAM,IAAA,WAAI,EAAC,oCAAoC,CAAC,CAAA;IACpE,MAAM,OAAO,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,EAAE,CAAA;IACzC,kEAAkE;IAClE,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAA;IACpD,IAAI,KAAK,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QACtB,OAAO,KAAK,CAAC,CAAC,CAAC,CAAA;IACjB,CAAC;IACD,OAAO,SAAS,CAAA;AAClB,CAAC;AAED;;GAEG;AACH,SAAgB,eAAe,CAAC,UAAkB;IAChD,OAAO,UAAU,KAAK,MAAM,IAAI,UAAU,KAAK,QAAQ,CAAA;AACzD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"import-esm.js","sourceRoot":"","sources":["../../../../src/utils/common/import-esm.ts"],"names":[],"mappings":";;AACA,4BAEC;AAED,sCAIC;AATD,+GAA+G;AAC/G,SAAgB,QAAQ;IACtB,OAAO,QAAQ,CAAC,qBAAqB,CAAC,EAAkC,CAAA;AAC1E,CAAC;AAED,SAAgB,aAAa;IAC3B,OAAO,QAAQ,CAAC,2BAA2B,CAAC,EAE3C,CAAA;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const consola: import("consola").ConsolaInstance;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../../src/utils/common/logger.ts"],"names":[],"mappings":";;;AAAA,qCAAuC;AAE1B,QAAA,OAAO,GAAG,IAAA,uBAAa,EAAC;IACnC,KAAK,EAAE,IAAI;CACZ,CAAC,CAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ExecutorContext } from '@nx/devkit';
|
|
2
|
-
export declare function getDistForApp(context: ExecutorContext): Promise<string>;
|
|
3
|
-
/**
|
|
4
|
-
* Get the version of a project by reading from manifestRootsToUpdate
|
|
5
|
-
* @param context ExecutorContext containing merged configuration
|
|
6
|
-
* @returns {string | null} The project version from manifest files or null if not found
|
|
7
|
-
*/
|
|
8
|
-
export declare function getVersion(context: ExecutorContext): string | null;
|
|
9
|
-
/**
|
|
10
|
-
* Invoke Nx CLI to fetch affected projects with optional include/exclude filters.
|
|
11
|
-
*/
|
|
12
|
-
export declare const getAffectedProjectCliWithFilters: (includes: string[], excludes: string[]) => Promise<import("tinyexec").Output>;
|
|
13
|
-
export declare const nxFns: {
|
|
14
|
-
getAffectedProjectCliWithFilters: (includes: string[], excludes: string[]) => Promise<import("tinyexec").Output>;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Get the list of currently affected projects that have the nx-release-publish target (which make them publishable)
|
|
18
|
-
* and are included in the release configuration.
|
|
19
|
-
*
|
|
20
|
-
* @param releaseGroups
|
|
21
|
-
*/
|
|
22
|
-
export declare function getAffectedProjects(releaseGroups?: string[]): Promise<string[]>;
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.nxFns = exports.getAffectedProjectCliWithFilters = void 0;
|
|
4
|
-
exports.getDistForApp = getDistForApp;
|
|
5
|
-
exports.getVersion = getVersion;
|
|
6
|
-
exports.getAffectedProjects = getAffectedProjects;
|
|
7
|
-
const fs = require("node:fs");
|
|
8
|
-
const path_1 = require("path");
|
|
9
|
-
const devkit_1 = require("@nx/devkit");
|
|
10
|
-
const utils_1 = require("nx/src/tasks-runner/utils");
|
|
11
|
-
const exec_1 = require("./exec");
|
|
12
|
-
const logger_1 = require("./logger");
|
|
13
|
-
/**
|
|
14
|
-
* Read and return the Nx workspace nx.json configuration if present.
|
|
15
|
-
*/
|
|
16
|
-
function readNxJsonConfig() {
|
|
17
|
-
try {
|
|
18
|
-
const nxJsonPath = (0, path_1.join)(devkit_1.workspaceRoot, 'nx.json');
|
|
19
|
-
if (!fs.existsSync(nxJsonPath))
|
|
20
|
-
return undefined;
|
|
21
|
-
return (0, devkit_1.readJsonFile)(nxJsonPath);
|
|
22
|
-
}
|
|
23
|
-
catch (error) {
|
|
24
|
-
logger_1.consola.error('Failed to read nx.json configuration:', error);
|
|
25
|
-
return undefined;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
async function getDistForApp(context) {
|
|
29
|
-
const target = (0, devkit_1.parseTargetString)('build', context);
|
|
30
|
-
const project = context.projectGraph.nodes[target.project].data;
|
|
31
|
-
const buildTarget = project.targets[target.target];
|
|
32
|
-
let maybeOutputPath = buildTarget.outputs?.[0] ??
|
|
33
|
-
buildTarget.options.outputPath ??
|
|
34
|
-
buildTarget.options.outputDir;
|
|
35
|
-
maybeOutputPath = (0, utils_1.interpolate)(maybeOutputPath, {
|
|
36
|
-
workspaceRoot: devkit_1.workspaceRoot,
|
|
37
|
-
projectRoot: project.root,
|
|
38
|
-
projectName: project.name,
|
|
39
|
-
options: {
|
|
40
|
-
...(buildTarget.options ?? {}),
|
|
41
|
-
},
|
|
42
|
-
});
|
|
43
|
-
if (!maybeOutputPath) {
|
|
44
|
-
throw new Error('No dist location found, something is very wrong');
|
|
45
|
-
}
|
|
46
|
-
const outputDir = normalizeOutputPath(maybeOutputPath);
|
|
47
|
-
if (!fs.existsSync(outputDir)) {
|
|
48
|
-
throw new Error(`No build found at ${outputDir}. You should build ${project.name} first`);
|
|
49
|
-
}
|
|
50
|
-
return outputDir;
|
|
51
|
-
}
|
|
52
|
-
function normalizeOutputPath(outputPath) {
|
|
53
|
-
if (!outputPath.startsWith(devkit_1.workspaceRoot)) {
|
|
54
|
-
outputPath = (0, path_1.join)(devkit_1.workspaceRoot, outputPath);
|
|
55
|
-
}
|
|
56
|
-
if (!fs.lstatSync(outputPath).isDirectory()) {
|
|
57
|
-
outputPath = (0, path_1.dirname)(outputPath);
|
|
58
|
-
}
|
|
59
|
-
return outputPath;
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Get the manifest roots to update from the project configuration
|
|
63
|
-
* @param context ExecutorContext
|
|
64
|
-
* @returns Array of absolute paths to manifest root directories
|
|
65
|
-
*/
|
|
66
|
-
function getManifestRootsToUpdate(context) {
|
|
67
|
-
const projectConfig = context.projectsConfigurations.projects[context.projectName];
|
|
68
|
-
const projectGraphData = context.projectGraph.nodes[context.projectName]?.data;
|
|
69
|
-
const nxConfig = context.nxJsonConfiguration;
|
|
70
|
-
// Try to get manifestRootsToUpdate from project-specific config first
|
|
71
|
-
let manifestRoots = projectConfig?.release?.version
|
|
72
|
-
?.manifestRootsToUpdate;
|
|
73
|
-
// Fall back to nx.json configuration
|
|
74
|
-
if (!manifestRoots) {
|
|
75
|
-
manifestRoots = nxConfig?.release?.version?.manifestRootsToUpdate;
|
|
76
|
-
}
|
|
77
|
-
// Default to project root if no configuration found
|
|
78
|
-
if (!manifestRoots) {
|
|
79
|
-
manifestRoots = ['{projectRoot}'];
|
|
80
|
-
}
|
|
81
|
-
// Interpolate paths and convert to absolute paths
|
|
82
|
-
return manifestRoots.map(root => {
|
|
83
|
-
// Handle both string and object formats
|
|
84
|
-
const rootPath = typeof root === 'string' ? root : root.path;
|
|
85
|
-
// Interpolate placeholders
|
|
86
|
-
const interpolatedPath = (0, utils_1.interpolate)(rootPath, {
|
|
87
|
-
workspaceRoot: devkit_1.workspaceRoot,
|
|
88
|
-
projectRoot: projectGraphData?.root || '',
|
|
89
|
-
projectName: context.projectName || '',
|
|
90
|
-
options: {},
|
|
91
|
-
});
|
|
92
|
-
return normalizeOutputPath(interpolatedPath);
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Get the version of a project by reading from manifestRootsToUpdate
|
|
97
|
-
* @param context ExecutorContext containing merged configuration
|
|
98
|
-
* @returns {string | null} The project version from manifest files or null if not found
|
|
99
|
-
*/
|
|
100
|
-
function getVersion(context) {
|
|
101
|
-
const manifestRoot = getManifestRootsToUpdate(context)[0];
|
|
102
|
-
const packageJsonPath = (0, path_1.join)(manifestRoot, 'package.json');
|
|
103
|
-
if (fs.existsSync(packageJsonPath)) {
|
|
104
|
-
try {
|
|
105
|
-
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
|
|
106
|
-
return packageJson.version || null;
|
|
107
|
-
}
|
|
108
|
-
catch {
|
|
109
|
-
throw new Error(`Failed to retrieve version from package.json at ${packageJsonPath}`);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
return null;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Invoke Nx CLI to fetch affected projects with optional include/exclude filters.
|
|
116
|
-
*/
|
|
117
|
-
const getAffectedProjectCliWithFilters = async (includes, excludes) => {
|
|
118
|
-
const args = [
|
|
119
|
-
'npx nx show projects --affected --with-target="nx-release-publish" --json',
|
|
120
|
-
];
|
|
121
|
-
if (includes && includes.length > 0) {
|
|
122
|
-
args.push(`--projects="${includes.join(',')}"`);
|
|
123
|
-
}
|
|
124
|
-
if (excludes && excludes.length > 0) {
|
|
125
|
-
args.push(`--exclude="${excludes.join(',')}"`);
|
|
126
|
-
}
|
|
127
|
-
return (0, exec_1.exec)(args.join(' '), {
|
|
128
|
-
throwOnError: true,
|
|
129
|
-
});
|
|
130
|
-
};
|
|
131
|
-
exports.getAffectedProjectCliWithFilters = getAffectedProjectCliWithFilters;
|
|
132
|
-
// Export a container to enable clean spying/mocking in tests while keeping functions local
|
|
133
|
-
exports.nxFns = { getAffectedProjectCliWithFilters: exports.getAffectedProjectCliWithFilters };
|
|
134
|
-
/**
|
|
135
|
-
* Get the list of currently affected projects that have the nx-release-publish target (which make them publishable)
|
|
136
|
-
* and are included in the release configuration.
|
|
137
|
-
*
|
|
138
|
-
* @param releaseGroups
|
|
139
|
-
*/
|
|
140
|
-
async function getAffectedProjects(releaseGroups) {
|
|
141
|
-
const includes = [];
|
|
142
|
-
const excludes = [];
|
|
143
|
-
let patterns = [];
|
|
144
|
-
const nxConfig = readNxJsonConfig();
|
|
145
|
-
// Get patterns list
|
|
146
|
-
// No groups: just return affected projects with the target
|
|
147
|
-
if (!releaseGroups || releaseGroups.length === 0) {
|
|
148
|
-
// If global release.projects is configured, honor it
|
|
149
|
-
if (nxConfig?.release?.projects.length > 0) {
|
|
150
|
-
patterns = patterns.concat(nxConfig?.release?.projects);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
else {
|
|
154
|
-
// Read nx.json
|
|
155
|
-
const nxConfig = readNxJsonConfig();
|
|
156
|
-
// Collect include/exclude patterns across release groups
|
|
157
|
-
const releaseGroupsConfig = nxConfig?.release?.groups || {};
|
|
158
|
-
for (const group of releaseGroups) {
|
|
159
|
-
patterns = patterns.concat(releaseGroupsConfig[group]?.projects);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
for (const p of patterns) {
|
|
163
|
-
if (typeof p !== 'string')
|
|
164
|
-
continue;
|
|
165
|
-
if (p.startsWith('!'))
|
|
166
|
-
excludes.push(p.substring(1)); // remove the '!' character
|
|
167
|
-
else
|
|
168
|
-
includes.push(p);
|
|
169
|
-
}
|
|
170
|
-
const normalizedIncludes = includes.length > 0 ? includes : ['*'];
|
|
171
|
-
const result = await exports.nxFns.getAffectedProjectCliWithFilters(normalizedIncludes, excludes);
|
|
172
|
-
return JSON.parse(result.stdout);
|
|
173
|
-
}
|
|
174
|
-
//# sourceMappingURL=nx.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nx.js","sourceRoot":"","sources":["../../../../src/utils/common/nx.ts"],"names":[],"mappings":";;;AA6BA,sCAgCC;AA0DD,gCAeC;AAkCD,kDAoCC;AA5MD,8BAA6B;AAC7B,+BAAoC;AAEpC,uCAMmB;AACnB,qDAAuD;AAEvD,iCAA6B;AAC7B,qCAAkC;AAElC;;GAEG;AACH,SAAS,gBAAgB;IACvB,IAAI,CAAC;QACH,MAAM,UAAU,GAAG,IAAA,WAAI,EAAC,sBAAa,EAAE,SAAS,CAAC,CAAA;QACjD,IAAI,CA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AAC,EAAE,QAAQ,CAAC,CAAA;QAClE,CAAC;IACH,CAAC;IACD,KAAK,MAAM,CAAC,IAAI,QAAQ,EAAE,CAAC;QACzB,IAAI,OAAO,CAAC,KAAK,QAAQ;YAAE,SAAQ;QACnC,IAAI,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC;YACnB,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAA,CAAC,2BAA2B;;YACtD,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACvB,CAAC;IACD,MAAM,kBAAkB,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;IACjE,MAAM,MAAM,GAAG,MAAM,aAAK,CAAC,gCAAgC,CACzD,kBAAkB,EAClB,QAAQ,CACT,CAAA;IAED,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;AAClC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function pushToS3(source: string, targetS3FileName: string): Promise<void>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.pushToS3 = pushToS3;
|
|
4
|
-
const aws_auth_1 = require("./aws-auth");
|
|
5
|
-
const exec_1 = require("./exec");
|
|
6
|
-
async function pushToS3(source, targetS3FileName) {
|
|
7
|
-
if (!source || !targetS3FileName) {
|
|
8
|
-
throw new Error('Missing source or target for s3 cp');
|
|
9
|
-
}
|
|
10
|
-
const bucketName = targetS3FileName.split('/')[0];
|
|
11
|
-
const fileName = targetS3FileName.split('/').slice(1).join('/');
|
|
12
|
-
const profile = (0, aws_auth_1.getProfileName)() === 'default' ? '' : `--profile ${(0, aws_auth_1.getProfileName)()}`;
|
|
13
|
-
await (0, exec_1.exec)(`aws s3 cp ${profile} --sse AES256 ${source} s3://${targetS3FileName}`, { throwOnError: true });
|
|
14
|
-
if (targetS3FileName.includes('ephemeral')) {
|
|
15
|
-
await (0, exec_1.exec)(`aws s3api put-object-tagging ${profile} --bucket ${bucketName} --key ${fileName} --tagging '{"TagSet": [{ "Key": "auto-purge", "Value": "true" }]}'`, { throwOnError: true });
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=s3.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"s3.js","sourceRoot":"","sources":["../../../../src/utils/common/s3.ts"],"names":[],"mappings":";;AAGA,4BAqBC;AAxBD,yCAA2C;AAC3C,iCAA6B;AAEtB,KAAK,UAAU,QAAQ,CAAC,MAAc,EAAE,gBAAwB;IACrE,IAAI,CAAC,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACjC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAA;IACvD,CAAC;IAED,MAAM,UAAU,GAAG,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;IACjD,MAAM,QAAQ,GAAG,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAE/D,MAAM,OAAO,GACX,IAAA,yBAAc,GAAE,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,IAAA,yBAAc,GAAE,EAAE,CAAA;IAEvE,MAAM,IAAA,WAAI,EACR,aAAa,OAAO,iBAAiB,MAAM,SAAS,gBAAgB,EAAE,EACtE,EAAE,YAAY,EAAE,IAAI,EAAE,CACvB,CAAA;IACD,IAAI,gBAAgB,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;QAC3C,MAAM,IAAA,WAAI,EACR,gCAAgC,OAAO,aAAa,UAAU,UAAU,QAAQ,qEAAqE,EACrJ,EAAE,Y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AC,CAAC,oEAAoE,eAAe,WAAW,IAAI,EAAE;QACtG,CAAC,CAAC,iBAAiB,eAAe,OAAO,IAAI,EAAE,CAAA;IACjD,MAAM,UAAU,GAAG,IAAA,WAAI,EAAC,OAAO,EAAE;QAC/B,YAAY,EAAE,IAAI;QAClB,WAAW,EAAE;YACX,GAAG,EAAE,8BAAa;SACnB;KACF,CAAC,CAAA;IAEF,MAAM,OAAO,GAAG,KAAK,IAAsB,EAAE;QAC3C,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,UAAU,EAAE,CAAC;YACpC,gBAAO,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAA;YAC5B,IAAI,IAAI,CAAC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,CAAC;gBAC1C,OAAO,IAAI,CAAA;YACb,CAAC;QACH,CAAC;QACD,sEAAsE;QACtE,OAAO,KAAK,CAAA;IACd,CAAC,CAAA;IAED,MAAM,WAAW,GAAG,EAAE,CAAC,MAAM,CAAC;QAC5B,SAAS,EAAE,oBAAoB,IAAI,EAAE;KACtC,CAAC,CAAA;IAEF,OAAO;QACL,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,KAAK,IAAI,EAAE;YAC3B,gBAAO,CAAC,GAAG,CAAC,iCAAiC,IAAI,EAAE,CAAC,CAAA;YACpD,UAAU,CAAC,IAAI,EAAE,CAAA;QACnB,CAAC;QACD,WAAW;QACX,OAAO;QACP,IAAI;KACL,CAAA;AACH,CAAC,CAAA;AA5CY,QAAA,0BAA0B,8BA4CtC;AAEM,KAAK,UAAU,SAAS;IAC7B,OAAO,IAAA,WAAI,EACT,iBAAiB,8BAAa,wCAAwC,EACtE;QACE,YAAY,EAAE,IAAI;QAClB,WAAW,EAAE;YACX,KAAK,EAAE,SAAS;SACjB;KACF,CACF,CAAA;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function correlateDeploymentImage(image: string, repositoryUrl: string, commitSha: string): Promise<void>;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.correlateDeploymentImage = correlateDeploymentImage;
|
|
4
|
-
const logger_1 = require("./common/logger");
|
|
5
|
-
// https://docs.datadoghq.com/continuous_delivery/deployments/
|
|
6
|
-
async function correlateDeploymentImage(image, repositoryUrl, commitSha) {
|
|
7
|
-
const site = process.env.DD_SITE || 'datadoghq.com';
|
|
8
|
-
const payload = {
|
|
9
|
-
data: {
|
|
10
|
-
type: 'ci_deployment_correlate_image',
|
|
11
|
-
attributes: {
|
|
12
|
-
commit_sha: commitSha,
|
|
13
|
-
repository_url: repositoryUrl,
|
|
14
|
-
image: image,
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
const response = await fetch(`https://api.${site}/api/v2/ci/deployments/correlate-image`, {
|
|
19
|
-
method: 'POST',
|
|
20
|
-
headers: {
|
|
21
|
-
'Content-Type': 'application/json',
|
|
22
|
-
'DD-API-KEY': process.env.DD_API_KEY,
|
|
23
|
-
'DD-APPLICATION-KEY': process.env.DD_APP_KEY,
|
|
24
|
-
},
|
|
25
|
-
body: JSON.stringify(payload),
|
|
26
|
-
});
|
|
27
|
-
if (!response.ok || response.status !== 201) {
|
|
28
|
-
logger_1.consola.warn(`Failed to correlate deployment image ${image} with commit ${commitSha} and repository ${repositoryUrl} (Datadog preview feature)`);
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
logger_1.consola.info(`Correlate deployment image ${image} with commit ${commitSha} and repository ${repositoryUrl} (Datadog preview feature)`);
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=datadog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"datadog.js","sourceRoot":"","sources":["../../../src/utils/datadog.ts"],"names":[],"mappings":";;AAGA,4DAyCC;AA5CD,4CAAyC;AAEzC,8DAA8D;AACvD,KAAK,UAAU,wBAAwB,CAC5C,KAAa,EACb,aAAqB,EACrB,SAAiB;IAEjB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,eAAe,CAAA;IAEnD,MAAM,OAAO,GAAG;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,+BAA+B;YACrC,UAAU,EAAE;gBACV,UAAU,EAAE,SAAS;gBACrB,cAAc,EAAE,aAAa;gBAC7B,KAAK,EAAE,KAAK;aACb;SACF;KACF,CAAA;IAED,MAAM,QAAQ,GAAG,MAAM,KAAK,CAC1B,eAAe,IAAI,wCAAwC,EAC3D;QACE,MAAM,EAAE,MAAM;QACd,OAAO,EAAE;YACP,cAAc,EAAE,kBAAkB;YAClC,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;YACpC,oBAAoB,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;SAC7C;QACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC;KAC9B,CACF,CAAA;IAED,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;QAC5C,gBAAO,CAAC,IAAI,CACV,wCAAwC,KAAK,gBAAgB,SAAS,mBAAmB,aAAa,4BAA4B,CACnI,CAAA;QACD,OAAM;IACR,CAAC;IAED,gBAAO,CAAC,IAAI,CACV,8BAA8B,KAAK,gBAAgB,SAAS,mBAAmB,aAAa,4BAA4B,CACzH,CAAA;AACH,CAAC"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
export declare const mockValuesConfigPath = "/tmp/values.yaml";
|
|
2
|
-
export declare const mockChartConfigPath = "/tmp/Chart.yaml";
|
|
3
|
-
export declare const mockVersion = "1.2.3";
|
|
4
|
-
export declare const mockChart1SvcConfig: {
|
|
5
|
-
dependencies: {
|
|
6
|
-
name: string;
|
|
7
|
-
alias: string;
|
|
8
|
-
repository: string;
|
|
9
|
-
}[];
|
|
10
|
-
};
|
|
11
|
-
export declare const mockChart2SvcConfig: {
|
|
12
|
-
dependencies: {
|
|
13
|
-
name: string;
|
|
14
|
-
alias: string;
|
|
15
|
-
repository: string;
|
|
16
|
-
}[];
|
|
17
|
-
};
|
|
18
|
-
export declare const mockChartPublicConfig: {
|
|
19
|
-
dependencies: {
|
|
20
|
-
name: string;
|
|
21
|
-
alias: string;
|
|
22
|
-
repository: string;
|
|
23
|
-
}[];
|
|
24
|
-
};
|
|
25
|
-
export declare const mockValues2SvcWithDbMigration: {
|
|
26
|
-
service1Alias: {
|
|
27
|
-
image: {
|
|
28
|
-
tag: string;
|
|
29
|
-
};
|
|
30
|
-
dbMigration: {
|
|
31
|
-
image: {
|
|
32
|
-
tag: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
service2Alias: {
|
|
37
|
-
image: {
|
|
38
|
-
tag: string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
export declare const expectedValuesConfig2SvcWithDbMigration: {
|
|
43
|
-
service1Alias: {
|
|
44
|
-
image: {
|
|
45
|
-
tag: string;
|
|
46
|
-
};
|
|
47
|
-
dbMigration: {
|
|
48
|
-
image: {
|
|
49
|
-
tag: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
service2Alias: {
|
|
54
|
-
image: {
|
|
55
|
-
tag: string;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
export declare const mockValues1Svc: {
|
|
60
|
-
service1Alias: {
|
|
61
|
-
image: {
|
|
62
|
-
tag: string;
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
export declare const mockValuesGlobalTag: {
|
|
67
|
-
service1Alias: {
|
|
68
|
-
image: {
|
|
69
|
-
tag: string;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
image: {
|
|
73
|
-
tag: string;
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
export declare const mockValuesWithoutImageTag: {
|
|
77
|
-
service1Alias: {
|
|
78
|
-
someOtherConfig: string;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
export declare const mockValuesOnlyGlobalTag: {
|
|
82
|
-
image: {
|
|
83
|
-
tag: string;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mockValuesOnlyGlobalTag = exports.mockValuesWithoutImageTag = exports.mockValuesGlobalTag = exports.mockValues1Svc = exports.expectedValuesConfig2SvcWithDbMigration = exports.mockValues2SvcWithDbMigration = exports.mockChartPublicConfig = exports.mockChart2SvcConfig = exports.mockChart1SvcConfig = exports.mockVersion = exports.mockChartConfigPath = exports.mockValuesConfigPath = void 0;
|
|
4
|
-
exports.mockValuesConfigPath = '/tmp/values.yaml';
|
|
5
|
-
exports.mockChartConfigPath = '/tmp/Chart.yaml';
|
|
6
|
-
exports.mockVersion = '1.2.3';
|
|
7
|
-
exports.mockChart1SvcConfig = {
|
|
8
|
-
dependencies: [
|
|
9
|
-
{
|
|
10
|
-
name: 'service1',
|
|
11
|
-
alias: 'service1Alias',
|
|
12
|
-
repository: 'http://localhost:8080',
|
|
13
|
-
},
|
|
14
|
-
],
|
|
15
|
-
};
|
|
16
|
-
exports.mockChart2SvcConfig = {
|
|
17
|
-
dependencies: [
|
|
18
|
-
{
|
|
19
|
-
name: 'service1',
|
|
20
|
-
alias: 'service1Alias',
|
|
21
|
-
repository: 'http://localhost:8080',
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
name: 'service2',
|
|
25
|
-
alias: 'service2Alias',
|
|
26
|
-
repository: 'http://localhost:8080',
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
};
|
|
30
|
-
exports.mockChartPublicConfig = {
|
|
31
|
-
dependencies: [
|
|
32
|
-
{
|
|
33
|
-
name: 'service1',
|
|
34
|
-
alias: 'service1Alias',
|
|
35
|
-
repository: 'https://public-repo.example.com',
|
|
36
|
-
},
|
|
37
|
-
],
|
|
38
|
-
};
|
|
39
|
-
exports.mockValues2SvcWithDbMigration = {
|
|
40
|
-
service1Alias: {
|
|
41
|
-
image: {
|
|
42
|
-
tag: 'old-tag',
|
|
43
|
-
},
|
|
44
|
-
dbMigration: {
|
|
45
|
-
image: {
|
|
46
|
-
tag: 'old-tag',
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
service2Alias: {
|
|
51
|
-
image: {
|
|
52
|
-
tag: 'old-tag',
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
exports.expectedValuesConfig2SvcWithDbMigration = {
|
|
57
|
-
service1Alias: {
|
|
58
|
-
image: {
|
|
59
|
-
tag: exports.mockVersion,
|
|
60
|
-
},
|
|
61
|
-
dbMigration: {
|
|
62
|
-
image: {
|
|
63
|
-
tag: exports.mockVersion,
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
service2Alias: {
|
|
68
|
-
image: {
|
|
69
|
-
tag: exports.mockVersion,
|
|
70
|
-
},
|
|
71
|
-
},
|
|
72
|
-
};
|
|
73
|
-
exports.mockValues1Svc = {
|
|
74
|
-
service1Alias: {
|
|
75
|
-
image: {
|
|
76
|
-
tag: 'old-tag',
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
exports.mockValuesGlobalTag = {
|
|
81
|
-
service1Alias: {
|
|
82
|
-
image: {
|
|
83
|
-
tag: 'old-tag',
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
image: {
|
|
87
|
-
tag: 'old-global-tag',
|
|
88
|
-
},
|
|
89
|
-
};
|
|
90
|
-
exports.mockValuesWithoutImageTag = {
|
|
91
|
-
service1Alias: {
|
|
92
|
-
someOtherConfig: 'value',
|
|
93
|
-
},
|
|
94
|
-
};
|
|
95
|
-
exports.mockValuesOnlyGlobalTag = {
|
|
96
|
-
image: {
|
|
97
|
-
tag: 'old-global-tag',
|
|
98
|
-
},
|
|
99
|
-
};
|
|
100
|
-
//# sourceMappingURL=helm.mock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helm.mock.js","sourceRoot":"","sources":["../../../src/utils/helm.mock.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG,kBAAkB,CAAA;AACzC,QAAA,mBAAmB,GAAG,iBAAiB,CAAA;AACvC,QAAA,WAAW,GAAG,OAAO,CAAA;AAErB,QAAA,mBAAmB,GAAG;IACjC,YAAY,EAAE;QACZ;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,eAAe;YACtB,UAAU,EAAE,uBAAuB;SACpC;KACF;CACF,CAAA;AAEY,QAAA,mBAAmB,GAAG;IACjC,YAAY,EAAE;QACZ;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,eAAe;YACtB,UAAU,EAAE,uBAAuB;SACpC;QACD;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,eAAe;YACtB,UAAU,EAAE,uBAAuB;SACpC;KACF;CACF,CAAA;AAEY,QAAA,qBAAqB,GAAG;IACnC,YAAY,EAAE;QACZ;YACE,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,eAAe;YACtB,UAAU,EAAE,iCAAiC;SAC9C;KACF;CACF,CAAA;AAEY,QAAA,6BAA6B,GAAG;IAC3C,aAAa,EAAE;QACb,KAAK,EAAE;YACL,GAAG,EAAE,SAAS;SACf;QACD,WAAW,EAAE;YACX,KAAK,EAAE;gBACL,GAAG,EAAE,SAAS;aACf;SACF;KACF;IACD,aAAa,EAAE;QACb,KAAK,EAAE;YACL,GAAG,EAAE,SAAS;SACf;KACF;CACF,CAAA;AAEY,QAAA,uCAAuC,GAAG;IACrD,aAAa,EAAE;QACb,KAAK,EAAE;YACL,GAAG,EAAE,mBAAW;SACjB;QACD,WAAW,EAAE;YACX,KAAK,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