Commit graph

767 commits

Author SHA1 Message Date
Matt Butcher
e8aa8d3678 Merge pull request #2405 from sushilkm/linting-fixes
Fixed issues reported by test-style
2017-05-11 10:28:34 -06:00
Sushil Kumar
084bbfa2ba Return error exit-code in case of error 2017-05-08 21:32:46 -07:00
Sushil Kumar
1c5aab8e78 Fixes messages for plugin remove option
Fixes issues/2398 - helm plugin remove does not works as expected

- [ ] plugin remove option is coded to remove multiple plugins, but instead returns error when more than one plugin is requested to be removed.
- [ ] plugin remove does not show any error/message for non-existent plugin.
2017-05-06 15:47:21 -07:00
Sushil Kumar
61c3a44dc3 Fixed issues reported by test-style 2017-05-05 18:44:58 -07:00
Matt Butcher
982bb0cd2c Merge pull request #2079 from nebril/new-backend
Experimental Rudder implementation
2017-05-05 16:31:28 -06:00
Michelle Noorali
704e69fca2 Merge pull request #2375 from sushilkm/tests/repo-flag
Added tests for --repo flag for helm fetch command
2017-05-05 14:16:47 -04:00
Maciej Kwiek
d9f72deb0d Add comments to exported Rudder methods
Added make target
Lowered docker image sizes
Updated ruder.pb.go
2017-05-05 14:05:03 +02:00
Maciej Kwiek
1c9ae5577d Basic Rudder Delete implementation
Extracted delete specific code from ReleaseServer to external function
which is called from both Local and Remote ReleaseModules.

Made getVersionSet function from tiller package exported.
2017-05-05 13:05:24 +02:00
Maciej Kwiek
5937e1a214 ReleaseServer.ReleaseModule has Status method
Both local and remote Release module implement release status check.
2017-05-05 13:05:24 +02:00
Maciej Kwiek
52c54b09c0 Move rudder proto to different package, add release status 2017-05-05 13:05:24 +02:00
Dmitry Shulyak
3cba189f53 Define both rudder port and rudder address for different needs 2017-05-05 13:04:02 +02:00
Dmitry Shulyak
bd47b8444f Use rollback method on ReleaseModule interface 2017-05-05 13:04:02 +02:00
Dmitry Shulyak
a883531f98 Implement upgrade for rudder 2017-05-05 13:04:02 +02:00
Maciej Kwiek
8ef9144fb1 Use helm version as rudder version 2017-05-05 13:04:02 +02:00
Maciej Kwiek
c1fcaf09ce Experimental Rudder implementation
This change introduces the concept of Rudders - pluggable modules that
Tiller communicates with via grpc, which allow to decouple orchestration
logic from Tiller into separate service.

This commit consists of simple Rudder implementation which does exactly
the same thing as built in Tiller orchestrator - it creates all k8s
objects from provided manifest without orchestrating them.

--experimental-release flag is introduced to enable this behaviour.

This change allows to use the service and tiller outside of the cluster.
Following commits will add Rudder to helm deployment.
2017-05-05 13:02:20 +02:00
Michelle Noorali
9fe76d3430 chore(helm): fix go style issues in completion.go 2017-05-04 10:29:29 -04:00
Sushil Kumar
dce9d88c25 Added tests for --repo flag for helm fetch command
- [ ] Added tests for --repo flag on `helm fetch` command
- [ ] Also added tests for (pkg/repo).FindChartInRepoURL
2017-05-02 16:57:05 -07:00
Sushil Kumar
d13b134ffb Implements --repo flag to commands fetch, install, inspect, upgrade 2017-05-02 10:46:16 -07:00
Matt Butcher
e66cdcd1f3 Merge pull request #2352 from technosophos/ref/getter
ref(getter): flatten the getter package tree
2017-05-02 10:04:12 -06:00
Michelle Noorali
3f22e407cd Merge pull request #2365 from michelleN/feat/2224-service-account-flag
feat(helm): add service account flag to helm init
2017-05-02 10:16:44 -04:00
Adam Reese
c7f0edd3d2 Merge pull request #2353 from SlickNik/nm_zsh_completions
Add support for zsh to helm completion
2017-05-01 15:33:06 -07:00
Matt Butcher
bd02f39384
ref(getter): flatten the getter package tree
This flattens the getter package tree, adds tests, and changes a little
bit of the terminology to follow Go idioms. This also makes much of the
getter API private to begin with. This will give us more flexibility in
the future.
2017-05-01 16:18:13 -06:00
Michelle Noorali
64e9e47183 feat(helm): add service account flag to helm init
helps with half of #2224
2017-05-01 14:02:04 -04:00
Nikhil Manchanda
49e7aa854a Add support for zsh to helm completion
Updated the 'helm completion' command to take in the shell
as a parameter. Currently acceptable options are 'bash' and
'zsh'. Also fixed the completions to work with zsh in a manner
similar to what kubectl does.

Also updated the docs to reflect this change.

Closes #2201
2017-04-30 23:25:03 -07:00
Matt Butcher
9a33628e4e Merge pull request #2338 from technosophos/fix/2209-warning-to-error
fix(helm): return error when dependencies are missing
2017-04-28 14:16:42 -06:00
Matt Butcher
6246fa12a8
fix(helm): return error when dependencies are missing
This upgrades a warning to an error in cases where `requirements.yaml`
contains a requirement, but it's missing in charts/

This impacts install, upgrade, and package.

