Commit graph

979 commits

Author SHA1 Message Date
Matthew Fisher
f652f45398
Merge pull request #2784 from rocky-nupt/proposal-add-k8s-version
feat(tiller/proto):Allow charts to specify k8s compatibility
2018-01-09 07:51:36 -08:00
Matthew Fisher
e1027fae73
refactor symWalk() into pkg/sympath (#3199)
* refactor symWalk() into pkg/sympath

* add Go copyright

* remove dead code
2018-01-08 15:13:13 -08:00
xuhaigang
61623bfe2d feat(tiller/proto):Allow charts to specify k8s compatibility in semver field
Add an optional field kubeVersion to Chart.yaml that allows the chart
developer to specify a semver compliant version.

Closes #2708, #2706
2018-01-06 10:02:09 +08:00
Adam Reese
a31e3b8fe1
ref(*): kubernetes v1.9 support (#3234) 2018-01-05 12:30:26 -08:00
Tim Dumol
8fae16fbb2
feat(helm): add better error message to 'dep up'
When a user enters a non-URL (such as stable)
in requirements.yaml and tries to `helm dep up`,
they get a potentially confusing error message.
This tries to make the error message clearer.

Closes #2672
2017-12-30 12:18:31 +08:00
Matthew Fisher
78d6b930bd
Merge pull request #3061 from eicnix/feature/tpl-fix
fix(helm): Set template context inside tpl function to outer function.
2017-12-28 15:12:16 -08:00
Timofey Kirillov
13cb8d8244 Show kind in resource-not-found-in-release error
This error occures when resource is not found in helm release:
`Error: UPGRADE FAILED: no resource with the name "redis-cluster-sentinel" found`

Changed to:
`Error: UPGRADE FAILED: no ConfigMap with the name "redis-cluster-sentinel" found`

So now that resource can easily be found in cluster.
2017-12-27 20:45:11 +03:00
Tim Hockin
05d4b30730 Convert registry to k8s.gcr.io 2017-12-22 09:55:17 -08:00
Andrey Klimentyev
cfb7dfa82c
Typo fix 2017-12-18 13:34:58 +03:00
Nauris Sadovskis
bd8178d50b Fix package url 2017-12-14 12:09:33 +00:00
Matthew Fisher
51a6f3c326
Merge pull request #3247 from mgalgs/missing-repos-help
feat(repo): Improve error message for missing repositories.yaml
2017-12-13 18:15:13 -08:00
Julian
ca415ab8db feat(helm): support namespace and additional values in lint (#2972)
* Add "--namespace" to helm lint

Keep lint syntax as close as possible to "helm install" resp. "helm
upgrade", so that one only needs to change the command.

See #2036

* Align lintCmd struct

* Add "--set" and "--values" to helm lint

Keep lint syntax as close as possible to "helm install" resp. "helm
upgrade", so that one only needs to change the command.

Closes #2495,#2036

* Reuse strict parameter, when rendering during lint

We want to see the rendering fail, if we missed a value, so we reuse
"--strict".

See #2495,#2036

* Fix lint unit test

See #2495,#2036

* Update docs
2017-12-13 14:43:12 -08:00
Mitchel Humpherys
6de70254fd feat(repo): Add test for non-existent repo path 2017-12-13 09:46:15 -08:00
Mitchel Humpherys
7417f09293 feat(repo): Improve error message for missing repositories.yaml
New users to helm don't always run `helm init` (e.g. if their cluster
already has helm installed).  The user's initial interaction with any of
helm's repository commands (e.g. `helm repo list`) will then be an error
message due to a missing repositories.yaml in their local config.

Give the user a little hint about how to fix the error without them having
to hunt through the man/help pages.
2017-12-13 08:37:48 -08:00
Matthew Fisher
1042f6118b
Merge pull request #3122 from cofyc/fix_charts_permission
Remove executable permission bit for charts downloaded from remote repos
2017-12-12 14:46:09 -06:00
Lukas Eichler
8bc7dede18
fix(helm): Apply PR comments for tpl template name fix
Modified existing unit test to verify the changed behavior.
Removed debug print.
2017-12-03 17:39:51 +01:00
Lukas Eichler
1cebc760a0
Fixed warning for missing formating parameter inside error message. 2017-12-03 17:39:51 +01:00
Lukas Eichler
2c338db1bd
fix(helm): Set template context inside tpl function to outer function.
docs(helm): Added documentation about tpl function
2017-12-03 17:39:51 +01:00
Matthew Fisher
618094ccd2 fix TLS default path
Without this change, running `helm list --tls` without setting $HELM_HOME causes helm to look for TLS certificates under /.
2017-12-01 12:54:51 -08:00
Taylor Thomas
04769b7c26
Merge pull request #3131 from fgimenez/fix-2745
check if resource is present before adding it to remaining or keep on deletion
2017-11-30 18:10:00 -08:00
Federico Gimenez
a607fe798d iinitialize message only when at least one manifest is kept 2017-11-30 08:49:48 +01:00
Federico Gimenez
93bce130fb fix signatures 2017-11-29 14:18:12 +01:00
Federico Gimenez
81eaf2f263 only check existence for the possibly kept manifests 2017-11-29 14:14:50 +01:00
Adam Reese
e93b77166d
Merge pull request #3025 from beeradb/fakeclient-releasestatus
Improvements to FakeClient: support all CRUD operations
2017-11-28 12:51:36 -08:00
Matthew Fisher
cad89240f3
Merge pull request #3187 from hoesler/fix/chart_downloader
fix(helm): resolve relative chart paths
2017-11-23 07:48:09 -08:00
Matthew Fisher
7c79d1c765
Merge pull request #3193 from burdiyan/master
ref(helm): improve fullname template in starter chart
2017-11-23 07:45:51 -08:00
Johnny Bergström
7cc610960f Walk symbolic link directories
Continue walking symlinks to be able to use them
for sub-charts. Useful when not specifying requirements
but still want to share charts locally.
2017-11-23 11:41:09 +01:00
Alexandr Burdiyan
f432e07126 ref(helm): improve fullname template in starter chart
Closes #1186
2017-11-23 11:23:32 +01:00
Christoph Hösler
98e0bd2ecb refactor: rename function and improve error messages 2017-11-23 09:41:34 +01:00
Christoph Hösler
af9190f956 feature: let FindChartInRepoURL return absolute chart URLs 2017-11-22 18:32:05 +01:00
Matthew Fisher
d655911088
Merge pull request #3041 from jlyheden/feature/plugin-http-installer
Add plugin installer from http archive
2017-11-22 09:15:45 -08:00
Helgi Þormar Þorbjörnsson
803f7c706e add a keepalive of 30s to the client (#3183) 2017-11-22 09:30:25 -07:00
Johnny Bergström
d762a42168 Fix helmignore for .* (#3114)
When the first rule matching entry for top level dir
will be empty string, the .* rule will match.
Skip this entry as it's not needed for processing.
2017-11-22 09:20:41 -07:00
Hadrien Chauvin
838d780894 update google.golang.org/grpc to 1.7.2 (#3101) 2017-11-22 09:16:02 -07:00
Matthew Fisher
4c21a0e739
Merge pull request #3123 from Miouge1/fullnameoverride
Add fullnameOverride
2017-11-21 10:41:02 -08:00
Matt Cholick
fe3eeaf39d fix(helm): Tunnel closing already closed channel (#3157)
k8s client-go closes the ready channel that's passed in (see https://github.com/kubernetes/client-go/blob/master/tools/portforward/portforward.go#L171) This means that Tunnel's Close will always panic, as the client-go library will have closed then channel. This isn't reproducible unless helm.Client is externally, as the helm cli runner doesn't actually invoke Close.
2017-11-21 11:34:02 -07:00
Kai Chen
bc45e90198 Remove unnecessary parentheses in switch statements (#3175) 2017-11-21 11:30:01 -07:00
Matt Farina
275fbd431c
feat(http): Add a Helm user-agent string to the http getter
Adding a user-agent to the http getter will enable servers to
distinguish between helm (including various versions) and other
tools connecting to the server.
2017-11-20 14:02:17 -05:00
Matt Butcher
e8e6ac5d77
Fix/missing ssl params (#3152)
* fix(helm): add TLS params back

During a recent refactor, several TLS flags stopped being processed for
a few of the commands. This fixes those commands, and documents how to
set up TLS.

* fix(tiller): add stricter certificate verification

The older version of Tiller allowed a weaker set of certificate checks
than we intended. This version requires a client certificate, and then
requires that that certificate be signed by a known CA. This works
around the situation where a user could provide a self-signed
certificate.
2017-11-15 17:52:24 -07:00
Federico Gimenez
e6d907ed28 check if resource is present before adding it to remaining or keep on deletion 2017-11-12 11:20:52 +01:00
Maxime Guyot
c864ba179e Add fullnameOverride 2017-11-10 10:52:56 +01:00
Yecheng Fu
126f0249a7 Remove executable permission bit for chart files. 2017-11-10 15:29:55 +08:00
Pietro Menna
ece9486182
fix(helm): home env not set on Windows
When setting $HELM_HOME, only $HOME was considered. This variable is not always present on Windows.
2017-11-08 00:33:34 -02:00
Adam Reese
d6da76f3cf
Merge pull request #3097 from adamreese/fix/2437-upgrade-release
fix(tiller): upgrade last deployed release
2017-11-07 06:50:20 -08:00
Adam Reese
82ef751414
fix(tiller): upgrade last deployed release
Fixes #2437

Two bugs were causing this behavior

- Tiller was marking the previous release superseded when an upgrade
failed.
- Upgrade was diffing against failed releases
2017-11-03 14:57:33 -07:00
Matthew Fisher
1954b51186
Merge pull request #2621 from gardlt/feature/helm/adding-kubeconifg-flag
feat(helm): adding kubeconfig flag
2017-11-01 21:09:13 -07:00
Matthew Fisher
93e1c765df
Merge pull request #3065 from cjauvin/fix-for-relative-chart-path-support
Fix for relative chart path support in index.yaml
2017-11-01 16:51:44 -07:00
Matt Tucker
b8734a173e fix(docs): fix code comment for ReuseValues() 2017-11-01 16:44:38 -06:00
gardlt
371ff8f26d feat(helm): adding kubeconfig flag 2017-11-01 00:27:12 -05:00
Christian Jauvin
8775f632f2 Fix for relative chart path support in index.yaml 2017-10-30 10:35:12 -04:00