Commit graph

774 commits

Author SHA1 Message Date
Seth Goings
da383b35e5 Merge pull request #2518 from sgoings/fixup-plugin-install-grammar
fix(plugins): exists --> exist
2017-05-31 10:11:44 -06:00
Taylor Thomas
d9c0a8b434 fix(tiller): Adds missing import back
PR #2513 was behind master when merged. Other commits were
added that required the use of the log package. This re-adds
that package.
2017-05-31 00:32:11 -07:00
Taylor Thomas
b71bd6a455 Merge pull request #2513 from thomastaylor312/feat/moar_logging
feat(tiller): Adds more logging
2017-05-30 18:38:49 -07:00
Taylor Thomas
119fa6537c feat(tiller): Adds more logging
This builds on previous work and adds more logging to follow
the full process of installing, updating, deleting, and rolling back.
This also standardizes capitalization of logs and small formatting
fixes
2017-05-30 18:17:22 -07:00
Seth Goings
e7a51d5424 fix(plugins): exists --> exist 2017-05-30 09:57:20 -06:00
peay
a9fa9282e1 Add --force to upgrade and rollback (generated changes) 2017-05-26 17:07:13 -04:00
peay
0f26cc5522 Add --force to upgrade and rollback 2017-05-26 17:04:57 -04:00
Taylor Thomas
7a49e5c3e1 Merge pull request #2500 from sushilkm/issues/2488
Check existence of $HELM_HOME/plugins before installing plugin
2017-05-25 21:48:54 -07:00
Taylor Thomas
7dd6eb22f7 Merge pull request #2486 from sushilkm/issues/2383
Adds alias for dependencies
2017-05-25 21:37:39 -07:00
Sushil Kumar
a6556b4982 Check existence of $HELM_HOME/plugins before installing plugin
Fixes https://github.com/kubernetes/helm/issues/2488
2017-05-25 15:04:10 -07:00
Sushil Kumar
42aa81e7ca Added tests for alias(es) for chart dependencies 2017-05-25 14:18:32 -07:00
Sushil Kumar
34f9c67e04 Shallow copy existing chart details 2017-05-25 10:45:18 -07:00
tyrannasaurusbanks
b4fc1c7cb2 Add check to ensure helm doesnt 'wait' for external services to become 'ready' 2017-05-25 17:21:32 +01:00
fibonacci1729
04d0abfd7c ref(tiller): refactor tests into logical files
TestInstallRelease_WithChartAndDependencyNotes  -> tiller/release_install_test.go
TestInstallRelease_WrongTillerVersion -> tiller/release_install_test.go
TestInstallRelease_WithNotesRendered -> tiller/release_install_test.go
TestInstallRelease_TillerVersion -> tiller/release_install_test.go
TestInstallRelease_FailedHooks -> tiller/release_install_test.go
TestInstallRelease_ReuseName -> tiller/release_install_test.go
TestInstallRelease_WithNotes -> tiller/release_install_test.go
TestInstallRelease_NoHooks -> tiller/release_install_test.go
TestInstallRelease_DryRun -> tiller/release_install_test.go
TestInstallRelease -> tiller/release_install_test.go
2017-05-24 11:40:41 -06:00
fibonacci1729
22db973932 ref(tiller): refactor tests into logical files
TestListReleasesByStatus -> tiller/release_list_test.go
TestListReleasesFilter -> tiller/release_list_test.go
TestListReleasesSort -> tiller/release_list_test.go
TestListReleases -> tiller/release_list_test.go
TestUpdateRelease_ResetReuseValues -> tiller/release_update_test.go
TestUpdateRelease_ResetValues -> tiller/release_update_test.go
TestUpdateRelease_ReuseValues -> tiller/release_update_test.go
TestUpdateReleaseNoChanges -> tiller/release_update_test.go
TestUpdateReleaseFailure -> tiller/release_update_test.go
TestUpdateReleaseNoHooks -> tiller/release_update_test.go
TestUpdateRelease -> tiller/release_update_test.go
TestRollbackReleaesFailure -> tiller/release_rollback_test.go
2017-05-24 10:57:16 -06:00
Sushil Kumar
156d48bc3b Adds alias for dependencies
Fixes https://github.com/kubernetes/helm/issues/2383

Sample `requirements.yaml` I used for test purpose was for wordpress chart

