@payfit/nx-core 5.0.2-ephemeral-vibe-code-spacelift-stack-manager.4 → 5.0.2
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/dist/src/executors/docker-build/executor.js +3 -6
- package/dist/src/executors/docker-build/executor.js.map +1 -1
- package/dist/src/executors/docker-build/schema.json +5 -0
- package/dist/src/executors/publisher/docker.js +1 -1
- package/dist/src/executors/publisher/docker.js.map +1 -1
- package/dist/src/executors/publisher/executor.js.map +1 -1
- package/dist/src/executors/publisher/frontend.js +1 -2
- package/dist/src/executors/publisher/frontend.js.map +1 -1
- package/dist/src/executors/publisher/helm.js +5 -3
- package/dist/src/executors/publisher/helm.js.map +1 -1
- package/dist/src/executors/publisher/lambda.js +13 -16
- package/dist/src/executors/publisher/lambda.js.map +1 -1
- package/dist/src/executors/publisher/schema.json +5 -0
- package/dist/src/executors/release/executor.js +2 -0
- package/dist/src/executors/release/executor.js.map +1 -1
- package/dist/src/generators/init/globalFiles/.circleci/config.yml.template +1 -4
- package/dist/src/index.d.ts +4 -3
- package/dist/src/index.js +116 -54
- package/dist/src/index.js.map +1 -1
- package/dist/src/scripts/nx-core-updater.js +60 -312
- package/dist/src/utils/common/ecr.js +9 -29
- package/dist/src/utils/common/ecr.js.map +1 -1
- package/dist/src/utils/common/nx.d.ts +1 -3
- package/dist/src/utils/common/nx.js +0 -25
- package/dist/src/utils/common/nx.js.map +1 -1
- package/dist/src/utils/common/oci.d.ts +3 -17
- package/dist/src/utils/common/oci.js +4 -36
- package/dist/src/utils/common/oci.js.map +1 -1
- package/dist/src/utils/docker.d.ts +2 -2
- package/dist/src/utils/docker.js +11 -9
- package/dist/src/utils/docker.js.map +1 -1
- package/dist/src/utils/helm.d.ts +1 -1
- package/dist/src/utils/helm.js +6 -11
- package/dist/src/utils/helm.js.map +1 -1
- package/dist/src/utils/helm.mock.d.ts +85 -0
- package/dist/src/utils/helm.mock.js +100 -0
- package/dist/src/utils/helm.mock.js.map +1 -0
- package/dist/src/utils/spacelift/lib/__generated__/gql.js +1 -1
- package/dist/src/utils/spacelift/lib/__generated__/graphql.d.ts +45 -42
- package/dist/src/utils/spacelift/lib/__generated__/graphql.js +3 -3
- package/dist/src/utils/spacelift/lib/__generated__/graphql.js.map +1 -1
- package/executors.json +4 -4
- package/generators.json +0 -5
- package/migrations.json +0 -5
- package/package.json +3 -4
- package/dist/src/executors/publisher/schema.d.ts +0 -26
- package/dist/src/executors/publisher/schema.js +0 -3
- package/dist/src/executors/publisher/schema.js.map +0 -1
- package/dist/src/executors/spacelift-stack-management/executor.d.ts +0 -4
- package/dist/src/executors/spacelift-stack-management/executor.js +0 -195
- package/dist/src/executors/spacelift-stack-management/executor.js.map +0 -1
- package/dist/src/executors/spacelift-stack-management/schema.json +0 -31
- package/dist/src/generators/local-lambda-setup/files/docker-compose/docker-compose.yml.template +0 -21
- package/dist/src/generators/local-lambda-setup/files/scripts/invoke_lambda_local.sh.template +0 -97
- package/dist/src/generators/local-lambda-setup/local-lambda-setup.d.ts +0 -25
- package/dist/src/generators/local-lambda-setup/local-lambda-setup.js +0 -167
- package/dist/src/generators/local-lambda-setup/local-lambda-setup.js.map +0 -1
- package/dist/src/generators/local-lambda-setup/schema.json +0 -24
- package/dist/src/migrations/20251029-nx-conformance-requirement-publish.d.ts +0 -2
- package/dist/src/migrations/20251029-nx-conformance-requirement-publish.js +0 -85
- package/dist/src/migrations/20251029-nx-conformance-requirement-publish.js.map +0 -1
- package/dist/src/utils/common/enums.d.ts +0 -7
- package/dist/src/utils/common/enums.js +0 -12
- package/dist/src/utils/common/enums.js.map +0 -1
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
import { ArtifactType } from './enums';
|
|
2
1
|
/**
|
|
3
|
-
* Pushes Lambda
|
|
2
|
+
* Pushes Lambda function package.json as OCI artifact to ECR using ORAS.
|
|
4
3
|
*
|
|
5
4
|
* @param ecrRepository - ECR repository name
|
|
6
5
|
* @param tag - Version tag for the artifact
|
|
7
|
-
* @param
|
|
8
|
-
* @param type - Artifact type
|
|
9
|
-
* @param ecrRegistry - ECR registry
|
|
6
|
+
* @param pathToPackageJson - Path to package.json file
|
|
10
7
|
*/
|
|
11
|
-
export declare function pushImageToEcr(ecrRepository: string, tag: string,
|
|
12
|
-
/**
|
|
13
|
-
* Pushes helm chart as OCI artifact to ECR using ORAS.
|
|
14
|
-
*
|
|
15
|
-
* @param ecrRepository - ECR repository name
|
|
16
|
-
* @param tag - Version tag for the artifact
|
|
17
|
-
* @param artifactPath - Path to artifact to package
|
|
18
|
-
* @param type - Artifact type
|
|
19
|
-
* @param ecrRegistry - ECR registry
|
|
20
|
-
* @param chartConfigPath - Path to chart config file in JSON format
|
|
21
|
-
*/
|
|
22
|
-
export declare function pushHelmOciToEcr(ecrRepository: string, tag: string, artifactPath: string, ecrRegistry: string, chartConfigPath: string): Promise<void>;
|
|
8
|
+
export declare function pushImageToEcr(ecrRepository: string, tag: string, pathToPackageJson: string, type: 'lambda' | 'frontend', ecrRegistry: string): Promise<void>;
|
|
@@ -1,57 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.pushImageToEcr = pushImageToEcr;
|
|
4
|
-
exports.pushHelmOciToEcr = pushHelmOciToEcr;
|
|
5
4
|
const consola_1 = require("consola");
|
|
6
5
|
const exec_1 = require("./exec");
|
|
7
6
|
const github_1 = require("./github");
|
|
8
7
|
/**
|
|
9
|
-
* Pushes Lambda
|
|
8
|
+
* Pushes Lambda function package.json as OCI artifact to ECR using ORAS.
|
|
10
9
|
*
|
|
11
10
|
* @param ecrRepository - ECR repository name
|
|
12
11
|
* @param tag - Version tag for the artifact
|
|
13
|
-
* @param
|
|
14
|
-
* @param type - Artifact type
|
|
15
|
-
* @param ecrRegistry - ECR registry
|
|
12
|
+
* @param pathToPackageJson - Path to package.json file
|
|
16
13
|
*/
|
|
17
|
-
async function pushImageToEcr(ecrRepository, tag,
|
|
18
|
-
consola_1.consola.log(`OCI: Pushing image to ECR: ${ecrRegistry}/${ecrRepository}:${tag}`);
|
|
14
|
+
async function pushImageToEcr(ecrRepository, tag, pathToPackageJson, type, ecrRegistry) {
|
|
19
15
|
const commitSha = await (0, github_1.getCurrentGitCommitSha)();
|
|
20
16
|
const gitRepoUrl = await (0, github_1.getSanitizedCurrentGitRepoUrl)();
|
|
21
|
-
const artifactType = `application/vnd.payfit.${type}.manifest`;
|
|
22
17
|
const orasPushCommand = [
|
|
23
18
|
`oras push ${ecrRegistry}/${ecrRepository}:${tag}`,
|
|
24
19
|
`--annotation "org.opencontainers.image.source=${gitRepoUrl}"`,
|
|
25
20
|
`--annotation "org.opencontainers.image.revision=${commitSha}"`,
|
|
26
21
|
`--disable-path-validation`,
|
|
27
|
-
`--artifact-type
|
|
28
|
-
].join(' ');
|
|
29
|
-
const uploadToOci = await (0, exec_1.exec)(orasPushCommand, {
|
|
30
|
-
throwOnError: true,
|
|
31
|
-
});
|
|
32
|
-
consola_1.consola.log(uploadToOci.stdout);
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Pushes helm chart as OCI artifact to ECR using ORAS.
|
|
36
|
-
*
|
|
37
|
-
* @param ecrRepository - ECR repository name
|
|
38
|
-
* @param tag - Version tag for the artifact
|
|
39
|
-
* @param artifactPath - Path to artifact to package
|
|
40
|
-
* @param type - Artifact type
|
|
41
|
-
* @param ecrRegistry - ECR registry
|
|
42
|
-
* @param chartConfigPath - Path to chart config file in JSON format
|
|
43
|
-
*/
|
|
44
|
-
async function pushHelmOciToEcr(ecrRepository, tag, artifactPath, ecrRegistry, chartConfigPath) {
|
|
45
|
-
consola_1.consola.log(`OCI: Pushing image to ECR: ${ecrRegistry}/${ecrRepository}:${tag}`);
|
|
46
|
-
const commitSha = await (0, github_1.getCurrentGitCommitSha)();
|
|
47
|
-
const gitRepoUrl = await (0, github_1.getSanitizedCurrentGitRepoUrl)();
|
|
48
|
-
const orasPushCommand = [
|
|
49
|
-
`oras push ${ecrRegistry}/${ecrRepository}:${tag}`,
|
|
50
|
-
`--annotation "org.opencontainers.image.source=${gitRepoUrl}"`,
|
|
51
|
-
`--annotation "org.opencontainers.image.revision=${commitSha}"`,
|
|
52
|
-
`--disable-path-validation`,
|
|
53
|
-
`--config ${chartConfigPath}:application/vnd.cncf.helm.config.v1+json`,
|
|
54
|
-
`${artifactPath}:application/vnd.cncf.helm.chart.content.v1.tar+gzip`,
|
|
22
|
+
`--artifact-type application/vnd.payfit.${type}.manifest ${pathToPackageJson}`,
|
|
55
23
|
].join(' ');
|
|
56
24
|
const uploadToOci = await (0, exec_1.exec)(orasPushCommand, {
|
|
57
25
|
throwOnError: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oci.js","sourceRoot":"","sources":["../../../../src/utils/common/oci.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"oci.js","sourceRoot":"","sources":["../../../../src/utils/common/oci.ts"],"names":[],"mappings":";;AAYA,wCAoBC;AAhCD,qCAAiC;AAEjC,iCAA6B;AAC7B,qCAAgF;AAEhF;;;;;;GAMG;AACI,KAAK,UAAU,cAAc,CAClC,aAAqB,EACrB,GAAW,EACX,iBAAyB,EACzB,IAA2B,EAC3B,WAAmB;IAEnB,MAAM,SAAS,GAAG,MAAM,IAAA,+BAAsB,GAAE,CAAA;IAChD,MAAM,UAAU,GAAG,MAAM,IAAA,sCAA6B,GAAE,CAAA;IACxD,MAAM,eAAe,GAAG;QACtB,aAAa,WAAW,IAAI,aAAa,IAAI,GAAG,EAAE;QAClD,iDAAiD,UAAU,GAAG;QAC9D,mDAAmD,SAAS,GAAG;QAC/D,2BAA2B;QAC3B,0CAA0C,IAAI,aAAa,iBAAiB,EAAE;KAC/E,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IACX,MAAM,WAAW,GAAG,MAAM,IAAA,WAAI,EAAC,eAAe,EAAE;QAC9C,YAAY,EAAE,IAAI;KACnB,CAAC,CAAA;IACF,iBAAO,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,CAAA;AACjC,CAAC"}
|
|
@@ -10,8 +10,8 @@ import { Result } from 'tinyexec';
|
|
|
10
10
|
* @param registry - Docker registry URL
|
|
11
11
|
* @param extraTags - Optional additional tags for the image
|
|
12
12
|
* @param appName
|
|
13
|
+
* @param disableEcrCache
|
|
13
14
|
* @param buildArgs - Optional build arguments for the Docker build
|
|
14
|
-
* @param isCI - Are we running this in a CI context, enabling caching & pushing. Default to true as we only need it within the docker-build executor
|
|
15
15
|
* @return {Promise<Result>}
|
|
16
16
|
*/
|
|
17
|
-
export declare function buildAndPushDockerImage(imageName: string, dockerfilePath: string, version: string, gitRepoUrl: string, commitSha: string, registry: string, extraTags: string[], appName: string,
|
|
17
|
+
export declare function buildAndPushDockerImage(imageName: string, dockerfilePath: string, version: string, gitRepoUrl: string, commitSha: string, registry: string, extraTags: string[], appName: string, disableEcrCache: boolean, buildArgs?: string): Promise<Result>;
|
package/dist/src/utils/docker.js
CHANGED
|
@@ -44,29 +44,31 @@ async function setupDockerBuilder(appName) {
|
|
|
44
44
|
* @param registry - Docker registry URL
|
|
45
45
|
* @param extraTags - Optional additional tags for the image
|
|
46
46
|
* @param appName
|
|
47
|
+
* @param disableEcrCache
|
|
47
48
|
* @param buildArgs - Optional build arguments for the Docker build
|
|
48
|
-
* @param isCI - Are we running this in a CI context, enabling caching & pushing. Default to true as we only need it within the docker-build executor
|
|
49
49
|
* @return {Promise<Result>}
|
|
50
50
|
*/
|
|
51
|
-
async function buildAndPushDockerImage(imageName, dockerfilePath, version, gitRepoUrl, commitSha, registry, extraTags = [], appName, buildArgs = undefined
|
|
51
|
+
async function buildAndPushDockerImage(imageName, dockerfilePath, version, gitRepoUrl, commitSha, registry, extraTags = [], appName, disableEcrCache, buildArgs = undefined) {
|
|
52
52
|
appName = appName.replaceAll('@', '-').replaceAll('/', '-');
|
|
53
53
|
const buildContextName = await setupDockerBuilder(appName);
|
|
54
54
|
// Build all tags including base version and extra tags
|
|
55
55
|
const tagArgs = [`${version}`, ...extraTags]
|
|
56
|
-
.map(tag =>
|
|
56
|
+
.map(tag => `-t ${registry}/${imageName}:${tag}`)
|
|
57
57
|
.join(' ');
|
|
58
58
|
// Setup registry cache (skip for public ECR which doesn't support BuildKit cache backend)
|
|
59
59
|
const isPublicEcr = registry.includes('public.ecr.aws');
|
|
60
60
|
const cacheArgParts = [];
|
|
61
|
-
if (!isPublicEcr
|
|
61
|
+
if (!isPublicEcr) {
|
|
62
62
|
const branch = await (0, github_1.getSanitizedCurrentGitBranch)();
|
|
63
63
|
const branchCacheRef = `${registry}/${imageName}:cache-build-${branch}`;
|
|
64
64
|
const mainCacheRef = `${registry}/${imageName}:cache-build-main`;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
if (!disableEcrCache) {
|
|
66
|
+
cacheArgParts.push(`--cache-from type=registry,ref=${branchCacheRef}`);
|
|
67
|
+
if (!(await (0, github_1.isDefaultBranch)(branch))) {
|
|
68
|
+
cacheArgParts.push(`--cache-from type=registry,ref=${mainCacheRef}`);
|
|
69
|
+
}
|
|
70
|
+
cacheArgParts.push(`--cache-to type=registry,ref=${branchCacheRef},mode=max`);
|
|
68
71
|
}
|
|
69
|
-
cacheArgParts.push(`--cache-to type=registry,ref=${branchCacheRef},mode=max`);
|
|
70
72
|
}
|
|
71
73
|
const buildArgsParts = [];
|
|
72
74
|
if (buildArgs) {
|
|
@@ -85,7 +87,7 @@ async function buildAndPushDockerImage(imageName, dockerfilePath, version, gitRe
|
|
|
85
87
|
`--builder ${buildContextName}`,
|
|
86
88
|
`-f ${dockerfilePath}`,
|
|
87
89
|
`--secret id=NPM_TOKEN`,
|
|
88
|
-
|
|
90
|
+
`--push`,
|
|
89
91
|
`--provenance=false`,
|
|
90
92
|
...cacheArgParts,
|
|
91
93
|
`--annotation org.opencontainers.image.source=${gitRepoUrl}`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-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ePath: string, pack
|
|
|
60
60
|
* @param packagedHelmChartFilePath
|
|
61
61
|
* @param ecrRepositoryPath
|
|
62
62
|
*/
|
|
63
|
-
export declare function pushOciPackagedHelm(packagedHelmChartFilePath: string, ecrRepositoryPath: string
|
|
63
|
+
export declare function pushOciPackagedHelm(packagedHelmChartFilePath: string, ecrRepositoryPath: string): Promise<import("tinyexec").Output>;
|
|
64
64
|
export {};
|
package/dist/src/utils/helm.js
CHANGED
|
@@ -15,7 +15,6 @@ const aws_auth_1 = require("./common/aws-auth");
|
|
|
15
15
|
const ecr_1 = require("./common/ecr");
|
|
16
16
|
const exec_1 = require("./common/exec");
|
|
17
17
|
const logger_1 = require("./common/logger");
|
|
18
|
-
const oci_1 = require("./common/oci");
|
|
19
18
|
const tshProxy = 'http://localhost';
|
|
20
19
|
/**
|
|
21
20
|
* Read & parse the Helm chart.yaml file
|
|
@@ -52,11 +51,11 @@ async function resetTeleportProxyHelmChartFile(helmFolderPath, tshPort) {
|
|
|
52
51
|
async function installHelmRepo(helmFolderPath) {
|
|
53
52
|
const chartConfig = await getHelmChartFile(helmFolderPath);
|
|
54
53
|
if (chartConfig.dependencies) {
|
|
55
|
-
for (
|
|
54
|
+
for (let i = 0; i < chartConfig.dependencies.length; i++) {
|
|
55
|
+
const dep = chartConfig.dependencies[i];
|
|
56
56
|
const repoName = `tsh-${dep.name}-${dep.alias}`;
|
|
57
57
|
// check if the repository is our private payfit repo or a public one
|
|
58
|
-
|
|
59
|
-
if (isPrivateRepo) {
|
|
58
|
+
if (dep.repository.includes(tshProxy)) {
|
|
60
59
|
// if it's our repo, we need the username and password to authenticate
|
|
61
60
|
if (!process.env.CHARTMUSEUM_USERNAME ||
|
|
62
61
|
!process.env.CHARTMUSEUM_PASSWORD)
|
|
@@ -152,14 +151,10 @@ async function pushPackagedHelm(packagedHelmChartFilePath, packagedHelmChartName
|
|
|
152
151
|
* @param packagedHelmChartFilePath
|
|
153
152
|
* @param ecrRepositoryPath
|
|
154
153
|
*/
|
|
155
|
-
async function pushOciPackagedHelm(packagedHelmChartFilePath, ecrRepositoryPath
|
|
154
|
+
async function pushOciPackagedHelm(packagedHelmChartFilePath, ecrRepositoryPath) {
|
|
156
155
|
// Login to ECR
|
|
157
156
|
await (0, aws_auth_1.loginToEcr)((0, ecr_1.getAwsEcrRegistry)());
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
const chartConfig = YAML.parse(fs.readFileSync(chartConfigPath, 'utf8'));
|
|
161
|
-
fs.writeFileSync('Chart.json', JSON.stringify(chartConfig, null, 2));
|
|
162
|
-
//Push the Helm chart to ECR using OCI format
|
|
163
|
-
await (0, oci_1.pushHelmOciToEcr)(ecrRepository, version, packagedHelmChartFilePath, ecrRegistry, 'Chart.json');
|
|
157
|
+
// Push the Helm chart to ECR using OCI format
|
|
158
|
+
return (0, exec_1.exec)(`helm push ${packagedHelmChartFilePath} oci://${ecrRepositoryPath}`);
|
|
164
159
|
}
|
|
165
160
|
//# sourceMappingURL=helm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helm.js","sourceRoot":"","sources":["../../../src/utils/helm.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"helm.js","sourceRoot":"","sources":["../../../src/utils/helm.ts"],"names":[],"mappings":";;AA+BA,4CAIC;AAOD,0EAaC;AAOD,0EAUC;AAMD,0CA4BC;AAQD,sCAuDC;AAQD,kCAQC;AASD,4CAmBC;AAOD,kDAWC;AAvOD,8BAA6B;AAC7B,wCAAuC;AAEvC,6BAA4B;AAE5B,gDAA8D;AAC9D,sCAAgD;AAChD,wCAAoC;AACpC,4CAAyC;AAEzC,MAAM,QAAQ,GAAG,kBAAkB,CAAA;AAiBnC;;;GAGG;AACI,KAAK,UAAU,gBAAgB,CACpC,cAAsB;IAEtB,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,GAAG,cAAc,aAAa,EAAE,MAAM,CAAC,CAAC,CAAA;AAC5E,CAAC;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AO,IAAA,WAAI,EACT,aAAa,yBAAyB,UAAU,iBAAiB,EAAE,CACpE,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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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