codefresh 0.85.0 → 0.87.0
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/__mocks__/codefresh.yml +40 -0
- package/docs/index.js +19 -18
- package/lib/interface/cli/commands/root/assign.cmd.js +18 -0
- package/lib/interface/cli/commands/root/root.sdk.spec.js +1 -1
- package/lib/interface/cli/commands/root/unassign.cmd.js +18 -0
- package/lib/interface/cli/commands/systemRuntimeEnvironments/apply.cmd.js +44 -0
- package/lib/interface/cli/commands/systemRuntimeEnvironments/assign.cmd.js +51 -0
- package/lib/interface/cli/commands/systemRuntimeEnvironments/unassign.cmd.js +51 -0
- package/lib/interface/cli/completion/tree.json +1 -1
- package/openapi.json +116 -2
- package/package.json +2 -2
- package/codefresh-arm.yml +0 -261
- package/codefresh-release.yml +0 -482
- package/codefresh.yml +0 -385
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# More examples of Codefresh YAML can be found at
|
|
2
|
+
# https://codefresh.io/docs/docs/yaml-examples/examples/
|
|
3
|
+
|
|
4
|
+
version: "1.0"
|
|
5
|
+
# Stages can help you organize your steps in stages
|
|
6
|
+
stages:
|
|
7
|
+
- "clone"
|
|
8
|
+
- "build"
|
|
9
|
+
- "test"
|
|
10
|
+
|
|
11
|
+
steps:
|
|
12
|
+
clone:
|
|
13
|
+
title: "Cloning repository"
|
|
14
|
+
type: "git-clone"
|
|
15
|
+
repo: "https://github.com/codefresh-io/cli/"
|
|
16
|
+
# Clone the master branch. Or, use ${{CF_BRANCH}} to get branch name from trigger
|
|
17
|
+
# Learn more at https://codefresh.io/docs/docs/codefresh-yaml/variables/
|
|
18
|
+
revision: "master"
|
|
19
|
+
stage: "clone"
|
|
20
|
+
|
|
21
|
+
build:
|
|
22
|
+
title: "Building Docker image"
|
|
23
|
+
type: "build"
|
|
24
|
+
image_name: "codefresh-io/cli"
|
|
25
|
+
working_directory: "${{clone}}"
|
|
26
|
+
# Set 'latest' tag on the image. Or, use built-in variables
|
|
27
|
+
# like ${{CF_BRANCH_TAG_NORMALIZED}} to use the current branch name/tag.
|
|
28
|
+
tag: "latest"
|
|
29
|
+
dockerfile: "Dockerfile"
|
|
30
|
+
stage: "build"
|
|
31
|
+
|
|
32
|
+
test:
|
|
33
|
+
title: "Running test"
|
|
34
|
+
type: "freestyle" # Run any command
|
|
35
|
+
image: "ubuntu:latest" # The image in which command will be executed
|
|
36
|
+
working_directory: "${{clone}}" # Running command where code cloned
|
|
37
|
+
commands:
|
|
38
|
+
- "ls"
|
|
39
|
+
stage: "test"
|
|
40
|
+
|
package/docs/index.js
CHANGED
|
@@ -16,21 +16,21 @@ const ALLOW_BETA_COMMANDS = process.env.ALLOW_BETA_COMMANDS;
|
|
|
16
16
|
const categoriesOrder = {
|
|
17
17
|
completion: 30,
|
|
18
18
|
authentication: 31,
|
|
19
|
-
'operate on resources'
|
|
20
|
-
pipelines
|
|
21
|
-
'pipelines v2 (beta)'
|
|
22
|
-
projects
|
|
19
|
+
'operate on resources': 32,
|
|
20
|
+
pipelines: 40,
|
|
21
|
+
'pipelines v2 (beta)': 42,
|
|
22
|
+
projects: 45,
|
|
23
23
|
builds: 50,
|
|
24
|
-
contexts
|
|
25
|
-
images
|
|
26
|
-
triggers
|
|
27
|
-
environments
|
|
28
|
-
compositions
|
|
29
|
-
'helm repos'
|
|
24
|
+
contexts: 70,
|
|
25
|
+
images: 80,
|
|
26
|
+
triggers: 90,
|
|
27
|
+
environments: 100,
|
|
28
|
+
compositions: 110,
|
|
29
|
+
'helm repos': 111,
|
|
30
30
|
'predefined pipelines': 120,
|
|
31
31
|
'cli config': 121,
|
|
32
32
|
teams: 130,
|
|
33
|
-
more
|
|
33
|
+
more: 150,
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
|
|
@@ -115,7 +115,7 @@ const getWeight = async (command) => {
|
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
117
|
|
|
118
|
-
const createCommandFile = async (nestedCategory,command) => {
|
|
118
|
+
const createCommandFile = async (nestedCategory, command) => {
|
|
119
119
|
const docs = command.prepareDocs();
|
|
120
120
|
const dir = path.resolve(baseDir, `${(nestedCategory || 'undefined').toLowerCase()}`);
|
|
121
121
|
|
|
@@ -216,7 +216,7 @@ const createCategoryFile = async (content, category) => {
|
|
|
216
216
|
* updates the category main file with a specific command
|
|
217
217
|
* possible extensions are: HEADER, COMMANDS
|
|
218
218
|
*/
|
|
219
|
-
const updateCategoryFileArray = async (nestedCategory,command, existingContent) => {
|
|
219
|
+
const updateCategoryFileArray = async (nestedCategory, command, existingContent) => {
|
|
220
220
|
const docs = command.prepareDocs();
|
|
221
221
|
const { category } = docs;
|
|
222
222
|
const finalCategoryArr = existingContent || {};
|
|
@@ -253,7 +253,7 @@ const updateCategoryFileArray = async (nestedCategory,command, existingContent)
|
|
|
253
253
|
finalCategoryArr.category = category;
|
|
254
254
|
newCmd.weight = await getWeight(command);
|
|
255
255
|
newCmd.content = commandString;
|
|
256
|
-
if (!finalCategoryArr.commands){
|
|
256
|
+
if (!finalCategoryArr.commands) {
|
|
257
257
|
finalCategoryArr.commands = [];
|
|
258
258
|
|
|
259
259
|
}
|
|
@@ -318,16 +318,16 @@ const createAutomatedDocs = async () => {
|
|
|
318
318
|
|
|
319
319
|
// document only in case category field exists and there are no sub commands under it
|
|
320
320
|
const docs = command.prepareDocs();
|
|
321
|
-
const {category} = docs;
|
|
321
|
+
const { category } = docs;
|
|
322
322
|
if (!category || await hasSubCommands(command)) {
|
|
323
323
|
continue;
|
|
324
324
|
}
|
|
325
325
|
|
|
326
326
|
nestedCategories[category] = await getNestedCategories(command);
|
|
327
327
|
const nestedCategory = nestedCategories[category];
|
|
328
|
-
categories[category] = await updateCategoryFileArray(nestedCategory,command, categories[category]);
|
|
328
|
+
categories[category] = await updateCategoryFileArray(nestedCategory, command, categories[category]);
|
|
329
329
|
await upsertCategoryFolder(nestedCategory);
|
|
330
|
-
await createCommandFile(nestedCategory,command);
|
|
330
|
+
await createCommandFile(nestedCategory, command);
|
|
331
331
|
}
|
|
332
332
|
|
|
333
333
|
let categoriesFinalContent = {};
|
|
@@ -356,7 +356,7 @@ const createDownloadPage = async () => {
|
|
|
356
356
|
links.push(asset.browser_download_url);
|
|
357
357
|
}));
|
|
358
358
|
const commandFilePath = path.resolve(baseDir, './installation/download.md');
|
|
359
|
-
const finalContent=
|
|
359
|
+
const finalContent =
|
|
360
360
|
'+++\n' +
|
|
361
361
|
'title = "Download"\n' +
|
|
362
362
|
'description = "asd"\n' +
|
|
@@ -372,6 +372,7 @@ const createDownloadPage = async () => {
|
|
|
372
372
|
' <li><a href=' + links[1] + ' target="_blank">Linux-x64</a></li>\n' +
|
|
373
373
|
' <li><a href=' + links[2] + ' target="_blank">Macos-x64</a></li>\n' +
|
|
374
374
|
' <li><a href=' + links[3] + ' target="_blank">Windows-x64</a></li>\n' +
|
|
375
|
+
' <li><a href=' + links[4] + ' target="_blank">Alpine-arm64</a></li>\n' +
|
|
375
376
|
'</ul> \n' +
|
|
376
377
|
'\n' +
|
|
377
378
|
'After downloading the binary, untar or unzip it and your are good to go.<br>\n' +
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const Command = require('../../Command');
|
|
2
|
+
|
|
3
|
+
const assign = new Command({
|
|
4
|
+
root: true,
|
|
5
|
+
command: 'assign',
|
|
6
|
+
description: 'Assign a resource',
|
|
7
|
+
usage: 'codefresh assign --help',
|
|
8
|
+
webDocs: {
|
|
9
|
+
title: 'Assign',
|
|
10
|
+
weight: 70,
|
|
11
|
+
},
|
|
12
|
+
builder: (yargs) => {
|
|
13
|
+
return yargs
|
|
14
|
+
.demandCommand(1, 'You need at least one command before moving on');
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
module.exports = assign;
|
|
@@ -140,7 +140,7 @@ describe('root commands', () => {
|
|
|
140
140
|
describe('Not valid yaml ', async () => {
|
|
141
141
|
it('should throw error for not valid file', async () => {
|
|
142
142
|
const argv = {
|
|
143
|
-
filenames: ['./codefresh.yml'],
|
|
143
|
+
filenames: ['./__mocks__/codefresh.yml'],
|
|
144
144
|
};
|
|
145
145
|
const result = await validateCmd.handler(argv)
|
|
146
146
|
.catch(err => err);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const Command = require('../../Command');
|
|
2
|
+
|
|
3
|
+
const unassign = new Command({
|
|
4
|
+
root: true,
|
|
5
|
+
command: 'unassign',
|
|
6
|
+
description: 'Unassign a resource',
|
|
7
|
+
usage: 'codefresh assign --help',
|
|
8
|
+
webDocs: {
|
|
9
|
+
title: 'Unassign',
|
|
10
|
+
weight: 70,
|
|
11
|
+
},
|
|
12
|
+
builder: (yargs) => {
|
|
13
|
+
return yargs
|
|
14
|
+
.demandCommand(1, 'You need at least one command before moving on');
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
module.exports = unassign;
|
|
@@ -4,6 +4,7 @@ const _ = require('lodash');
|
|
|
4
4
|
const applyRoot = require('../root/apply.cmd');
|
|
5
5
|
const { crudFilenameOption } = require('../../helpers/general');
|
|
6
6
|
const sysRe = require('../../helpers/sys-re');
|
|
7
|
+
const { sdk } = require('../../../../logic');
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
const command = new Command({
|
|
@@ -38,6 +39,18 @@ const command = new Command({
|
|
|
38
39
|
alias: 'd',
|
|
39
40
|
describe: 'Description of the new runtime environment',
|
|
40
41
|
})
|
|
42
|
+
.option('assign-accounts', {
|
|
43
|
+
alias: 'a',
|
|
44
|
+
type: Boolean,
|
|
45
|
+
// default: false,
|
|
46
|
+
describe: 'Assign runtime environment to accounts specified in the yaml',
|
|
47
|
+
})
|
|
48
|
+
.option('unassign-accounts', {
|
|
49
|
+
alias: 'u',
|
|
50
|
+
type: Boolean,
|
|
51
|
+
// default: false,
|
|
52
|
+
describe: 'Unassign runtime environment from accounts based on diff with current state',
|
|
53
|
+
})
|
|
41
54
|
.example('codefresh patch system-runtime-environments -f ./re.yml', 'Apply changes to a system runtime environment');
|
|
42
55
|
},
|
|
43
56
|
handler: async (argv) => {
|
|
@@ -60,6 +73,37 @@ const command = new Command({
|
|
|
60
73
|
} else {
|
|
61
74
|
await sysRe.update(options, body);
|
|
62
75
|
console.log(`Runtime-Environment: '${options.name}' patched.`);
|
|
76
|
+
const yamlAccounts = body.accounts;
|
|
77
|
+
if (yamlAccounts) {
|
|
78
|
+
if (argv.unassignAccounts) {
|
|
79
|
+
const re = await sysRe.get({ ...options, extend: false });
|
|
80
|
+
const accounts = _.difference(re.accounts, yamlAccounts);
|
|
81
|
+
if (!_.isEmpty(accounts)) {
|
|
82
|
+
await sdk.onPrem.runtimeEnvs.account.delete({ name: options.name }, { accounts });
|
|
83
|
+
console.log(`Runtime-Environment unassigned from accounts: ${accounts}`);
|
|
84
|
+
} else {
|
|
85
|
+
console.log('No accounts to unassign');
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (argv.assignAccounts) {
|
|
90
|
+
const re = await sysRe.get({ ...options, extend: false });
|
|
91
|
+
const accounts = _.difference(yamlAccounts, re.accounts);
|
|
92
|
+
const existing = await sdk.accounts.listAccounts({ _id: accounts });
|
|
93
|
+
const nonExisting = _.difference(accounts, existing.map(({id}) => id));
|
|
94
|
+
if (!_.isEmpty(nonExisting)) {
|
|
95
|
+
throw new CFError({
|
|
96
|
+
message: `Accounts do not exist: ${nonExisting}`,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
if (!_.isEmpty(accounts)) {
|
|
100
|
+
await sdk.onPrem.runtimeEnvs.account.modify({ name: options.name }, { accounts });
|
|
101
|
+
console.log(`Runtime-Environment assigned to accounts: ${accounts}`);
|
|
102
|
+
} else {
|
|
103
|
+
console.log('No accounts to assign');
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
63
107
|
}
|
|
64
108
|
},
|
|
65
109
|
});
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
const CFError = require('cf-errors');
|
|
2
|
+
const _ = require('lodash');
|
|
3
|
+
const Command = require('../../Command');
|
|
4
|
+
const assignRoot = require('../root/assign.cmd');
|
|
5
|
+
const { crudFilenameOption } = require('../../helpers/general');
|
|
6
|
+
const { sdk } = require('../../../../logic');
|
|
7
|
+
|
|
8
|
+
const command = new Command({
|
|
9
|
+
command: 'system-runtime-environments <name> <accounts..>',
|
|
10
|
+
aliases: ['sys-re', 'system-runtime-environment'],
|
|
11
|
+
parent: assignRoot,
|
|
12
|
+
description: 'Assign system-runtime-environments to accounts',
|
|
13
|
+
onPremCommand: true,
|
|
14
|
+
usage: 'Use assign to add runtime environments to accounts by their name or id',
|
|
15
|
+
webDocs: {
|
|
16
|
+
title: 'Assign System Runtime-Environments',
|
|
17
|
+
weight: 90,
|
|
18
|
+
},
|
|
19
|
+
builder: (yargs) => {
|
|
20
|
+
crudFilenameOption(yargs);
|
|
21
|
+
return yargs
|
|
22
|
+
.positional('name', {
|
|
23
|
+
describe: 'Runtime environments name',
|
|
24
|
+
required: true,
|
|
25
|
+
})
|
|
26
|
+
.positional('accounts', {
|
|
27
|
+
describe: 'Accounts names',
|
|
28
|
+
type: Array,
|
|
29
|
+
required: true,
|
|
30
|
+
})
|
|
31
|
+
.example(
|
|
32
|
+
'codefresh assign sys-re my-sys-re acc1 acc2',
|
|
33
|
+
'Add system runtime enviroment "my-sys-re" to accounts acc1 and acc2' ,
|
|
34
|
+
);
|
|
35
|
+
},
|
|
36
|
+
handler: async (argv) => {
|
|
37
|
+
const { name, accounts: accountsNames } = argv;
|
|
38
|
+
const accounts = await sdk.accounts.listAccounts({ name: accountsNames });
|
|
39
|
+
const nonExistentAccounts = _.difference(accountsNames, accounts.map((a) => a.name));
|
|
40
|
+
if (!_.isEmpty(nonExistentAccounts)) {
|
|
41
|
+
throw new CFError({
|
|
42
|
+
message: `Accounts do not exist: ${nonExistentAccounts}`,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
const accountIds = accounts.map((a) => a.id);
|
|
46
|
+
await sdk.onPrem.runtimeEnvs.account.modify({ name }, { accounts: accountIds });
|
|
47
|
+
console.log(`Successfully assigned "${name}" to accounts: ${accountsNames}`);
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
module.exports = command;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
const CFError = require('cf-errors');
|
|
2
|
+
const _ = require('lodash');
|
|
3
|
+
const Command = require('../../Command');
|
|
4
|
+
const unassignRoot = require('../root/unassign.cmd');
|
|
5
|
+
const { crudFilenameOption } = require('../../helpers/general');
|
|
6
|
+
const { sdk } = require('../../../../logic');
|
|
7
|
+
|
|
8
|
+
const command = new Command({
|
|
9
|
+
command: 'system-runtime-environments <name> <accounts..>',
|
|
10
|
+
aliases: ['sys-re', 'system-runtime-environment'],
|
|
11
|
+
parent: unassignRoot,
|
|
12
|
+
description: 'Unassign system-runtime-environments from accounts',
|
|
13
|
+
onPremCommand: true,
|
|
14
|
+
usage: 'Use unassign to remove runtime environments from accounts by their name or id',
|
|
15
|
+
webDocs: {
|
|
16
|
+
title: 'Unassign System Runtime-Environments',
|
|
17
|
+
weight: 90,
|
|
18
|
+
},
|
|
19
|
+
builder: (yargs) => {
|
|
20
|
+
crudFilenameOption(yargs);
|
|
21
|
+
return yargs
|
|
22
|
+
.positional('name', {
|
|
23
|
+
describe: 'Runtime environment name',
|
|
24
|
+
required: true,
|
|
25
|
+
})
|
|
26
|
+
.positional('accounts', {
|
|
27
|
+
describe: 'Accounts names',
|
|
28
|
+
type: Array,
|
|
29
|
+
required: true,
|
|
30
|
+
})
|
|
31
|
+
.example(
|
|
32
|
+
'codefresh unassign sys-re my-sys-re acc1 acc2',
|
|
33
|
+
'Remove system runtime enviroment "my-sys-re" from accounts acc1 and acc2',
|
|
34
|
+
);
|
|
35
|
+
},
|
|
36
|
+
handler: async (argv) => {
|
|
37
|
+
const { name, accounts: accountsNames } = argv;
|
|
38
|
+
const accounts = await sdk.accounts.listAccounts({ name: accountsNames });
|
|
39
|
+
const nonExistentAccounts = _.difference(accountsNames, accounts.map((a) => a.name));
|
|
40
|
+
if (!_.isEmpty(nonExistentAccounts)) {
|
|
41
|
+
throw new CFError({
|
|
42
|
+
message: `Accounts do not exist: ${nonExistentAccounts}`,
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
const accountIds = accounts.map((a) => a.id);
|
|
46
|
+
await sdk.onPrem.runtimeEnvs.account.delete({ name }, { accounts: accountIds });
|
|
47
|
+
console.log(`Successfully removed "${name}" from accounts: ${accountsNames}`);
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
module.exports = command;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"codefresh":{"analyze":{},"completion":{},"completions":{"alias":"completion"},"tag":{},"untag":{},"offline-logs":{"ensure-index":{},"offload-to-collection":{},"offload-to-file":{}},"run":{"__optionHandlers":["../commands/pipeline/run.completion.js"]},"add":{"repository":{},"repo":{"alias":"repository"}},"annotate":{"image":{},"img":{"alias":"image"}},"patch":{"__optionHandlers":["../commands/root/apply.completion.js"],"agent":{"__optionHandlers":["../commands/root/apply.completion.js"]},"board":{"__optionHandlers":["../commands/root/apply.completion.js"]},"project":{"__optionHandlers":["../commands/root/apply.completion.js"]},"section":{"__optionHandlers":["../commands/root/apply.completion.js"]},"runtime-environments":{"__optionHandlers":["../commands/root/apply.completion.js"]},"re":{"alias":"runtime-environments"},"runtime-environment":{"alias":"runtime-environments"},"system-runtime-environments":{"__optionHandlers":["../commands/root/apply.completion.js"]},"sys-re":{"alias":"system-runtime-environments"},"system-runtime-environment":{"alias":"system-runtime-environments"},"teams":{"__optionHandlers":["../commands/root/apply.completion.js"]},"team":{"alias":"teams"},"tm":{"alias":"teams"},"tokens":{"__optionHandlers":["../commands/root/apply.completion.js"]},"token":{"alias":"tokens"},"helm-repo":{"__optionHandlers":["../commands/root/apply.completion.js"]},"context":{"__optionHandlers":["../commands/root/apply.completion.js"]},"ctx":{"alias":"context"}},"auth":{"create-context":{},"current-context":{},"get-contexts":{},"use-context":{}},"components":{"download":{},"update":{}},"create":{"__optionHandlers":["../commands/root/create.completion.js"],"agent":{"__optionHandlers":["../commands/root/create.completion.js"]},"clusters":{"__optionHandlers":["../commands/root/create.completion.js"]},"cluster":{"alias":"clusters"},"annotation":{"__optionHandlers":["../commands/root/create.completion.js"]},"board":{"__optionHandlers":["../commands/root/create.completion.js"]},"composition":{"__optionHandlers":["../commands/composition/create.completion.js","../commands/root/create.completion.js"]},"com":{"alias":"composition"},"project":{"__optionHandlers":["../commands/root/create.completion.js"]},"section":{"__optionHandlers":["../commands/root/create.completion.js"]},"runtime-environments":{"__optionHandlers":["../commands/root/create.completion.js"]},"re":{"alias":"runtime-environments"},"runtime-environment":{"alias":"runtime-environments"},"teams":{"__optionHandlers":["../commands/root/create.completion.js"]},"team":{"alias":"teams"},"tm":{"alias":"teams"},"token":{"__optionHandlers":["../commands/root/create.completion.js"]},"helm-repo":{"__optionHandlers":["../commands/root/create.completion.js"]},"registry":{"__optionHandlers":["../commands/root/create.completion.js"],"standard":{"__optionHandlers":["../commands/root/create.completion.js"]}},"trigger":{"__optionHandlers":["../commands/root/create.completion.js"]},"t":{"alias":"trigger"},"trigger-event":{"__optionHandlers":["../commands/root/create.completion.js"]},"te":{"alias":"trigger-event"},"workflow-data-item":{"__optionHandlers":["../commands/root/create.completion.js"]},"wdi":{"alias":"workflow-data-item"},"context":{"__optionHandlers":["../commands/root/create.completion.js"],"config":{"__optionHandlers":["../commands/root/create.completion.js"]},"secret":{"__optionHandlers":["../commands/root/create.completion.js"]},"secret-yaml":{"__optionHandlers":["../commands/root/create.completion.js"]},"yaml":{"__optionHandlers":["../commands/root/create.completion.js"]},"git":{"__optionHandlers":["../commands/root/create.completion.js"],"bitbucket":{"__optionHandlers":["../commands/root/create.completion.js"]},"github":{"__optionHandlers":["../commands/root/create.completion.js"]},"gitlab":{"__optionHandlers":["../commands/root/create.completion.js"]},"stash":{"__optionHandlers":["../commands/root/create.completion.js"]}},"helm-repository":{"__optionHandlers":["../commands/root/create.completion.js"],"http":{"__optionHandlers":["../commands/root/create.completion.js"]},"s3":{"__optionHandlers":["../commands/root/create.completion.js"]}},"secret-store":{"__optionHandlers":["../commands/root/create.completion.js"],"hashicorp-vault":{"__optionHandlers":["../commands/root/create.completion.js"]},"kubernetes-runtime":{"__optionHandlers":["../commands/root/create.completion.js"]},"kubernetes":{"__optionHandlers":["../commands/root/create.completion.js"]}}},"ctx":{"alias":"context","config":{"__optionHandlers":["../commands/root/create.completion.js"]},"secret":{"__optionHandlers":["../commands/root/create.completion.js"]},"secret-yaml":{"__optionHandlers":["../commands/root/create.completion.js"]},"yaml":{"__optionHandlers":["../commands/root/create.completion.js"]},"git":{"__optionHandlers":["../commands/root/create.completion.js"],"bitbucket":{"__optionHandlers":["../commands/root/create.completion.js"]},"github":{"__optionHandlers":["../commands/root/create.completion.js"]},"gitlab":{"__optionHandlers":["../commands/root/create.completion.js"]},"stash":{"__optionHandlers":["../commands/root/create.completion.js"]}},"helm-repository":{"__optionHandlers":["../commands/root/create.completion.js"],"http":{"__optionHandlers":["../commands/root/create.completion.js"]},"s3":{"__optionHandlers":["../commands/root/create.completion.js"]}},"secret-store":{"__optionHandlers":["../commands/root/create.completion.js"],"hashicorp-vault":{"__optionHandlers":["../commands/root/create.completion.js"]},"kubernetes-runtime":{"__optionHandlers":["../commands/root/create.completion.js"]},"kubernetes":{"__optionHandlers":["../commands/root/create.completion.js"]}}}},"delete":{"__optionHandlers":["../commands/root/delete.completion.js"],"agent":{"__optionHandlers":["../commands/root/delete.completion.js"]},"annotation":{"__optionHandlers":["../commands/root/delete.completion.js"]},"board":{"__optionHandlers":["../commands/root/delete.completion.js"]},"cluster":{"__optionHandlers":["../commands/root/delete.completion.js"]},"clusters":{"alias":"cluster"},"composition":{"__optionHandlers":["../commands/root/delete.completion.js"]},"com":{"alias":"composition"},"environment":{"__optionHandlers":["../commands/root/delete.completion.js"]},"env":{"alias":"environment"},"pipeline":{"__optionHandlers":["../commands/root/delete.completion.js"]},"pip":{"alias":"pipeline"},"project":{"__optionHandlers":["../commands/root/delete.completion.js"]},"repository":{"__optionHandlers":["../commands/root/delete.completion.js"]},"repo":{"alias":"repository"},"section":{"__optionHandlers":["../commands/root/delete.completion.js"]},"step-type":{"__optionHandlers":["../commands/root/delete.completion.js"]},"runtime-environments":{"__optionHandlers":["../commands/root/delete.completion.js"]},"re":{"alias":"runtime-environments"},"runtime-environment":{"alias":"runtime-environments"},"system-runtime-environments":{"__optionHandlers":["../commands/root/delete.completion.js"]},"sys-re":{"alias":"system-runtime-environments"},"system-runtime-environment":{"alias":"system-runtime-environments"},"teams":{"__optionHandlers":["../commands/root/delete.completion.js"]},"team":{"alias":"teams"},"tm":{"alias":"teams"},"tokens":{"__optionHandlers":["../commands/root/delete.completion.js"]},"token":{"alias":"tokens"},"helm-repo":{"__optionHandlers":["../commands/root/delete.completion.js"]},"registry":{"__optionHandlers":["../commands/root/delete.completion.js"]},"trigger":{"__optionHandlers":["../commands/root/delete.completion.js"]},"t":{"alias":"trigger"},"trigger-event":{"__optionHandlers":["../commands/root/delete.completion.js"]},"te":{"alias":"trigger-event"},"context":{"__optionHandlers":["../commands/root/delete.completion.js"]},"ctx":{"alias":"context"}},"diff":{"__optionHandlers":["../commands/root/diff.completion.js"],"runtime-environments":{"__optionHandlers":["../commands/root/diff.completion.js"]},"re":{"alias":"runtime-environments"},"runtime-environment":{"alias":"runtime-environments"},"system-runtime-environments":{"__optionHandlers":["../commands/root/diff.completion.js"]},"sys-re":{"alias":"system-runtime-environments"},"system-runtime-environment":{"alias":"system-runtime-environments"}},"download":{"audit":{}},"generate":{"image-pull-secret":{}},"get":{"__optionHandlers":["../commands/root/get.completion.js"],"runtime-environment-base-images":{"__optionHandlers":["../commands/root/get.completion.js"]},"re-base-images":{"alias":"runtime-environment-base-images"},"agents":{"__optionHandlers":["../commands/root/get.completion.js"]},"agent":{"alias":"agents"},"annotation":{"__optionHandlers":["../commands/root/get.completion.js"]},"boards":{"__optionHandlers":["../commands/root/get.completion.js"]},"board":{"alias":"boards"},"clusters":{"__optionHandlers":["../commands/root/get.completion.js"]},"cluster":{"alias":"clusters"},"compositions":{"__optionHandlers":["../commands/root/get.completion.js"]},"com":{"alias":"compositions"},"composition":{"alias":"compositions"},"environments":{"__optionHandlers":["../commands/root/get.completion.js"]},"env":{"alias":"environments"},"environment":{"alias":"environments"},"images":{"__optionHandlers":["../commands/root/get.completion.js"]},"img":{"alias":"images"},"image":{"alias":"images"},"pipelines":{"__positionalHandler":"../commands/pipeline/get.completion.js","__optionHandlers":["../commands/root/get.completion.js"]},"pip":{"alias":"pipelines"},"pipeline":{"alias":"pipelines"},"projects":{"__optionHandlers":["../commands/root/get.completion.js"]},"project":{"alias":"projects"},"repository":{"__optionHandlers":["../commands/root/get.completion.js"]},"repo":{"alias":"repository"},"sections":{"__optionHandlers":["../commands/root/get.completion.js"]},"section":{"alias":"sections"},"step-types":{"__positionalHandler":"../commands/step/get.completion.js","__optionHandlers":["../commands/root/get.completion.js"]},"step-type":{"alias":"step-types"},"runtime-environments":{"__optionHandlers":["../commands/root/get.completion.js"]},"re":{"alias":"runtime-environments"},"runtime-environment":{"alias":"runtime-environments"},"system-runtime-environments":{"__optionHandlers":["../commands/root/get.completion.js"]},"sys-re":{"alias":"system-runtime-environments"},"system-runtime-environment":{"alias":"system-runtime-environments"},"teams":{"__optionHandlers":["../commands/root/get.completion.js"]},"team":{"alias":"teams"},"tm":{"alias":"teams"},"tokens":{"__optionHandlers":["../commands/root/get.completion.js"]},"token":{"alias":"tokens"},"helm-repo":{"__optionHandlers":["../commands/root/get.completion.js"]},"registry":{"__optionHandlers":["../commands/root/get.completion.js"]},"triggers":{"__optionHandlers":["../commands/root/get.completion.js"]},"trigger":{"alias":"triggers"},"t":{"alias":"triggers"},"trigger-events":{"__optionHandlers":["../commands/root/get.completion.js"]},"trigger-event":{"alias":"trigger-events"},"te":{"alias":"trigger-events"},"trigger-types":{"__optionHandlers":["../commands/root/get.completion.js"]},"trigger-type":{"alias":"trigger-types"},"tt":{"alias":"trigger-types"},"builds":{"__optionHandlers":["../commands/root/get.completion.js"]},"build":{"alias":"builds"},"workflow-data-item":{"__optionHandlers":["../commands/root/get.completion.js"]},"wdi":{"alias":"workflow-data-item"},"contexts":{"__optionHandlers":["../commands/root/get.completion.js"]},"ctx":{"alias":"contexts"},"context":{"alias":"contexts"}},"install":{"runtime":{},"agent":{},"app-proxy":{},"monitor":{},"gitops":{}},"replace":{"__optionHandlers":["../commands/root/replace.completion.js"],"composition":{"__optionHandlers":["../commands/composition/replace.completion.js","../commands/root/replace.completion.js"]},"com":{"alias":"composition"}},"runner":{"delete":{},"execute-test-pipeline":{},"info":{},"init":{},"upgrade":{}},"synchronize":{"teams":{},"team":{"alias":"teams"},"tm":{"alias":"teams"}},"uninstall":{"agent":{},"app-proxy":{},"runtime":{},"monitor":{},"gitops":{}},"upgrade":{"app-proxy":{},"gitops":{}},"validate":{"__positionalHandler":"../commands/root/validate.completion.js"},"version":{},"attach":{},"cli-config":{"get":{},"help":{},"profile":{},"set":{}},"set-helm-config":{},"install-chart":{},"helm-promotion":{},"delete-release":{},"rollback-release":{},"test-release":{},"approve":{},"deny":{},"logs":{},"restart":{},"terminate":{},"wait":{}}}
|
|
1
|
+
{"codefresh":{"analyze":{},"completion":{},"completions":{"alias":"completion"},"tag":{},"untag":{},"offline-logs":{"ensure-index":{},"offload-to-collection":{},"offload-to-file":{}},"run":{"__optionHandlers":["../commands/pipeline/run.completion.js"]},"attach":{},"add":{"repository":{},"repo":{"alias":"repository"}},"annotate":{"image":{},"img":{"alias":"image"}},"patch":{"__optionHandlers":["../commands/root/apply.completion.js"],"agent":{"__optionHandlers":["../commands/root/apply.completion.js"]},"board":{"__optionHandlers":["../commands/root/apply.completion.js"]},"project":{"__optionHandlers":["../commands/root/apply.completion.js"]},"runtime-environments":{"__optionHandlers":["../commands/root/apply.completion.js"]},"re":{"alias":"runtime-environments"},"runtime-environment":{"alias":"runtime-environments"},"section":{"__optionHandlers":["../commands/root/apply.completion.js"]},"system-runtime-environments":{"__optionHandlers":["../commands/root/apply.completion.js"]},"sys-re":{"alias":"system-runtime-environments"},"system-runtime-environment":{"alias":"system-runtime-environments"},"teams":{"__optionHandlers":["../commands/root/apply.completion.js"]},"team":{"alias":"teams"},"tm":{"alias":"teams"},"tokens":{"__optionHandlers":["../commands/root/apply.completion.js"]},"token":{"alias":"tokens"},"helm-repo":{"__optionHandlers":["../commands/root/apply.completion.js"]},"context":{"__optionHandlers":["../commands/root/apply.completion.js"]},"ctx":{"alias":"context"}},"assign":{"system-runtime-environments":{},"sys-re":{"alias":"system-runtime-environments"},"system-runtime-environment":{"alias":"system-runtime-environments"}},"auth":{"create-context":{},"current-context":{},"get-contexts":{},"use-context":{}},"components":{"download":{},"update":{}},"create":{"__optionHandlers":["../commands/root/create.completion.js"],"agent":{"__optionHandlers":["../commands/root/create.completion.js"]},"clusters":{"__optionHandlers":["../commands/root/create.completion.js"]},"cluster":{"alias":"clusters"},"annotation":{"__optionHandlers":["../commands/root/create.completion.js"]},"board":{"__optionHandlers":["../commands/root/create.completion.js"]},"composition":{"__optionHandlers":["../commands/composition/create.completion.js","../commands/root/create.completion.js"]},"com":{"alias":"composition"},"project":{"__optionHandlers":["../commands/root/create.completion.js"]},"runtime-environments":{"__optionHandlers":["../commands/root/create.completion.js"]},"re":{"alias":"runtime-environments"},"runtime-environment":{"alias":"runtime-environments"},"section":{"__optionHandlers":["../commands/root/create.completion.js"]},"teams":{"__optionHandlers":["../commands/root/create.completion.js"]},"team":{"alias":"teams"},"tm":{"alias":"teams"},"token":{"__optionHandlers":["../commands/root/create.completion.js"]},"helm-repo":{"__optionHandlers":["../commands/root/create.completion.js"]},"registry":{"__optionHandlers":["../commands/root/create.completion.js"],"standard":{"__optionHandlers":["../commands/root/create.completion.js"]}},"trigger":{"__optionHandlers":["../commands/root/create.completion.js"]},"t":{"alias":"trigger"},"trigger-event":{"__optionHandlers":["../commands/root/create.completion.js"]},"te":{"alias":"trigger-event"},"workflow-data-item":{"__optionHandlers":["../commands/root/create.completion.js"]},"wdi":{"alias":"workflow-data-item"},"context":{"__optionHandlers":["../commands/root/create.completion.js"],"config":{"__optionHandlers":["../commands/root/create.completion.js"]},"secret":{"__optionHandlers":["../commands/root/create.completion.js"]},"secret-yaml":{"__optionHandlers":["../commands/root/create.completion.js"]},"yaml":{"__optionHandlers":["../commands/root/create.completion.js"]},"git":{"__optionHandlers":["../commands/root/create.completion.js"],"bitbucket":{"__optionHandlers":["../commands/root/create.completion.js"]},"github":{"__optionHandlers":["../commands/root/create.completion.js"]},"gitlab":{"__optionHandlers":["../commands/root/create.completion.js"]},"stash":{"__optionHandlers":["../commands/root/create.completion.js"]}},"helm-repository":{"__optionHandlers":["../commands/root/create.completion.js"],"http":{"__optionHandlers":["../commands/root/create.completion.js"]},"s3":{"__optionHandlers":["../commands/root/create.completion.js"]}},"secret-store":{"__optionHandlers":["../commands/root/create.completion.js"],"hashicorp-vault":{"__optionHandlers":["../commands/root/create.completion.js"]},"kubernetes-runtime":{"__optionHandlers":["../commands/root/create.completion.js"]},"kubernetes":{"__optionHandlers":["../commands/root/create.completion.js"]}}},"ctx":{"alias":"context","config":{"__optionHandlers":["../commands/root/create.completion.js"]},"secret":{"__optionHandlers":["../commands/root/create.completion.js"]},"secret-yaml":{"__optionHandlers":["../commands/root/create.completion.js"]},"yaml":{"__optionHandlers":["../commands/root/create.completion.js"]},"git":{"__optionHandlers":["../commands/root/create.completion.js"],"bitbucket":{"__optionHandlers":["../commands/root/create.completion.js"]},"github":{"__optionHandlers":["../commands/root/create.completion.js"]},"gitlab":{"__optionHandlers":["../commands/root/create.completion.js"]},"stash":{"__optionHandlers":["../commands/root/create.completion.js"]}},"helm-repository":{"__optionHandlers":["../commands/root/create.completion.js"],"http":{"__optionHandlers":["../commands/root/create.completion.js"]},"s3":{"__optionHandlers":["../commands/root/create.completion.js"]}},"secret-store":{"__optionHandlers":["../commands/root/create.completion.js"],"hashicorp-vault":{"__optionHandlers":["../commands/root/create.completion.js"]},"kubernetes-runtime":{"__optionHandlers":["../commands/root/create.completion.js"]},"kubernetes":{"__optionHandlers":["../commands/root/create.completion.js"]}}}},"delete":{"__optionHandlers":["../commands/root/delete.completion.js"],"agent":{"__optionHandlers":["../commands/root/delete.completion.js"]},"annotation":{"__optionHandlers":["../commands/root/delete.completion.js"]},"board":{"__optionHandlers":["../commands/root/delete.completion.js"]},"cluster":{"__optionHandlers":["../commands/root/delete.completion.js"]},"clusters":{"alias":"cluster"},"composition":{"__optionHandlers":["../commands/root/delete.completion.js"]},"com":{"alias":"composition"},"environment":{"__optionHandlers":["../commands/root/delete.completion.js"]},"env":{"alias":"environment"},"pipeline":{"__optionHandlers":["../commands/root/delete.completion.js"]},"pip":{"alias":"pipeline"},"project":{"__optionHandlers":["../commands/root/delete.completion.js"]},"repository":{"__optionHandlers":["../commands/root/delete.completion.js"]},"repo":{"alias":"repository"},"runtime-environments":{"__optionHandlers":["../commands/root/delete.completion.js"]},"re":{"alias":"runtime-environments"},"runtime-environment":{"alias":"runtime-environments"},"section":{"__optionHandlers":["../commands/root/delete.completion.js"]},"step-type":{"__optionHandlers":["../commands/root/delete.completion.js"]},"system-runtime-environments":{"__optionHandlers":["../commands/root/delete.completion.js"]},"sys-re":{"alias":"system-runtime-environments"},"system-runtime-environment":{"alias":"system-runtime-environments"},"teams":{"__optionHandlers":["../commands/root/delete.completion.js"]},"team":{"alias":"teams"},"tm":{"alias":"teams"},"tokens":{"__optionHandlers":["../commands/root/delete.completion.js"]},"token":{"alias":"tokens"},"helm-repo":{"__optionHandlers":["../commands/root/delete.completion.js"]},"registry":{"__optionHandlers":["../commands/root/delete.completion.js"]},"trigger":{"__optionHandlers":["../commands/root/delete.completion.js"]},"t":{"alias":"trigger"},"trigger-event":{"__optionHandlers":["../commands/root/delete.completion.js"]},"te":{"alias":"trigger-event"},"context":{"__optionHandlers":["../commands/root/delete.completion.js"]},"ctx":{"alias":"context"}},"diff":{"__optionHandlers":["../commands/root/diff.completion.js"],"runtime-environments":{"__optionHandlers":["../commands/root/diff.completion.js"]},"re":{"alias":"runtime-environments"},"runtime-environment":{"alias":"runtime-environments"},"system-runtime-environments":{"__optionHandlers":["../commands/root/diff.completion.js"]},"sys-re":{"alias":"system-runtime-environments"},"system-runtime-environment":{"alias":"system-runtime-environments"}},"download":{"audit":{}},"generate":{"image-pull-secret":{}},"get":{"__optionHandlers":["../commands/root/get.completion.js"],"runtime-environment-base-images":{"__optionHandlers":["../commands/root/get.completion.js"]},"re-base-images":{"alias":"runtime-environment-base-images"},"agents":{"__optionHandlers":["../commands/root/get.completion.js"]},"agent":{"alias":"agents"},"annotation":{"__optionHandlers":["../commands/root/get.completion.js"]},"boards":{"__optionHandlers":["../commands/root/get.completion.js"]},"board":{"alias":"boards"},"clusters":{"__optionHandlers":["../commands/root/get.completion.js"]},"cluster":{"alias":"clusters"},"compositions":{"__optionHandlers":["../commands/root/get.completion.js"]},"com":{"alias":"compositions"},"composition":{"alias":"compositions"},"environments":{"__optionHandlers":["../commands/root/get.completion.js"]},"env":{"alias":"environments"},"environment":{"alias":"environments"},"images":{"__optionHandlers":["../commands/root/get.completion.js"]},"img":{"alias":"images"},"image":{"alias":"images"},"pipelines":{"__positionalHandler":"../commands/pipeline/get.completion.js","__optionHandlers":["../commands/root/get.completion.js"]},"pip":{"alias":"pipelines"},"pipeline":{"alias":"pipelines"},"projects":{"__optionHandlers":["../commands/root/get.completion.js"]},"project":{"alias":"projects"},"repository":{"__optionHandlers":["../commands/root/get.completion.js"]},"repo":{"alias":"repository"},"runtime-environments":{"__optionHandlers":["../commands/root/get.completion.js"]},"re":{"alias":"runtime-environments"},"runtime-environment":{"alias":"runtime-environments"},"sections":{"__optionHandlers":["../commands/root/get.completion.js"]},"section":{"alias":"sections"},"step-types":{"__positionalHandler":"../commands/step/get.completion.js","__optionHandlers":["../commands/root/get.completion.js"]},"step-type":{"alias":"step-types"},"system-runtime-environments":{"__optionHandlers":["../commands/root/get.completion.js"]},"sys-re":{"alias":"system-runtime-environments"},"system-runtime-environment":{"alias":"system-runtime-environments"},"teams":{"__optionHandlers":["../commands/root/get.completion.js"]},"team":{"alias":"teams"},"tm":{"alias":"teams"},"tokens":{"__optionHandlers":["../commands/root/get.completion.js"]},"token":{"alias":"tokens"},"helm-repo":{"__optionHandlers":["../commands/root/get.completion.js"]},"registry":{"__optionHandlers":["../commands/root/get.completion.js"]},"triggers":{"__optionHandlers":["../commands/root/get.completion.js"]},"trigger":{"alias":"triggers"},"t":{"alias":"triggers"},"trigger-events":{"__optionHandlers":["../commands/root/get.completion.js"]},"trigger-event":{"alias":"trigger-events"},"te":{"alias":"trigger-events"},"trigger-types":{"__optionHandlers":["../commands/root/get.completion.js"]},"trigger-type":{"alias":"trigger-types"},"tt":{"alias":"trigger-types"},"builds":{"__optionHandlers":["../commands/root/get.completion.js"]},"build":{"alias":"builds"},"workflow-data-item":{"__optionHandlers":["../commands/root/get.completion.js"]},"wdi":{"alias":"workflow-data-item"},"contexts":{"__optionHandlers":["../commands/root/get.completion.js"]},"ctx":{"alias":"contexts"},"context":{"alias":"contexts"}},"install":{"runtime":{},"agent":{},"app-proxy":{},"monitor":{},"gitops":{}},"replace":{"__optionHandlers":["../commands/root/replace.completion.js"],"composition":{"__optionHandlers":["../commands/composition/replace.completion.js","../commands/root/replace.completion.js"]},"com":{"alias":"composition"}},"runner":{"delete":{},"execute-test-pipeline":{},"info":{},"init":{},"upgrade":{}},"synchronize":{"teams":{},"team":{"alias":"teams"},"tm":{"alias":"teams"}},"unassign":{"system-runtime-environments":{},"sys-re":{"alias":"system-runtime-environments"},"system-runtime-environment":{"alias":"system-runtime-environments"}},"uninstall":{"agent":{},"app-proxy":{},"runtime":{},"monitor":{},"gitops":{}},"upgrade":{"app-proxy":{},"gitops":{}},"validate":{"__positionalHandler":"../commands/root/validate.completion.js"},"version":{},"cli-config":{"get":{},"help":{},"profile":{},"set":{}},"set-helm-config":{},"install-chart":{},"helm-promotion":{},"delete-release":{},"rollback-release":{},"test-release":{},"approve":{},"deny":{},"logs":{},"restart":{},"terminate":{},"wait":{}}}
|
package/openapi.json
CHANGED
|
@@ -1036,7 +1036,30 @@
|
|
|
1036
1036
|
"description": "get all the accounts in the system",
|
|
1037
1037
|
"operationId": "accounts-list-accounts",
|
|
1038
1038
|
"summary": "List accounts",
|
|
1039
|
-
"parameters": [
|
|
1039
|
+
"parameters": [
|
|
1040
|
+
{
|
|
1041
|
+
"name": "name",
|
|
1042
|
+
"in": "query",
|
|
1043
|
+
"required": false,
|
|
1044
|
+
"schema": {
|
|
1045
|
+
"type": "array",
|
|
1046
|
+
"items": {
|
|
1047
|
+
"type": "string"
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
"name": "_id",
|
|
1053
|
+
"in": "query",
|
|
1054
|
+
"required": false,
|
|
1055
|
+
"schema": {
|
|
1056
|
+
"type": "array",
|
|
1057
|
+
"items": {
|
|
1058
|
+
"type": "string"
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
],
|
|
1040
1063
|
"x-sdk-interface": "accounts.listAccounts"
|
|
1041
1064
|
},
|
|
1042
1065
|
"post": {
|
|
@@ -1318,6 +1341,82 @@
|
|
|
1318
1341
|
"x-sdk-interface": "onPrem.runtimeEnvs.account.list"
|
|
1319
1342
|
}
|
|
1320
1343
|
},
|
|
1344
|
+
"/admin/runtime-environments/account/modify/{name}": {
|
|
1345
|
+
"put": {
|
|
1346
|
+
"x-action": "addRuntimeEnvToAccountByAdmin",
|
|
1347
|
+
"x-entityId": {
|
|
1348
|
+
"pathName": "params.name"
|
|
1349
|
+
},
|
|
1350
|
+
"requestBody": {
|
|
1351
|
+
"content": {
|
|
1352
|
+
"application/json": {
|
|
1353
|
+
"schema": {
|
|
1354
|
+
"type": "object"
|
|
1355
|
+
}
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
},
|
|
1359
|
+
"responses": {
|
|
1360
|
+
"200": {
|
|
1361
|
+
"$ref": "#/components/responses/Json"
|
|
1362
|
+
}
|
|
1363
|
+
},
|
|
1364
|
+
"tags": [
|
|
1365
|
+
"onPrem.runtimeEnvs.account"
|
|
1366
|
+
],
|
|
1367
|
+
"operationId": "onPrem-runtimeEnvs-account-modify",
|
|
1368
|
+
"parameters": [
|
|
1369
|
+
{
|
|
1370
|
+
"in": "path",
|
|
1371
|
+
"name": "name",
|
|
1372
|
+
"schema": {
|
|
1373
|
+
"type": "string"
|
|
1374
|
+
},
|
|
1375
|
+
"required": true,
|
|
1376
|
+
"description": "Runtime environment name"
|
|
1377
|
+
}
|
|
1378
|
+
],
|
|
1379
|
+
"summary": "Add to account",
|
|
1380
|
+
"x-sdk-interface": "onPrem.runtimeEnvs.account.modify"
|
|
1381
|
+
},
|
|
1382
|
+
"delete": {
|
|
1383
|
+
"x-action": "removeRuntimeEnvFromAccountByAdmin",
|
|
1384
|
+
"x-entityId": {
|
|
1385
|
+
"pathName": "params.name"
|
|
1386
|
+
},
|
|
1387
|
+
"requestBody": {
|
|
1388
|
+
"content": {
|
|
1389
|
+
"application/json": {
|
|
1390
|
+
"schema": {
|
|
1391
|
+
"type": "object"
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
},
|
|
1396
|
+
"responses": {
|
|
1397
|
+
"200": {
|
|
1398
|
+
"$ref": "#/components/responses/Json"
|
|
1399
|
+
}
|
|
1400
|
+
},
|
|
1401
|
+
"tags": [
|
|
1402
|
+
"onPrem.runtimeEnvs.account"
|
|
1403
|
+
],
|
|
1404
|
+
"operationId": "onPrem-runtimeEnvs-account-delete",
|
|
1405
|
+
"parameters": [
|
|
1406
|
+
{
|
|
1407
|
+
"in": "path",
|
|
1408
|
+
"name": "name",
|
|
1409
|
+
"schema": {
|
|
1410
|
+
"type": "string"
|
|
1411
|
+
},
|
|
1412
|
+
"required": true,
|
|
1413
|
+
"description": "Runtime environment name"
|
|
1414
|
+
}
|
|
1415
|
+
],
|
|
1416
|
+
"summary": "Delete for account",
|
|
1417
|
+
"x-sdk-interface": "onPrem.runtimeEnvs.account.delete"
|
|
1418
|
+
}
|
|
1419
|
+
},
|
|
1321
1420
|
"/admin/runtime-environments/default/{plan}/{name}": {
|
|
1322
1421
|
"put": {
|
|
1323
1422
|
"responses": {
|
|
@@ -8408,6 +8507,18 @@
|
|
|
8408
8507
|
}
|
|
8409
8508
|
},
|
|
8410
8509
|
"components": {
|
|
8510
|
+
"responses": {
|
|
8511
|
+
"Json": {
|
|
8512
|
+
"content": {
|
|
8513
|
+
"application/json": {
|
|
8514
|
+
"schema": {
|
|
8515
|
+
"$ref": "#/components/schemas/Json"
|
|
8516
|
+
}
|
|
8517
|
+
}
|
|
8518
|
+
},
|
|
8519
|
+
"description": "json"
|
|
8520
|
+
}
|
|
8521
|
+
},
|
|
8411
8522
|
"parameters": {
|
|
8412
8523
|
"accountName": {
|
|
8413
8524
|
"in": "path",
|
|
@@ -8523,6 +8634,9 @@
|
|
|
8523
8634
|
}
|
|
8524
8635
|
}
|
|
8525
8636
|
}
|
|
8637
|
+
},
|
|
8638
|
+
"Json": {
|
|
8639
|
+
"type": "object"
|
|
8526
8640
|
}
|
|
8527
8641
|
},
|
|
8528
8642
|
"requestBodies": {
|
|
@@ -8669,7 +8783,7 @@
|
|
|
8669
8783
|
"content": {
|
|
8670
8784
|
"application/json": {
|
|
8671
8785
|
"schema": {
|
|
8672
|
-
"$ref": "#/components/schemas/
|
|
8786
|
+
"$ref": "#/components/schemas/Json"
|
|
8673
8787
|
}
|
|
8674
8788
|
}
|
|
8675
8789
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codefresh",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.87.0",
|
|
4
4
|
"description": "Codefresh command line utility",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"preferGlobal": true,
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"test": "jest .spec.js --coverage",
|
|
10
10
|
"e2e": "bash e2e/e2e.spec.sh",
|
|
11
11
|
"eslint": "eslint --fix lib/logic/**",
|
|
12
|
-
"pkg": "pkg . -t node16-alpine-x64,node16-macos-x64,node16-linux-x64,node16-win-x64 --out-path ./dist",
|
|
12
|
+
"pkg": "pkg . -t node16-alpine-x64,node16-macos-x64,node16-linux-x64,node16-win-x64,node16-linux-arm64 --out-path ./dist",
|
|
13
13
|
"serve-docs": "yarn build-local-docs && cd temp && hugo server -D",
|
|
14
14
|
"serve-docs-beta": "ALLOW_BETA_COMMANDS=true yarn build-local-docs && cd temp && hugo server -D",
|
|
15
15
|
"build-local-docs": "node ./docs/index.js",
|