Skip to content

Commit 2f807af

Browse files
remove redundant params (#464)
* remove redundant params
1 parent 25842a3 commit 2f807af

File tree

3 files changed

+3
-27
lines changed

3 files changed

+3
-27
lines changed

lib/interface/cli/commands/hybrid/delete.cmd.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ const deleteCmd = new Command({
3535
default: DEFAULTS.URL,
3636
})
3737
.option('kube-context-name', {
38-
describe: 'Name of the kubernetes context on which venona should be installed [$CF_ARG_KUBE_CONTEXT_NAME]',
38+
describe: 'Name of the kubernetes context from which the Codefresh Agent and Runtime should be removed',
3939
})
4040
.option('kube-namespace', {
41-
describe: 'Name of the namespace on which venona should be installed [$CF_ARG_KUBE_NAMESPACE]',
41+
describe: 'Name of the kubernetes namespace from which the Codefresh Agent and Runtime should be removed',
4242
})
4343
.option('kube-config-path', {
4444
describe: 'Path to kubeconfig file (default is $HOME/.kube/config)',

lib/interface/cli/commands/hybrid/init.cmd.js

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,6 @@ const initCmd = new Command({
168168
.option('kube-node-selector', {
169169
describe: 'The kubernetes node selector "key=value" to be used by venona build resources (default is no node selector) (string)',
170170
})
171-
.option('dry-run', {
172-
describe: 'Set to true to simulate installation',
173-
})
174171
.option('yes', {
175172
describe: 'Use installation defaults (don\'t ask any questions)',
176173
alias: 'y',
@@ -184,43 +181,26 @@ const initCmd = new Command({
184181
describe: 'Run a demo pipeline after the installation completes',
185182
type: 'boolean',
186183
})
187-
.option('in-cluster', {
188-
describe: 'Set flag if venona is been installed from inside a cluster',
189-
})
190184
.option('kube-namespace', {
191185
describe: 'Name of the namespace on which venona should be installed [$CF_ARG_KUBE_NAMESPACE]',
192186
})
193-
.option('kubernetes-runner-type', {
194-
describe: 'Set the runner type to kubernetes (alpha feature)',
195-
})
196187
.option('tolerations', {
197188
describe: 'The kubernetes tolerations as path to a JSON file to be used by venona resources (default is no tolerations) (string)',
198189
})
199190
.option('storage-class-name', {
200191
describe: 'Set a name of your custom storage class',
201192
})
202-
.option('venona-version', {
203-
describe: 'Version of venona to install (default is the latest)',
204-
})
205193
.option('kube-config-path', {
206194
describe: 'Path to kubeconfig file (default is $HOME/.kube/config)',
207195
})
208-
.option('skip-version-check', {
209-
describe: 'Do not compare current Venona\'s version with latest',
210-
})
211196
.option('verbose', {
212197
describe: 'Print logs',
213198
}),
214199
handler: async (argv) => {
215200
const {
216201
'kube-node-selector': kubeNodeSelector,
217-
'dry-run': dryRun,
218-
'in-cluster': inCluster,
219-
'kubernetes-runner-type': kubernetesRunnerType,
220202
tolerations,
221-
'venona-version': venonaVersion,
222203
'kube-config-path': kubeConfigPath,
223-
'skip-version-check': skipVersionCheck,
224204
'storage-class-name': storageClassName,
225205
yes: noQuestions,
226206
verbose,
@@ -341,14 +321,9 @@ const initCmd = new Command({
341321
name,
342322
'kube-context-name': kubeContextName,
343323
'kube-node-selector': kubeNodeSelector,
344-
'dry-run': dryRun,
345-
'in-cluster': inCluster,
346324
'kube-namespace': kubeNamespace,
347-
'kubernetes-runner-type': kubernetesRunnerType,
348325
tolerations,
349-
'venona-version': venonaVersion,
350326
'kube-config-path': kubeConfigPath,
351-
'skip-version-check': skipVersionCheck,
352327
'install-runtime': true,
353328
verbose,
354329
'make-default-runtime': shouldMakeDefaultRe,

test-setup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ global.verifyResponsesReturned = async (responses) => {
2222
global.configureSdk = async () => {
2323
if (!SDK_CONFIGURED) {
2424
SDK_CONFIGURED = true;
25+
Object.keys(sdk).forEach(key => delete sdk[key]);
2526
sdk.configure(await Config.load({
2627
url: 'http://not.needed',
2728
apiKey: 'not-needed',

0 commit comments

Comments
 (0)