1
0
mirror of https://github.com/rancher/cli.git synced 2026-02-06 21:48:05 +01:00
Commit Graph

131 Commits

Author SHA1 Message Date
Daishan Peng
66b0f25ccf add ability to install charts locally 2018-05-17 17:03:27 -07:00
Dan Ramich
9b191d3983 Wait for namespace to be ready
Problem:
An app creates a namespace to deploy into and depending on the system it
might not be ready when attempting to install the app

Solution:
Poll the namespace to ensure it's active before proceeding with
installing the app
2018-05-17 14:40:46 -07:00
Dan Ramich
221e9254b7 Fix app namespace issue
Problem:
Apps of the same name deploy into the same namespace. This fails when a
namespace is owned by another project

Solution:
Apps should be deployed into a unique namespace unless specified
otherwise.
Add a flag to specify the namespace
Create a namespace with a random suffix to deploy the app into if
namespace is not specified
2018-05-17 10:18:55 -07:00
Dan Ramich
a935b41100 Consistency Changes
Update deletes to allow passing in multiple names/IDs for the same resource.
Update ls of resources to accept --quiet to allow passing to delete
Update arg checking to stop being an error and instead show --help for the command/subcommand
2018-05-14 18:17:53 -07:00
Dan Ramich
12b5538032 Update catalog and help output
Problem:
Catalog add had the wrong command
Help output was not showing parent commands

Solution:
Fix the type
Update template to display full command
2018-05-14 18:17:15 -07:00
Dan Ramich
227ca73ecd Fix context switch
Problem:
Context is not setting the new project correctly

Solution:
Save the selected project into the users config
2018-05-14 18:16:48 -07:00
Dan Ramich
ab6d47bca0 Update inspect to be case insensitive
Problem:
Inspect requires a type to be camelcase if that's how it shows in the
schema

Solution:
Make inspect note care about case
2018-05-14 18:15:21 -07:00
Dan Ramich
c8a4601aff App command 2018-05-14 18:14:24 -07:00
Dan Ramich
c89f2d76a8 Add catalog command 2018-05-07 19:42:34 +02:00
Dan Ramich
f7c605a614 Add context commands
Problem:
In order to switch context login has to be ran

Solution:
Add new context commands to allow quick switching and status on the
current context
2018-05-07 18:48:28 +02:00
Dan Ramich
7e602aeadf Fix spelling errors 2018-04-20 13:23:15 -07:00
Dan Ramich
6e2f325052 Update ssh to accept users and pass through all args
Problem:
SSH command does not accept a user or allow passing through of commands

Solution:
Add support for -l flag as well as <user>@<node> syntax
Pass through all following args to SSH
2018-04-20 10:46:43 -07:00
Daishan Peng
1191bbb06e rancher up 2018-04-17 13:13:18 -07:00
Daishan Peng
48534c8f7f update vendor 2018-04-17 13:13:18 -07:00
Dan Ramich
4cc8e2bdfc Add settings command
Problem:
Users are unable to see or set settings

Solution:
Add ability to list, get and set settings
2018-04-16 15:00:40 -07:00
Dan Ramich
08be31769c Update project create and ps to use lookup by name
Problem:
Specifying a cluster on project create and a project using ps required
an ID

Solution:
Use the lookup by name
Update the description of the ps command
2018-04-16 10:44:42 -07:00
Dan Ramich
683e68e41b Add inspect command 2018-04-16 10:43:52 -07:00
Dan Ramich
5500b99435 Add ability to search by name 2018-04-13 13:45:08 -07:00
Dan Ramich
9443bdc560 Add ability to set yaml as an output option
Problem:
format flag only accepted json or custom

Solution:
add yaml as a new output option
2018-04-13 09:43:33 -07:00
Dan Ramich
3418d740bd Update cluster import to print second option
Problem:
Some rancher servers are running SSL certs that fail validation so an
existing k8s cluster would not import through a standard kubectl call

Solution:
Output a second option using curl to download the file and pass it to
kubectl thus avoiding the SSL check
2018-04-09 18:01:09 -07:00
Dan Ramich
96b83aa942 Member actions for cluster and project
Problem:
Unable to do any members actions with clusters and projects

Solution:
Add ability to add and remove members from clusters and projects
rancher project add-member-role --role <a> --role <b> <user>
Add new subcommands to list available roles for the cluster/project
rancher project list-roles
Add new subcommand to list current members/roles in a cluster/project
rancher project list-members
2018-04-09 14:38:30 -07:00
Dan Ramich
710212938b Add description flag to project and namespace
Problem:
When creating a project and namespace no description can be set