Closes #2209
2017-04-27 16:34:18 -06:00
Brian
d7ab16ad03 Merge pull request #2316 from fibonacci1729/master
fix(tiller): update tls client auth policy
2017-04-27 15:16:21 -06:00
fibonacci1729
d7240ff943 fix(tiller): update tls client auth policy
RequireAndVerifyClientCert => VerifyClientCertIfGiven

Closes #2310
2017-04-21 09:34:26 -06:00
Adam Reese
50eee83646
ref(helm): use new debug method to standardize debug output 2017-04-19 23:55:36 -07:00
Matt Butcher
5af676cda1 Merge pull request #2287 from jascott1/2222/nethost_tiller
feat(tiller): add --net-host flag to 'helm init'
2017-04-19 13:59:25 -06:00
Brian
17c0de49d1 Merge pull request #2291 from fibonacci1729/master
test(*): add tests for new tls support
2017-04-19 13:53:59 -06:00
Shane Starcher
7150fc3d9e bug(helm) - install/upgrade/search semver constraint support 2017-04-18 18:10:48 -04:00
Justin Scott
48649fe03e WIP feat(tiller): add --net-host flag to 'helm init'
When 'helm init --net-host=true' is run, Tiller will be installed with access to the host network (net=host in Docker)

Closes #2222
2017-04-18 14:40:54 -07:00
fibonacci1729
73e6399294 test(*): add tests for new tls support
Adds a testdata directory to hold tls certs at the root
of the project. The tests cover pkg/tlsutil, cmd/helm,
and cmd/helm/installer.

Closes #2289
2017-04-18 15:02:06 -06:00
Gergo Huszty
b4ca198cc6 Pluggable downloaders. Closes #2093, #2094.
It is now possible to create plugins with chart download capabilities for custom, non-http protocols.
Furthermore it is possible to reuse helm packages to implement alternative clients with these custom downloader functions.
2017-04-16 20:58:03 +02:00
Matt Butcher
bba0214ea1 Merge pull request #2273 from sushilkm/issues/2272
Exposes repository-URLs as flags on helm init command
2017-04-13 14:45:39 -06:00
Matt Butcher
0c11033fb7 Merge pull request #2171 from appscode/tiler-prom
Expose tiller server metrics to prometheus
2017-04-13 13:53:23 -06:00
Sushil Kumar
5431f33cb1 Exposes repository-URLs as flags on helm init command
Fixes issues/2272

stable-repository-url is currently hard-coded for helm init,
so if a user wants to make a different intranet repository as stable repo,
only option left is to first do an init,
followed by repo delete and repo add.
2017-04-13 12:14:58 -07:00
Taylor Thomas
d03311b45a Merge pull request #2188 from scottrigby/chartutil-ingress-example
chartutil create ingress example
2017-04-13 09:21:24 -07:00
sadlil
8c81e7336a Add prometheus monitoring for tiler 2017-04-13 09:37:12 +06:00
Matthew Fisher
43b393f617 clarify helm serve's intent
A lot of community members are looking at `helm serve` as a production webserver to host their
charts. There are much better solutions out there like s3, wabs or gcs for cloud storage and
nginx, haproxy or apache for DIY dedicated web servers. Steering users in the right direction
will help users make the right decision when it comes to serving their charts in production.
2017-04-12 15:39:39 -07:00
Adam Reese
0ab38a998c Merge pull request #2248 from adamreese/ref/kube-v1.6
ref(*): kubernetes v1.6
2017-04-11 18:49:35 -07:00
Matt Butcher
382e2b42d6 Merge pull request #2239 from technosophos/fix/2238-duplicate-commands
fix(helm): remove duplicate commands
2017-04-11 17:13:29 -06:00
Adam Reese
85c41ef11a ref(*): kubernetes v1.6
Rebase on kubernetes v1.6
2017-04-11 15:42:23 -07:00
Adam Reese
264ad3271e fix(init): use ImagePullPolicy Always for canary installs
fixes: #2155
2017-04-11 15:30:24 -07:00
Sushil Kumar
000bf9fd1a Added release-name to helm delete error
Fixes https://github.com/kubernetes/helm/issues/2251
In case a user tries to delete a non-existent release,
the error message displayed was missing release-name.
2017-04-11 09:41:07 -07:00
Sushil Kumar
72c0c1ae8b Replaced InstallRelease with InstallReleaseFromChart in cmd/install.go
Fixes https://github.com/kubernetes/helm/issues/2240

`helm install` command was calling chartutil.Load twice,
once from `run` method and
another time from `client.InstallRelease` which is called from `run` method in `cmd/helm/install.go`
2017-04-07 14:42:15 -07:00
Matt Butcher
1a79c28f45
fix(helm): remove duplicate commands
Closes #2238
2017-04-07 14:30:09 -06:00
Adam Reese
51b8d8a6ee feat(helm): add plugin management commands
Add plugin management subcommands for installing and removing plugins
to `$HELM_HOST/plugins`.

Install accepts a vcs url or a local directory.

```
$ helm plugin install http://github.com/adamreese/helm-env
Installed plugin: env

$ helm plugin list
NAME    	VERSION	DESCRIPTION
env     	0.1.0  	Print out the helm environment.

$ helm plugin remove env
Removed plugin: env
```

closes #1977
2017-04-06 11:28:09 -07:00
Brian
a8e0983362 Merge pull request #2108 from fibonacci1729/feat/tls
feat/tls: Support optional TLS for helm / tiller
2017-04-05 12:48:00 -06:00