```dependencies:
- name: mariadb
  version: 0.5.10
  repository: https://kubernetes-charts.storage.googleapis.com/
  alias:
  - db1
  - db2
  - db3
```
2017-05-23 15:41:08 -07:00
fibonacci1729
172dbb22cf ref(tiller): refactor tests in logical files
TestRunReleaseTest -> tiller/release_testing_test.go
TestGetReleaseContent -> tiller/release_content_test.go
TestGetReleaseStatusDeleted -> tiller/release_status_test.go
TestGetReleaseStatus -> tiller/release_status_test.go
TestRollbackReleaseFailure -> tiller/release_rollback_test.go
TestRollbackReleaseNoHooks -> tiller/release_rollback_test.go
TestRollbackRelease -> tiller/release_rollback_test.go
TestUninstallReleaseWithKeepPolicy -> tiller/release_uninstall_test.go
TestUninstallPurgeDeleteRelease -> tiller/release_uninstall_test.go
TestUninstallReleaseNoHooks -> tiller/release_uninstall_test.go
TestUninstallPurgeRelease -> tiller/release_uninstall_test.go
TestUninstallRelease -> tiller/release_uninstall_test.go
2017-05-23 09:48:55 -06:00
fibonacci1729
2ae276ae39 ref(tiller): refactor tiller APIs into logical files
*ReleaseServer.InstallRelease -> tiller/release_install.go
*ReleaseServer.UpdateRelease -> tiller/release_update.go
2017-05-22 11:51:27 -06:00
fibonacci1729
a4d05fd2b2 ref(tiller): refactor tiller APIs into logical files
*ReleaseServer.UninstallRelease -> tiller/release_uninstall.go
*ReleaseServer.ListReleases -> tiller/release_list.go
2017-05-22 11:37:55 -06:00
fibonacci1729
b5c213d5dd ref(tiller): refactor tiller APIs into logical files
*ReleaseServer.RollbackRelease -> tiller/release_rollback.go
2017-05-22 10:09:13 -06:00
fibonacci1729
62c4b152fd ref(tiller): refactor tiller APIs into logical files
*ReleaseServer.GetReleaseContent -> tiller/release_content.go
*ReleaseServer.GetReleaseStatus -> tiller/release_status.go
2017-05-22 09:59:51 -06:00
fibonacci1729
3b3439f67d ref(tiller): breakout ReleaseServer APIs into logical files.
*ReleaseServer.RunReleaseTest -> tiller/release_testing.go
*ReleaseServer.GetVersion     -> tiller/release_version.go
2017-05-22 09:08:39 -06:00
Adam Reese
1e8ebae249 fix(plugins): add error when updating modified plugins
If git has autosetuprebase enabled pulling will fail without a
descriptive error message.
2017-05-19 14:18:24 -07:00
Adam Reese
15254e4c5c feat(*): add generic logging interface (#2394)
Adds a generic logging interface to importable packages.
2017-05-19 11:43:04 -07:00
lead4good
bb4be33331 fixed fromYaml | toJson 2017-05-18 12:26:53 +02:00
Matt Butcher
2d192b1b1b Merge pull request #2408 from technosophos/fix/2407-devel-releases
fix(helm): add --devel flag to allow dev releases again
2017-05-17 14:01:03 -06:00
Matt Butcher
f9c9e9d6cb Merge pull request #2455 from technosophos/fix/2393
fix(lint): add KubeVersion and TillerVersion to linter
2017-05-17 12:28:28 -06:00
Matt Butcher
28ec92355b
fix(helm): add --devel flag to allow dev releases again
2.4.0 stopped installing development versions by default. This allows
the user to re-enable that support by setting --devel.

Closes #2407
2017-05-17 12:26:58 -06:00
Michelle Noorali
a53c29aee7 Merge pull request #2425 from michelleN/helm-test-error-codes
fix(*): return non-zero exit code on test failure
2017-05-17 12:58:26 -04:00
Adam Reese
595afc5c17 Merge pull request #2449 from rvbaz/write-index-atomic
Write repo file using atomicfile
2017-05-16 22:36:01 -06:00
Matt Butcher
d863d9a886
fix(lint): add KubeVersion and TillerVersion to linter
Closes #2393
2017-05-16 16:33:43 -06:00
Raphael Badin
965cb7fd1c Write repo file using atomicfile
This prevents clients from seeing half-written files because
on POSIX systems renaming a file is an atomic operation.

Drive-by: Add test for repo file permission.
2017-05-16 23:25:32 +02:00
Sushil Kumar
ff42dadde4 Adds update option to plugin command (#2410)
* Adds update option to plugin command

Fixes issues/2385 - helm install silently updates the plugin, if it pre-existed

* Added tests for new methods for plugin update

* Updated docs

* Updated review comments :)

* Return error exit code when there is error
2017-05-16 11:07:15 -06:00
Michelle Noorali
488ca6fdd8 fix(*): return non-zero exit code on test failure
* resolves #2089
2017-05-15 21:42:44 -04:00
Adam Reese
35aabdb61a Merge pull request #2423 from FengyunPan/add-check
Add check for getting kubeclient
2017-05-13 12:02:39 -07:00
Taylor Thomas
7d5f4e53db Merge pull request #2430 from thomastaylor312/fix/deployment_wait
fix(tiller): Fixes bug with `--wait` and updated deployments
2017-05-11 14:31:59 -07:00
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
Taylor Thomas
d310612526 fix(tiller): Fixes bug with --wait and updated deployments
The current methodology generated its own RS slice instead of using
a helper method that uses a `clientset`. This caused some issues where
`FindNewReplicaSet` always returned `nil`. This switches the method and
removes some unneeded API calls and code.

Closes #2426
2017-05-10 22:17:59 -07:00
fengyun.pan
7887185984 Add check for getting kubeclient 2017-05-10 15:38:47 +08:00
Sushil Kumar
24157e4aed Updated review comments :) 2017-05-06 15:59:20 -07:00
Sushil Kumar
c84fb11a68 Errors out in case requested plugin exists
Partially fixes issues/2385 - helm install silently updates the plugin, if it pre-existed
2017-05-06 15:47:21 -07:00
Sushil Kumar
6344f1d8e9 Errors out in case requested plugin version does not exists
Fixes issues/2384 - helm plugin install installs a default version in case requested version is not available
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
5c227bffbb Merge pull request #2361 from databus23/dont_render_partials
Skip rendering partials
2017-05-05 16:44:30 -06:00
Matt Butcher
982bb0cd2c Merge pull request #2079 from nebril/new-backend
Experimental Rudder implementation
2017-05-05 16:31:28 -06:00
Sushil Kumar
d5fd75fe61 Updated StartLocalServerForTests to be private method 2017-05-05 10:54:54 -07: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