Solution:
Add a flag for optionally adding a description
2018-03-30 10:16:24 -07:00
Dan Ramich
b0b986f2f6 Fix version list
Problem:
When running `cluster create --k8s-version list` the cluster is still
being created

Solution:
After printing the versions exit
2018-03-30 10:16:01 -07:00
Dan Ramich
2c206bf9c8 Update kubectl to use cluster kubeconfig
Problem:
kubectl is using the users kubeconfig on the system and not the one
specific to the cluster

Solution:
kubectl now pulls the clusters kubeconfig and uses that to run kubectl
commands
2018-03-28 18:19:07 -07:00
Dan Ramich
db1b649669 Update cluster command
Problem:
Cluster does not match the ui

Solution:
Update ls layout to match ui
Add new column for currently focused cluster
Add options from the UI for creation of cluster
2018-03-28 18:18:19 -07:00
Dan Ramich
0a837b60da Add format flag to lists
Problem:
Users are unable to specify a format on table outputs

Solution:
Add --format flag to allow customization of outputs or json blobs
2018-03-28 11:53:36 -07:00
Dan Ramich
d34fa03bc1 Fix login to accept a path
Problem:
login would not work if a path was appended to the server URL

Solution:
Drop paths from the passed in URL
2018-03-26 11:10:32 -07:00
Dan Ramich
a2ff67ad58 Add subcommand to cluster to output kubeconfig 2018-03-23 14:54:36 -07:00
Dan Ramich
306a81a546 Change to login 2018-03-23 12:08:26 -07:00
Dan Ramich
d2dbfa3314 Remove ununsed files and dependencies 2018-03-22 14:03:01 -07:00
Dan Ramich
b7f978e728 Reformat ps to only show one set of info and update headers 2018-03-06 10:45:47 -07:00
Dan Ramich
affecc3df0 Update build for windows 2018-03-05 10:11:59 -07:00
Dan Ramich
2d711d35c9 Add flag to show current context 2018-03-02 14:13:23 -07:00
Dan Ramich
3a12b9fb41 Add option flags for project create and ps 2018-03-02 14:13:08 -07:00
Dan Ramich
18878eadfb Stop usage of previous config on login
Problem:
When logging in a previous config would be used and if the cluster was
removed an error would occur

Solution:
Previous configs are no longer used for login
2018-03-01 11:13:19 -07:00
Dan Ramich
8fea865ae8 Update error handling to return to user 2018-03-01 09:38:14 -07:00
Dan Ramich
10d4d1f4dd Add current project as default on namespace create 2018-03-01 09:37:55 -07:00
Dan Ramich
953852d840 Update login project selection output
Problem:
Output does not include cluster name or details

Solution:
Update output to show cluster name, details and headers
2018-02-28 18:22:33 -07:00
Dan Ramich
fd1dc573bb Update ByID usage
Problem:
ByID was looping over all items in collection

Solution:
Use ByID to get specific item from server
2018-02-22 11:09:13 -07:00
Dan Ramich
848077d899 Add node and ssh command
Problem:
Need ability to ssh into nodes

Solution:
Add node command to list and delete nodes
Add ssh command to ssh into a node that rancher controls
2018-02-20 16:20:57 -07:00
Dan Ramich
9e342c4f9f Add namespace command 2018-02-16 11:02:10 -08:00
Dan Ramich
864c811f99 Fix reading of cert 2018-02-16 10:55:27 -08:00
Dan Ramich
adc0fae3df Add delete methods to cluster and project 2018-02-15 13:49:26 -07:00
Dan Ramich
198f67ec2f Command update 2018-02-14 14:32:29 -07:00
Dan Ramich
ec1e283323 Adding of new commands 2018-02-13 11:01:39 -07:00
Darren Shepherd
195a19e3ec Merge pull request #91 from StrongMonkey/fix-run
fix rancher run to use image field
2017-09-26 11:33:41 -07:00
Daishan Peng
0282cfb90e fix rancher run to use image field 2017-09-26 10:04:16 -07:00
Daishan Peng
157ea015ef fix cluster ls 2017-09-25 22:54:26 -07:00
Daishan Peng
d3f2a8fb22 add cluster, kubectl and fix issues 2017-09-23 17:24:33 -07:00
Daishan Peng
03ebe1a203 cli 2.0 2017-09-15 14:34:17 -07:00