Skip to content

Commit f9d850d

Browse files
author
Oleg Sucharevich
authored
removal of creation of user owned context (#202)
1 parent 0619585 commit f9d850d

File tree

17 files changed

+14
-90
lines changed

17 files changed

+14
-90
lines changed

lib/interface/cli/commands/context/create/createConfig.cmd.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ const command = new Command({
2121
.positional('name', {
2222
describe: 'Name of context',
2323
})
24-
.option('owner', {
25-
describe: 'Owner of the context',
26-
choices: ['user', 'account'],
27-
default: 'account',
28-
})
2924
.option('variable', {
3025
describe: 'Variables list',
3126
default: [],
@@ -39,7 +34,6 @@ const command = new Command({
3934
const data = {
4035
apiVersion: 'v1',
4136
kind: 'context',
42-
owner: argv.owner,
4337
metadata: {
4438
name: argv.name,
4539
},

lib/interface/cli/commands/context/create/createSecret.cmd.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ const command = new Command({
2121
.positional('name', {
2222
describe: 'Name of context',
2323
})
24-
.option('owner', {
25-
describe: 'Owner of the context',
26-
choices: ['user', 'account'],
27-
default: 'account',
28-
})
2924
.option('variable', {
3025
describe: 'Variables list',
3126
default: [],
@@ -39,7 +34,6 @@ const command = new Command({
3934
const data = {
4035
apiVersion: 'v1',
4136
kind: 'context',
42-
owner: argv.owner,
4337
metadata: {
4438
name: argv.name,
4539
},

lib/interface/cli/commands/context/create/createSecretYaml.cmd.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ const command = new Command({
2121
.positional('name', {
2222
describe: 'Name of context',
2323
})
24-
.option('owner', {
25-
describe: 'Owner of the context',
26-
choices: ['user', 'account'],
27-
default: 'account',
28-
})
2924
.option('variable', {
3025
describe: 'Variables list',
3126
default: [],
@@ -38,7 +33,6 @@ const command = new Command({
3833
const data = {
3934
apiVersion: 'v1',
4035
kind: 'context',
41-
owner: argv.owner,
4236
metadata: {
4337
name: argv.name,
4438
},

lib/interface/cli/commands/context/create/createYaml.cmd.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ const command = new Command({
2121
.positional('name', {
2222
describe: 'Name of context',
2323
})
24-
.option('owner', {
25-
describe: 'Owner of the context',
26-
choices: ['user', 'account'],
27-
default: 'account',
28-
})
2924
.option('variable', {
3025
describe: 'Variables list',
3126
default: [],
@@ -38,7 +33,6 @@ const command = new Command({
3833
const data = {
3934
apiVersion: 'v1',
4035
kind: 'context',
41-
owner: argv.owner,
4236
metadata: {
4337
name: argv.name,
4438
},

lib/interface/cli/commands/context/create/git/types/bitbucket.cmd.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,13 @@ const command = new Command({
3131
describe: 'username that has permissions to use app password',
3232
alias: 'u',
3333
required: true,
34-
})
35-
.option('owner', {
36-
describe: 'Owner of the context, user owned contexts cannot be accessible by other users across the account',
37-
choices: ['account', 'user'],
38-
alias: 'o',
39-
default: 'account',
40-
required: true,
4134
});
4235
return yargs;
4336
},
4437
handler: async (argv) => {
4538
const data = {
4639
apiVersion: 'v1',
4740
kind: 'context',
48-
owner: argv.owner || 'account',
4941
metadata: {
5042
name: argv.name,
5143
},

lib/interface/cli/commands/context/create/git/types/github.cmd.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ const command = new Command({
2727
alias: 't',
2828
required: true,
2929
})
30-
.option('owner', {
31-
describe: 'Owner of the context, user owned contexts cannot be accessible by other users across the account',
32-
choices: ['account', 'user'],
33-
alias: 'o',
34-
default: 'account',
35-
required: true,
36-
})
3730
.option('use-ssl', {
3831
describe: 'Connect to the git host using ssl',
3932
choices: [true, false],
@@ -54,7 +47,6 @@ const command = new Command({
5447
const data = {
5548
apiVersion: 'v1',
5649
kind: 'context',
57-
owner: argv.owner || 'account',
5850
metadata: {
5951
name: argv.name,
6052
},

lib/interface/cli/commands/context/create/git/types/gitlab.cmd.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,6 @@ const command = new Command({
2727
alias: 't',
2828
required: true,
2929
})
30-
.option('owner', {
31-
describe: 'Owner of the context, user owned contexts cannot be accessible by other users across the account',
32-
choices: ['account', 'user'],
33-
alias: 'o',
34-
default: 'account',
35-
required: true,
36-
})
3730
.option('use-ssl', {
3831
describe: 'Connect to the git host using ssl',
3932
choices: [true, false],
@@ -54,7 +47,6 @@ const command = new Command({
5447
const data = {
5548
apiVersion: 'v1',
5649
kind: 'context',
57-
owner: argv.owner || 'account',
5850
metadata: {
5951
name: argv.name,
6052
},

lib/interface/cli/commands/context/create/git/types/stash.cmd.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,13 @@ const command = new Command({
4343
alias: 's',
4444
default: true,
4545
required: true,
46-
})
47-
.option('owner', {
48-
describe: 'Owner of the context, user owned contexts cannot be accessible by other users across the account',
49-
choices: ['account', 'user'],
50-
alias: 'o',
51-
default: 'account',
52-
required: true,
5346
});
5447
return yargs;
5548
},
5649
handler: async (argv) => {
5750
const data = {
5851
apiVersion: 'v1',
5952
kind: 'context',
60-
owner: argv.owner || 'account',
6153
metadata: {
6254
name: argv.name,
6355
},

lib/interface/cli/commands/context/create/helm-repo/types/http.cmd.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ const command = new Command({
3131
const data = {
3232
apiVersion: 'v1',
3333
kind: 'context',
34-
owner: argv.owner,
3534
metadata: {
3635
name: argv.name,
3736
},

lib/interface/cli/commands/context/create/helm-repo/types/s3.cmd.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ const command = new Command({
6969
const data = {
7070
apiVersion: 'v1',
7171
kind: 'context',
72-
owner: argv.owner,
7372
metadata: {
7473
name: argv.name,
7574
},

0 commit comments

Comments
 (0)