120 Commits
Author SHA1 Message Date
Adam Reese d7d0427b0b bump protobuf to match kubernetes
Signed-off-by: Adam Reese <adam@reese.io>
2019-10-28 21:50:23 -07:00
Matthew Fisher ca7a719c96 rebase from master, regenerate proto files
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-10-08 13:41:35 -07:00
Ting-Wai ed8f17a889 Parameterize maximum number of tests pods to run in parallel (#6078)
Signed-off-by: Ting-Wai To <tingwai@bitgo.com>
2019-10-04 10:50:19 +01:00
Sakura 627283ac74 fix typo
Signed-off-by: Sakura <longfei.shang@daocloud.io>
2019-08-23 12:02:21 +08:00
Morten Torkildsen cb2207c2fb fix(helm): Delete hooks should wait for resource to be removed from etcd before continuing
Signed-off-by: Morten Torkildsen <mortent@google.com>
2019-06-20 11:56:31 -07:00
Morten Torkildsen 072cd6af37 fix(helm): Regenerate go types from proto
Signed-off-by: Morten Torkildsen <mortent@google.com>
2019-05-02 14:12:57 -07:00
Timofey Kirillov a8145d6f17 Regenerate proto files for --cleanup-on-fail option
Signed-off-by: Timofey Kirillov <timofey.kirillov@flant.com>
2019-04-04 21:44:18 +03:00
Matt Butcher 70c509e77e fix: Update gRPC to get better TLS connection handling (v2 minor release) (#5210)
* fix: Update gRPC to get better TLS connection handling

To avoid backward compatibility breakers, we have been pinned to a very
old version of gRPC. But it appears that there have been some very
significant network fixes since then. Looking closely at #3480, it
appears that some of this fixes may be directly related to solving that
bug.

Note that this regenerates a few of the Go proto files, so the binary
wire format may be broken. That means this MUST be held to a minor
version, not a patch release.

To test:

- Build both client and server
- Install Tiller into your cluster
- Perform a number of Helm-Tiller interactions (`helm version`, `helm
list`)

Closes #3480

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>

* Switched to latest protobuf

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2019-02-12 08:42:58 -07:00
Michelle Noorali 2b7221b5b7 Merge pull request #4088 from jgleonard/2751
#2715 add child NOTES.txt rendering
2019-01-16 12:16:11 -05:00
Frank Hamand 158d6dbb74 Add --parallel flag to helm test (#4144)
* Refactor test run to separate method

This will allow us to parallelise it more easily

Signed-off-by: Frank Hamand <frankhamand@gmail.com>

* Add --parallel flag to helm test

(No functionality in this commit)

Signed-off-by: Frank Hamand <frankhamand@gmail.com>

* Run helm tests in parallel with --parallel flag

Signed-off-by: Frank Hamand <frankhamand@gmail.com>

* Add a mutex to helm test message streams

This is to protect against data races when running tests in parallel.

Signed-off-by: Frank Hamand <frankhamand@gmail.com>

* Add tests for --parallel flag

Signed-off-by: Frank Hamand <frankhamand@gmail.com>

* Add concurrency limit for parallel helm tests

Signed-off-by: Frank Hamand <frankhamand@gmail.com>

* Add test for concurrency limit

Signed-off-by: Frank Hamand <frankhamand@gmail.com>

* Fix rebase introduced errors

Signed-off-by: Frank Hamand <frankhamand@gmail.com>
2018-12-05 14:04:48 -08:00
jgleonard 7b66bc7775 gofmt -s
Signed-off-by: jgleonard <jgleonard@gmail.com>
2018-11-07 13:36:42 -05:00
Jon Leonard a499cf3517 Merge branch 'master' into 2751 2018-11-01 15:02:17 -04:00
jgleonard 1518f961af fix(helm): add --render-subchart-notes flag to 'helm install' and 'helm upgrade'
When 'helm <install|upgrade> --render-subchart-notes ...' is run, this will include
the notes from the subchart when rendered via Tiller.

Closes #2751

Signed-off-by: jgleonard <jgleonard@gmail.com>
2018-11-01 14:57:01 -04:00
Arash Deshmeh 380ca1a923 feat(helm): add ability to sort release list by chart name
Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
2018-09-01 05:40:07 -04:00
Arash Deshmeh 8389fe1d58 added description field to api types UpdateReleaseRequest, InstallReleaseRequest, UninstallReleaseRequest, and RollbackReleaseRequest
Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com>
2018-06-05 17:15:52 -04: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
Matthew Fisher 250d25fdce fix protoc
k8s.io/kubernetes bumped protobuf to 1643683e1b54a9e88ad26d98f81400c8c9d9f4f9
2018-03-08 14:18:25 -08:00
Alex Johnson b29d25ef0b Added a --wait flag for helm init which pings the Tiller server and ensures that it is ready to receive requests
Fixes #2114

Signed-off-by: Alex Johnson <ajohnson@bombora.com>
2018-01-18 15:40:26 -08:00
xuhaigang 61623bfe2d feat(tiller/proto):Allow charts to specify k8s compatibility in semver field
Add an optional field kubeVersion to Chart.yaml that allows the chart
developer to specify a semver compliant version.

Closes #2708, #2706
2018-01-06 10:02:09 +08:00
Matt Farina 22e5381251 feat(chart): Adding maintainer url
Each maintainer can have an optional URL. There are seceral use
cases for providing a URL instead of an email address:
- The case where a maintainer wants to hide their email address
  behind a webform for personal security
- When the maintainer is an organization and feedback should
  go to an issue queue

This change:
- Adds the proto field for url
- Updates the generated files for the chart proto
- Includes linting for the url
- Updates the docs to include the url

Closes #3056
2017-10-24 11:44:28 -04: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
Kira 4c1a47480e feat(2450): add annotations to chart metadata (#2671)
* feat(2450): add options to chart metadata
2017-08-16 18:27:13 -04:00
Aishwarya Thangappa 915e7023c4 Added more granular statuses 2017-07-13 15:20:07 -07:00
Aishwarya Thangappa a9c16fc964 Added PENDING status to status.proto and regenerated the pb.go files 2017-07-12 15:04:34 -07:00
peay a9fa9282e1 Add --force to upgrade and rollback (generated changes) 2017-05-26 17:07:13 -04:00
Michelle Noorali 488ca6fdd8 fix(*): return non-zero exit code on test failure
* resolves #2089
2017-05-15 21:42:44 -04: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 52c54b09c0 Move rudder proto to different package, add release status 2017-05-05 13:05:24 +02:00
Dmitry Shulyak bd47b8444f Use rollback method on ReleaseModule interface 2017-05-05 13:04:02 +02:00
Dmitry Shulyak 59af46502d Run make protoc to update hapi 2017-05-05 13:04:02 +02:00
Dmitry Shulyak a883531f98 Implement upgrade for rudder 2017-05-05 13:04:02 +02:00
Maciej Kwiek c1fcaf09ce Experimental Rudder implementation
This change introduces the concept of Rudders - pluggable modules that
Tiller communicates with via grpc, which allow to decouple orchestration
logic from Tiller into separate service.

This commit consists of simple Rudder implementation which does exactly
the same thing as built in Tiller orchestrator - it creates all k8s
objects from provided manifest without orchestrating them.

--experimental-release flag is introduced to enable this behaviour.

This change allows to use the service and tiller outside of the cluster.
Following commits will add Rudder to helm deployment.
2017-05-05 13:02:20 +02:00
Matt Butcher 7094651493 feat(*): update to latest gRPC and Protobuf
Effectively, this switches us to gRPC's internal version 4. This is
compatible with protoc 3.2 and grpc-go 1.2.1.
2017-04-27 14:43:15 -06:00
Taylor Thomas c463e1f185 ref(*): Regenerates protobuf files with protoc 3.2.0
Protoc was updated a little while ago and we are likely to get more
people using it. This should avoid weird merge conflicts and bump us
to the latest version
2017-04-19 20:12:09 -07:00
Matt Butcher e4e0e32064 feat(tiller): support version constraint on chart
This provides the Chart.yaml field `tillerVersion`, which is a semver
range. It allows users to choose to constrain a chart to a specific
version.

The reason for this is that we keep introducing new template functions,
but we have no way of saying "this chart will only work with Tiller
newer than...".

The check on version is _only_ done on Tiller. The client does not check
at all, since it does not do any template expansion on its own.
2017-04-06 17:01:09 -06:00
Adam Reese e4d39fd8c8 fix(*): add missing proto for weight hook 2017-04-04 01:00:38 -07:00
Matt Butcher 9665db7d16 Merge pull request #2157 from jchauncey/hook-weights
feat(hooks): Adds weighted hooks
2017-04-03 14:34:04 -06:00
Matt Butcher daa39c2689 feat(helm): add --reuse-values flag to upgrade
This makes it possible to re-use the existing values on an upgrade,
merging in any new values set by `-f` or `--set`.

Closes #1876
2017-04-03 13:54:45 -06: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
Adnan Abdulhussein 8210dc7883 feat(proto): add deprecated field 2017-03-14 16:32:43 +00:00
Matt Butcher 396f6cbcb2 feat(proto): add appVersion field
This provides a simple field to expose the version of the application
contained in a chart.

Closes #2036
2017-03-07 14:48:24 -07:00
Michelle Noorali 6a062e45b7 featt(*): add support for test-failure hook
resolves #1927
2017-02-14 08:12:30 -08:00
Matt Butcher 889902c381 Merge pull request #1917 from jascott1/tags_conds
feat(helm): add conditions and tags
2017-02-13 15:48:55 -07:00
Vaughn Dice 4a57b01a47 feat(helm): add cleanup flag to test command 2017-02-13 15:02:49 -07:00
Matt Butcher 5618afe3d4 Merge pull request #1922 from larryrensing/feat/list-namespaces
feat(*): add --namespace flag to 'helm list'
2017-02-13 11:14:50 -07:00
Justin Scott 8ef733ca7d feat(helm): add conditions and tags
This feature adds the ability to selectively control the loading of charts using entries in top chart's values.
When 'helm install --set tags.mytag=true', charts with that tag will be enabled unless disabled in parent by condition.
When 'helm install --set mychart.enabled=true', charts with that yaml path specified will be enabled.

Closes #1837
2017-02-11 12:56:43 -08:00
Taylor Thomas 7bdd36bbba fix(*): Regenerates protobuf files for protobuf 3.2
Protobuf 3.2 was recently released and generates a slightly different
file from the protobuf definitions. These were all changes to the
autogenerated byte array.
2017-02-09 10:43:26 -08:00
Larry Rensing 294d18d567 Merge remote-tracking branch 'upstream/master' into feat/list-namespaces 2017-02-09 12:17:20 -06:00