Commit graph

24 commits

Author SHA1 Message Date
Matt Farina
e711488970
Move pkg/release to pkg/release/v1 to support v3 charts
This is part of HIP 20 which provides a means to have v3 charts
that live alongside v2 charts while having breaking changes.

The plan is to have a different release object for v3 chart
instances for at least a couple reasons:
1. So that the chart object on the release can be fundamentally
   different.
2. So that Helm v3 does not detect or try to work with instances
   of charts whose apiVersion it does not know about.

Note: it is expected that Helm v3 usage will be used long after
the Helm project no longer supports it. 5 years after Helm v2
had reached end-of-life there was still usage of it.

Note: The release util package is separate from the versioned
elements as it is planned to use generics to handle multiple
release object versions.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2025-02-26 10:14:15 -05:00
Matt Farina
2236294119 Updating to helm.sh/helm/v4
Since Helm is going through breaking changes with Helm v4, the version path to
Helm needs to be updated.

Signed-off-by: Matt Farina <matt.farina@suse.com>
2024-12-26 16:33:51 -05:00
Matthew Fisher
8e1fc4bc6f
fix(memory_test): rebase master
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2020-02-07 09:25:23 -08:00
Marc Khouzam
e6d2d10bad fix(tests): Add namespace support to memory driver
Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
2020-02-07 11:41:47 -05:00
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>
2020-01-08 15:43:57 +07:00
Matt Farina
9bc7934f35
Updating the module for v3 as the major version
Signed-off-by: Matt Farina <matt@mattfarina.com>
2019-10-03 14:27:05 -04:00
Adam Reese
895e9192d4
feat(*): use vanity import helm.sh/helm
Signed-off-by: Adam Reese <adam@reese.io>
2019-03-13 13:43:47 -07:00
Matthew Fisher
2571dbf82f
ref: remove pkg/helm, pkg/hapi, pkg/tiller
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-03-12 09:47:12 -07:00
Adam Reese
4f26b658d8
change copyright to "Copyright The Helm Authors" 2018-08-24 12:03:55 -07:00
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.
2018-06-14 15:46:00 -07:00
Adam Reese
3b9596c6ab
ref(*): convert const types to strings 2018-04-26 16:52:31 -07:00
Adam Reese
6345f04190
ref(hapi): convert protobuf to go types 2018-04-18 14:53:38 -07:00
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
2017-08-10 12:01:20 -06: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
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
559e9081fb style fixes and cleanup 2016-08-09 12:49:31 -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
a05b48f320 update driver Queryor interface to reflect list filtering mechanism 2016-08-01 17:45:08 -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
6dd5c9783e add driver package to encapsulate storage backends 2016-07-31 23:23:10 -06:00