Commit Graph

54 Commits

Author SHA1 Message Date
Adam Reese d4061b5b60 fix(tiller): enforce release name length on uninstall
If a selector is created from invalid values it will return nil.

Which is EVERYTHING!!!

closes: #2115
2017-03-15 14:10:44 -07:00
Larry Rensing 3a380923f4 feat(*): add --namespace flag to 'helm list'
Users can now specify a namespace filter for 'helm list'.  Only the
releases within the specified namespace will be shown.  For example,
'helm list --namespace foo' will only show releases for the 'foo'
namespace.  Also added a namespace field to the table view.

Closes #1563
2017-02-07 10:20:28 -06:00
Adam Reese 4418b1a20d ref(*): remove dead code
RIP
2017-01-04 23:45:47 -08:00
dongziming 34d7585f1e Spelling errors and so on. 2016-12-26 11:40:48 +08:00
Matt Butcher de7c5e5a38
feat(tiller): Add .Release.Revision and .IsUpgrade
New properties are available to template developers.

Closes #1554
2016-12-14 18:06:34 -07:00
Adam Reese 84ae1268e1 fix(*): import grouping 2016-12-13 09:57:05 -08:00
Adam Reese ea3be9e3b2 feat(*): migrate to kubernetes 1.5 2016-12-13 09:57:05 -08:00
Matt Butcher a5d96c2704
fix(tiller): fix spurious "no release found" errors.
There are some places where releases are only located if they are in the
state DEPLOYED. That particular logic was incorrectly used for upgrades.
That caused #1566. While fixing that issue, I found that this was also
the root cause of #1587 (though because it was off by one). I added a
generic method to get the last release, regardless of its status.

This allows some behaviors that previously failed:

- 'helm upgrade' can now be performed on a DELETED release
- 'helm rollback' can now be performed on a DELETED release even if
  there is only one revision of that release history.

Closes #1566
Closes #1587
2016-12-02 17:14:07 -07:00
Fabian Ruff eb4b78bbbe Add compression to configmap storage driver
This commit changes the configmap storage driver to compress
the serialized release before storing it as a base64 encoded string.
This change is backward compatible as it handles existing releases
gracefully by skipping the decompression step when the gzip magic
header is not present.
2016-10-20 20:04:28 +02:00
Matt Butcher a1f5955a65 fix(tiller): fix nil pointers in error messages
There were a few places where error messages were accessing properties
of objects that were nil because of the error.

Closes #1374
2016-10-17 17:01:56 -06:00
fibonacci1729 24fe8643de ref(*): add sorter/filter utilties to releaseutil 2016-10-12 11:46:17 -06:00
Adam Reese 150fb33c2e fix(*): prevent testing package from being imported
Prevent testing package from being imported into main application
2016-10-07 15:51:19 -07:00
fibonacci1729 e9dd302a9c feat(helm/cmd): support for retrieving release history 2016-10-05 17:53:55 -06:00
fibonacci1729 f77435e686 fix(helm-list): only list configmaps owned by TILLER 2016-09-15 16:05:17 -06:00
fibonacci1729 83df6ebc4d feat(rollback-storage): remove extraneous else block and fix type in records_test 2016-09-12 09:16:03 -06:00
fibonacci1729 1d6c16175b feat(rollback-storage): remove unreachable code from memory 2016-09-08 09:45:07 -06:00
fibonacci1729 b47379ccdc feat(rollback-storage): golint & removed early return from release server 2016-09-08 08:59:18 -06:00
fibonacci1729 e25732284b feat(rollback-storage): gofmt, added missing license headers, and canconical import paths 2016-09-08 08:39:26 -06:00
fibonacci1729 383a9c186a update pkg/storage to support rollback 2016-09-08 08:30:53 -06:00
Matt Butcher 5bcf29d214 feat(tiller): make configmaps the default storage
This adds a Tiller CLI flag to override the default, and tests to
make sure that the default comes up as expected.
2016-08-15 16:30:51 -06:00
fibonacci1729 9d3a1ed2a7 basic cfgmaps driver tests 2016-08-09 16:23:25 -06:00
fibonacci1729 d5aca1666c configmaps: style fix 2016-08-09 13:48:35 -06:00
fibonacci1729 94a154b745 more style fixes and cleanup 2016-08-09 13:19:28 -06:00
fibonacci1729 559e9081fb style fixes and cleanup 2016-08-09 12:49:31 -06:00
fibonacci1729 3dca699410 fix: storage tests 2016-08-09 11:45:17 -06:00
fibonacci1729 7c56882ed9 fix configmaps list, and labels mechanism for future tiller mgmt 2016-08-08 15:57:54 -06:00
fibonacci1729 cba0c6615f gofmt 2016-08-08 13:45:33 -06:00
fibonacci1729 8c56533a47 configmap tests & some reduction in driver complexity 2016-08-08 13:42:51 -06:00
fibonacci1729 2d95906e1a wip: cfgmaps storage driver 2016-08-08 09:35:08 -06:00
fibonacci1729 0e26f20268 gofmt, style, and added comments 2016-08-08 09:33:35 -06:00
fibonacci1729 a83425d44b style & doc comments 2016-08-05 10:14:12 -06:00
fibonacci1729 241cc29883 gofmt 2016-08-03 15:47:00 -06:00
fibonacci1729 c7e3ec7c46 add license to filter.go 2016-08-03 15:40:57 -06:00
fibonacci1729 d458bb7fb9 Change Create to return ErrReleaseExists if release exists 2016-08-03 15:40:42 -06:00
fibonacci1729 fad498e8fd added / documented common errors 2016-08-03 15:39:22 -06:00
fibonacci1729 967e438bfd gofmt ... 2016-08-01 17:48:02 -06:00
fibonacci1729 a05b48f320 update driver Queryor interface to reflect list filtering mechanism 2016-08-01 17:45:08 -06:00
fibonacci1729 bfd6712c94 add filtering mechanism to storage and embed Driver directly into Storage 2016-08-01 17:44:36 -06:00
fibonacci1729 061b534885 fix panic in memory_test when release status is nil 2016-07-31 23:49:27 -06:00
fibonacci1729 aff817a1fc run gofmt 2016-07-31 23:34:50 -06:00
fibonacci1729 4210d60c5e add storage type to interface with multiple drivers 2016-07-31 23:23:10 -06:00
fibonacci1729 6dd5c9783e add driver package to encapsulate storage backends 2016-07-31 23:23:10 -06:00
fibonacci1729 943eadec38 move old memory impl. to driver/ 2016-07-31 23:23:10 -06:00
Adam Reese a14e76a65c chore(*): add canonical import path annotation
https://golang.org/doc/go1.4#canonicalimports
2016-07-11 22:59:55 -06:00
Matt Butcher e757b24aed fix(*): add license header 2016-06-22 12:28:45 -06:00
Adam Reese 818c878700 chore(*): use k8s.io as the import path 2016-06-06 17:17:04 -07:00
Matt Butcher 1412a88cda fix(tiller): stop returning deleted releases for list 2016-05-20 11:26:30 -06:00
Matt Butcher 938dbf095a feat(tiller): stub in release history
This provides the basics for the release history feature that
ReleaseStorage needs to support. The implementation for Memory storage
is only partial.
2016-05-10 17:47:53 -06:00
Matt Butcher f098cb6fb6 fix(*): rewrite import paths 2016-04-27 21:50:15 -06:00
Matt Butcher 627a0e24e8 fix(storage): add mutex to in-memory
This adds a RW Mutex on the in-memory storage.
2016-04-22 16:51:51 -06:00