UNPKG

@npm-wharf/fabrik8

Version:

provision a new Kubernetes cluster and deploy software to it from a single API

40 lines (37 loc) 1.14 kB
#!/usr/bin/env node require('dotenv').config() require('yargs') // eslint-disable-line no-unused-expressions .usage('$0 <command> [options]') .commandDir('cmds') .demandCommand(1, 'A command is required.') .help() .version() .options({ verbose: { alias: 'v', description: 'output verbose logging (status check output for hikaru)', default: false, boolean: true }, vaultHost: { description: 'the host of the vault server containing sensitive cluster information, auth data, and defaults', default: process.env.VAULT_HOST }, vaultToken: { description: 'an auth token for the vault server', default: process.env.VAULT_TOKEN }, vaultRoleId: { description: 'an AppRole id token for the vault server', default: process.env.VAULT_ROLE_ID }, vaultSecretId: { description: 'an AppRole secret id token for the vault server', default: process.env.VAULT_SECRET_ID }, vaultSecretPrefix: { description: 'the prefix for the KV secrets engine', default: process.env.VAULT_SECRET_PREFIX || 'kv/' } }) .argv