Zhou Hao
c96aff6a43
pkg/storage/records: add unit test for Index
...
Signed-off-by: Zhou Hao <zhouhao@cn.fujitsu.com>
5 years ago
Zhou Hao
6b1eebd23a
pkg/storage/records: add unit test for Get
...
Signed-off-by: Zhou Hao <zhouhao@cn.fujitsu.com>
5 years ago
Matthew Fisher
8e1fc4bc6f
fix(memory_test): rebase master
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
5 years ago
Marc Khouzam
e6d2d10bad
fix(tests): Add namespace support to memory driver
...
Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
5 years ago
Matthew Fisher
98962dce3f
Merge pull request #7349 from tiendc/unit_test_memory_list
...
Add unit test for List() of pkg/storage/driver/memory.go
5 years ago
Martin Hickey
88f42929d7
Remove references to protobuf ( #7425 )
...
Remove references to protobuf and update description of release
object stored representation to Helm v3.
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
5 years ago
Dao Cong Tien
476ffaea8c
Add unit test for List() of pkg/storage/driver/memory.go
...
Signed-off-by: Dao Cong Tien <tiendc@vn.fujitsu.com>
5 years ago
Josh Soref
02ad2b1187
Spelling ( #7258 )
...
* spelling: constraint
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: cryptographic
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: dependency
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: doesnot
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: don't
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: unexpected
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: dreadnought
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: default
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: envvars
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: evaluates
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: execute
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: extractor
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: frobnitz
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: generated
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: implementation
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: jabba
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: keywords
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: kubernetes
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: override
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: package
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: parsable
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: progress
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: recursively
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: release
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: cache
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: representing
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: serializer
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: subchart
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* spelling: utilities
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
5 years ago
Karuppiah Natarajan
bfd8250803
fix list not showing multiple releases with same name in different namespaces ( #6756 )
...
Signed-off-by: Karuppiah Natarajan <karuppiah7890@gmail.com>
5 years ago
Matt Farina
9bc7934f35
Updating the module for v3 as the major version
...
Signed-off-by: Matt Farina <matt@mattfarina.com>
5 years ago
Martin Hickey
caa26c4bb2
Change release storage name to use helm storage type as prefix ( #6500 )
...
* Change release storage name to prefix helm storage type
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
* Add comments about the Kubernetes storage object type field content
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
5 years ago
Adam Reese
b2d5e41fc7
ref(*): remove dead code
...
Signed-off-by: Adam Reese <adam@reese.io>
5 years ago
Adam Reese
895e9192d4
feat(*): use vanity import helm.sh/helm
...
Signed-off-by: Adam Reese <adam@reese.io>
6 years ago
Matthew Fisher
2571dbf82f
ref: remove pkg/helm, pkg/hapi, pkg/tiller
...
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
6 years ago
Adam Reese
e51a9b90c9
Merge pull request #5284 from adamreese/v3/make-format
...
feat(Makefile): add formatting target
6 years ago
Martin Hickey
45fb4b1c44
Fix linter warnings
...
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
6 years ago
Adam Reese
f791421fab
feat(Makefile): add formatting target
...
Signed-off-by: Adam Reese <adam@reese.io>
6 years ago
Adam Reese
3be0d81da7
ref(driver): refactor out function type errors
...
Signed-off-by: Adam Reese <adam@reese.io>
6 years ago
Adam Reese
4f26b658d8
change copyright to "Copyright The Helm Authors"
6 years ago
Matthew Fisher
195d21d5d7
ref(cmd): rename `helm delete` to `helm uninstall`
...
To match the convention of `helm install`, `helm uninstall` is the inverse.
Other tangential changes in this PR:
- StatusDeleting has been changed to StatusUninstalling
- StatusDeleted has been changed to StatusUninstalled
- `helm list --deleted` has been changed to `helm list --uninstalled`
- `helm list --deleting` has been changed to `helm list --uninstalling`
- `helm.DeleteOption` and all delete options have been renamed to `helm.UninstallOption`
I have not made any changes to the "helm.sh/hook-delete-policy", "pre-delete" and "post-delete" hook annotations because
1. it's a major breaking change to existing helm charts, which we've commited to NOT break in Helm 3
2. there is no "helm.sh/hook-install-policy" to pair with "helm.sh/hook-uninstall-policy", so delete still makes sense here
`helm delete` and `helm del` have been added as aliases to `helm uninstall`, so `helm delete` and `helm del` still works as is.
7 years ago
Adam Reese
b1128abf4f
ref(*): s/tiller/helm/
7 years ago
Adam Reese
726e3c41be
feat(*): print stacktrace on error with debug enabled
7 years ago
Adam Reese
3b9596c6ab
ref(*): convert const types to strings
7 years ago
Adam Reese
19398a2ef1
feat(*): store release History in same namespace as release
...
https://github.com/kubernetes-helm/community/blob/master/helm-v3/003-state.md#namespacing-changes
7 years ago
Adam Reese
c5a76deba3
ref(*): use go conventions for naming types
7 years ago
Adam Reese
6345f04190
ref(hapi): convert protobuf to go types
7 years ago
Adam Reese
fc4c095cf0
ref(*): remove pkg/kubernetes from tiller and storage
7 years ago
Adam Reese
c314e2e2f1
fix(plugins): support newer git ( #3571 )
...
Newer gits don't like checking out an empty string.
```
empty string is not a valid pathspec. please use . instead if you meant to match all paths
```
7 years ago
Adam Reese
a31e3b8fe1
ref(*): kubernetes v1.9 support ( #3234 )
7 years ago
Andrey Klimentyev
cfb7dfa82c
Typo fix
7 years ago
Remington Reackhof
9af1018bd3
Add secrets storage backend for releases
7 years ago
Maxim Ivanov
ff5acc9bd8
Make Memory driver to store copy of releases to stop hiding storage errors during tests
7 years ago
Matt Butcher
0853f4906a
feat(tiller): limit number of versions stored per release
...
This adds a new configuration option to Tiller to limit the number of
records stored per release.
Tiller stores historical release information (helm history, helm
rollback). This makes it possible to set a maximum number of versions
per release.
To enable this feature, use `helm init --history-max NNN`. Note that
because of the restrictions on Deployment objects, you will have to
re-install Tiller to add a limit.
Along the way, I found an unreported bug in the Memory storage driver.
This fixes that bug and adds substantially more tests to catch
regressions.
Closes #2332
7 years ago
Justin Scott
fa68a6e1db
fix(tiller): remove locking system from storage and rely on backend controls
...
Tiller currently hangs indefinitely when deadlocks arise from certain
concurrent operations. This commit removes the nested mutex locking
system from pkg/Storage and relies on resource contention controls in k8s.
Closes #2560
7 years ago
Justin Scott
af4c243ee3
Correct punctuation and capitalization for user facing strings.
8 years ago
Adam Reese
15254e4c5c
feat(*): add generic logging interface ( #2394 )
...
Adds a generic logging interface to importable packages.
8 years ago
Adam Reese
85c41ef11a
ref(*): kubernetes v1.6
...
Rebase on kubernetes v1.6
8 years ago
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.
8 years ago
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
8 years ago
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
8 years ago
Adam Reese
4418b1a20d
ref(*): remove dead code
...
RIP
8 years ago
dongziming
34d7585f1e
Spelling errors and so on.
8 years ago
Adam Reese
84ae1268e1
fix(*): import grouping
8 years ago
Adam Reese
ea3be9e3b2
feat(*): migrate to kubernetes 1.5
8 years ago
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.
8 years ago
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
8 years ago
Adam Reese
150fb33c2e
fix(*): prevent testing package from being imported
...
Prevent testing package from being imported into main application
8 years ago
fibonacci1729
f77435e686
fix(helm-list): only list configmaps owned by TILLER
8 years ago
fibonacci1729
83df6ebc4d
feat(rollback-storage): remove extraneous else block and fix type in records_test
8 years ago
fibonacci1729
1d6c16175b
feat(rollback-storage): remove unreachable code from memory
8 years ago
fibonacci1729
b47379ccdc
feat(rollback-storage): golint & removed early return from release server
8 years ago
fibonacci1729
e25732284b
feat(rollback-storage): gofmt, added missing license headers, and canconical import paths
8 years ago
fibonacci1729
383a9c186a
update pkg/storage to support rollback
8 years ago
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.
8 years ago
fibonacci1729
9d3a1ed2a7
basic cfgmaps driver tests
8 years ago
fibonacci1729
d5aca1666c
configmaps: style fix
8 years ago
fibonacci1729
94a154b745
more style fixes and cleanup
8 years ago
fibonacci1729
559e9081fb
style fixes and cleanup
8 years ago
fibonacci1729
7c56882ed9
fix configmaps list, and labels mechanism for future tiller mgmt
8 years ago
fibonacci1729
cba0c6615f
gofmt
8 years ago
fibonacci1729
8c56533a47
configmap tests & some reduction in driver complexity
8 years ago
fibonacci1729
2d95906e1a
wip: cfgmaps storage driver
8 years ago
fibonacci1729
0e26f20268
gofmt, style, and added comments
8 years ago
fibonacci1729
a83425d44b
style & doc comments
8 years ago
fibonacci1729
241cc29883
gofmt
8 years ago
fibonacci1729
d458bb7fb9
Change Create to return ErrReleaseExists if release exists
8 years ago
fibonacci1729
fad498e8fd
added / documented common errors
8 years ago
fibonacci1729
967e438bfd
gofmt ...
8 years ago
fibonacci1729
a05b48f320
update driver Queryor interface to reflect list filtering mechanism
8 years ago
fibonacci1729
061b534885
fix panic in memory_test when release status is nil
8 years ago
fibonacci1729
aff817a1fc
run gofmt
8 years ago
fibonacci1729
6dd5c9783e
add driver package to encapsulate storage backends
8 years ago