Commit Graph

24 Commits

Author SHA1 Message Date
Matthew Fisher 02a47c7249
Revert "Fix for existing CRDs are deleted when crd-install hook is introduced (#4709)" (#5067)
This reverts commit e2a0e7fa54.

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2018-12-19 14:58:02 -08:00
Michael Merrill e2a0e7fa54 Fix for existing CRDs are deleted when crd-install hook is introduced (#4709)
Signed-off-by: mmerrill3 <michael.merrill@vonage.com>
2018-11-29 10:09:10 -08:00
Matthew Fisher a297a0a7fe
fix merge conflicts/linter errors (#4653)
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2018-09-17 09:48:51 -07:00
Mike Lundy 67de9f2be4 [tiller] move the Manifest type to its own pkg
It's really easy to cause an import cycle on this type; this resolves
the problem by moving it out of the tiller pkg into its own. An alias is
left behind in order to prevent downstream breakage.
2018-08-06 17:24:02 -07:00
Matthew Fisher 2d77db11fa change copyright to "Copyright The Helm Authors" 2018-07-30 08:29:17 -07:00
Matt Butcher 0699ec4248
feat(tiller): support CRD installation (#3982)
This adds support for installing CRDs well before any other resource
kinds are installed.

This PR introduces a new hook, `crd-install`, that fires before
manifests are even validated. It is used to install a CRD before any
other part of a chart is installed.

Currently, this hook is _only implemented for install_. That means we
currently cannot add new CRDs during `helm upgrade`, nor can they
be rolled back. This is the safest configuration, as the update/rollback
cycle gets very challenging when CRDs are added and removed.
2018-05-11 12:09:38 -06:00
Alexey igrychev 1d4883bf3c Implement before-hook-creation delete policy
Existing helm.sh/hook-delete-policy annotation variables (hook-failed, hook-succeeded) do not allow to leave failed jobs for debugging without blocking the next job launching: every failed job must be deleted manually before the next related release is launching (installing, updating or rolling back).

New policy, before-hook-creation, removes the hook from previous release if there is one before the new hook is launched and can be used with another variable.
2018-03-21 18:13:53 +03:00
Adam Reese a31e3b8fe1
ref(*): kubernetes v1.9 support (#3234) 2018-01-05 12:30:26 -08:00
Matthew Fisher bb5db61325 Merge pull request #2781 from jascott1/i2755-template
feat(helm): add `template` command
2017-09-05 10:09:23 -07:00
DoctorZK 608fd7318a fix(tiller): fix a warning bug in hook annotation 2017-08-30 17:28:36 +08:00
Justin Scott 4a02a71f1e WIP feat(helm): add `template` command
This adds the functionality from the helm-template plugin to allow the
rendering of templates without Tiller.

Closes #2755
2017-08-28 18:04:56 -07:00
DockerZK 734b124577 feat(*) add key helm.sh/hook-delete-policy to hook annotation
When "helm.sh/hook-delete-policy: hook-succeeded" is provided in a hook's annotation, Tiller will automatically delete the hook after the hook is succeeded. When "helm.sh/hook-delete-policy: hook-failed" is provided in a hook's annotation, Tiller will automatically delete the hook after the hook is failed.

Closes #1769
2017-08-24 12:18:28 +08:00
Michelle Noorali 6bfb08a760 ref(tiller): refactor sortManifests() 2017-06-05 20:52:20 -04:00
Michelle Noorali 83c69a8e10 fix(tiller): track hooks in multi-def manifests
resolves #2290
2017-06-05 20:46:57 -04:00
Adam Reese e4d39fd8c8 fix(*): add missing proto for weight hook 2017-04-04 01:00:38 -07:00
Jonathan Chauncey b9ef8dbe56 fix(hooks): Change annotation from hookWeight to hook-weight 2017-04-03 11:25:39 -04:00
Jonathan Chauncey 05d0fcb774 feat(hooks): Adds weighted hooks
closes #2136
* Adds new annotation `helm.sh/hookWeight`
* Sorts executing hooks of similar kind in ascending order
* There is no upper or lower bounds on the weights
2017-03-24 11:31:48 -04:00
Michelle Noorali 6a062e45b7 featt(*): add support for test-failure hook
resolves #1927
2017-02-14 08:12:30 -08:00
Michelle Noorali bf9ae52e1c ref(*): change test hook to be test-success 2017-02-02 12:23:52 -05:00
Michelle Noorali e132191275 ref(pkg/): refactor helm test logic
pulled logic out in pkg/releasetesting
2017-02-01 10:55:58 -05:00
Michelle Noorali d46d63a8f7 feat(*): add helm test command mvp
* This is a simple mvp which processes a test definition with the
hook annotation for test when you run `helm test [release]`
* helm client cmd, proto def, tiller logic
2017-01-31 20:57:27 -05:00
Matt Butcher cb0a6c7e07
feat(tiller): add {{.Capabilities}} object
This adds the {{.Capabilities}} object to the template variables so that
chart authors can write charts that are aware of teh Kubernetes
capabilities of the current cluster.

Closes #1608
2017-01-09 18:09:20 -07:00
Adam Reese 84ae1268e1 fix(*): import grouping 2016-12-13 09:57:05 -08:00
adieu c0850efeb5 Separate tiller into pkg and cmd so we can use tiller as a library. 2016-11-02 22:53:07 +08:00