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

25 Commits

Author SHA1 Message Date
rajashree
d8d74599f0 Call yaml.Unmarshal on values/answers file using YAML
We use json.Unmarshal for files using JSON format, and convert the
YAML format files to JSON first and call json.Unmarshal on them as well.
The yaml to json conversion let to unquoted numbers getting converted to
scientific notation. So this commit fixes it by calling yaml.Unmarshal
directly on file with yaml format instead of converting them to json.
2019-10-03 11:25:49 -07:00
rmweir
e5d127d6dc Add wait and timeout to multi-cluster apps
Added wait and timeout flags to multi-cluster apps. Removed
automatic CLI blocking behavior. Added multi-cluster apps
to rancher wait command. Made flags and descriptions more
clear. Prior, there was no way to configure wait and
timeout helm options for multi-cluster apps. This would
prevent apps which take longer than 5 minutes to fail
installing. Install would block CLI untill app was properly
installed. CLI text did not make it clear that wait/timeout
are helm options.
2019-08-26 16:37:09 -07:00
Dan Ramich
88402d671c Use version link to find template 2019-08-16 10:43:38 -07:00
Dan Ramich
46f0a34862 Use version links to determine app version to install
Problem:
defaultVersion on an app template does not take into account the rancher
server version so attempting to use that version to install an app can
cause errors

Solution:
Use a template filtered off the rancher server version to get the latest
version of the app to default to
2019-08-12 16:14:41 -07:00
Dan Ramich
4c28202dd7 Pass rancherVersion when fetching templates
Problem:
Rancher supports enforcing apps versions but all app templates are shown
even if they are not compatable with the version of rancher running

Solution:
Add the rancherVersion filter when getting templates so only valid app
templates are shown
2019-08-08 16:13:32 -07:00
Dan Ramich
9ff92f6785 Merge pull request #239 from gitlawr/project_app_upgrade
Fix project-scoped catalog app upgrade
2019-08-07 11:03:13 -07:00
rmweir
05449f4367 Add wait, timeout, and show-notes flags
Added wait and timeout flags. Added show-notes flag. Prior, there
was no way to tell helm to wait longer than the default of 300
seconds. This caused installs of certain apps to fail. Now, users
can configure the amount of time helm should wait before failing.
CLI no longer hangs while waiting for helm. User can use the
existing wait command for hanging behavior. Notes may not be ready
immediately, so user can now use the show-notes flag to print app
notes at any time after app creation.
2019-07-24 15:46:01 -07:00
gitlawr
19930a1a37 Fix project-scoped catalog app upgrade
Problem:
When upgrading a project scoped catalog app, the externalId is not constructed properly, therefore results in version not found error.
The cause is that url parsing does not preserve query orders, given that
it turns to a map under the hood. It
breaks since we introduced 'type' param to the externalId.
For example, "catalog://?catalog=cid&type=projectCatalog&template=grafana&version=0.0.30" becomes "catalog://?catalog=cid&template=grafana&type=projectCatalog&version=0.0.30". Therefore the externalId filter does not work.

Solution:
Change the url.Encode way to get externalId for newer version
2019-07-23 16:24:37 +08:00
rmweir
5139832ec2 Delete existing answers on set
If set flag is used, existing answers will reset before assigning
new answers. Prior, using set flag would add new answers to previous
answers. This has been changed to better mirror the behavior of helm.
2019-06-28 16:11:01 -07:00
frank
16132dd652 Enrich app commands display
**Problem:**
`app show-app`, `app ls` cannot indicate the chart information

**Solution:**
Fetch chart information from catalog `ExternalID` or
local chart template `Files`
2019-02-14 09:39:12 -07:00
frank
bc04da0387 Support to upgrade app deployed by local chart
**Problem:**
Cannot upgrade app deployed by local chart

**Solution:**
Check local chart exists or not when upgrading

**Issue:**
https://github.com/rancher/rancher/issues/15711
2019-02-14 09:39:12 -07:00
gitlawr
95ffbbd2ab Fix error when upgrade an app deployed from project level catalog
Problem:
Cannot upgrade an app deployed from project level catalog. When constructing the externalId filter, catalog id gets url-encoded twice, therefore fails to get the templateversion.

Solution:
Construct the query properly.
2019-01-28 11:35:24 -07:00
Blake Roberts
5cc8e19e03 add catalog refresh 2019-01-21 10:31:52 -07:00
Erik Wilson
c57c8773a6 Wait until app is installed to print notes
Fixes cli timeout when installing app without a NOTES.txt file.
2019-01-12 09:48:03 -07:00
gitlawr
e0db2069c7 fix app upgrade show-versions option 2019-01-08 21:24:01 -08:00
gitlawr
4e0cce5f5e Support using values file in app install/upgrade
Enhancement:
Support for using helm values file in app operations

Solution:
Parse values to answers on client side, as the api only handles answers
2019-01-02 22:26:36 -08:00
gitlawr
1868dcb26e handle forbidden error when checking new namespace 2018-11-01 09:55:18 -07:00
Brandon Bodnar
55e79d58a5 Allow equals sign in answer 2018-11-01 09:51:24 -07:00
gitlawr
f47e1b2cef add no-prompt option for app install 2018-10-22 23:03:27 -07:00
Dan Ramich
baf6d6074e Namespace 2018-09-13 12:25:41 -07:00
Daishan Peng
672670bc34 fix path issues 2018-05-21 09:49:38 -07:00
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
c8a4601aff App command 2018-05-14 18:14:24 -07:00