Commit graph

95 commits

Author SHA1 Message Date
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
Larry Rensing
8cb931925e Merge remote-tracking branch 'upstream/master' into feat/list-namespaces 2017-02-09 12:00:37 -06:00
Vaughn Dice
140caa081b
feat(cmd/helm/status): add last test suite run to status output 2017-02-08 09:54:25 -07:00
Michelle Noorali
c7e2d186a5 Merge pull request #1777 from michelleN/feat/1163-chart-testing
feat(*): add helm test initial framework
2017-02-08 09:28:32 -05: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
fd210dfd30 ref(hapi): remove never used proto field 2017-02-02 19:45:13 -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
58c05f87d7 feat(*): stream helm test messages to client 2017-01-31 20:57:28 -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
756cb970bd
feat(tiller): record a message for each lifecycle step
This adds a simple description for each lifecycle step on a release
object.

Closes #1661
2017-01-31 16:26:35 -07:00
Taylor Thomas
7ef9bb6f71 feat(*): Add --wait flag
Adds `--wait` flag to helm that waits for all pods to reach a ready
state, PVCs to be bound, and services to have IP addresses

Closes #1805
2017-01-19 18:10:28 -08:00
Matt Butcher
c32b2ddcdf
feat(helm): add --reset-values flag to 'helm upgrade'
The --reset-values flag on upgrade instructs Tiller to reset the
upgraded release to the chart's built-in values.yaml, and ignore the
last install's overridden values.

Closes #1569
2017-01-10 18:56:14 -07:00
Taylor Thomas
774789c79a feat(*): Adds support for timeout flag
Installs, rollback, upgrade, and delete now accept a `--timeout` flag
that allows the user to specify the maximum number of seconds that
any kubernetes command can take.

Closes #1678
2016-12-19 12:36:26 -08:00
Taylor Thomas
b18f7f7523 fix(*): Fixes protobuf name
The generated version of the protobuf did not match the `.proto` file.
This caused issues when a new protobuf change was added
2016-12-19 11:16:38 -08:00
Nikolay Mahotkin
ec0d104fe1 Reformatting changes
* Run gofmt on all changed files
    so they formatted properly now
2016-12-14 23:21:14 +03:00
Nikolay Mahotkin
fdac5e8a39 Introducing flag for restarting pods during release upgrade/rollback
* Added pod restart for ReplicaSet
 * Added --restart flag for helm CLI for upgrade/rollback commands
 * By default, restart is false
2016-12-14 23:21:14 +03:00
Matt Butcher
b08434aa3a Merge pull request #1640 from technosophos/fix/1511-undeleting
fix(*): add support for "DELETING" status
2016-12-13 16:13:33 -06:00
Matt Butcher
936028f29a
fix(*): add support for "DELETING" status
Closes #1511
2016-12-13 13:41:55 -07:00
Michelle Noorali
e3480c76e6 feat(tiller): add support for resource-policy keep
satisfies #1326
2016-12-07 11:32:10 -05:00
Adam Reese
f71230ccd3 fix(*): resolve go linter issues 2016-10-10 14:58:33 -07:00
fibonacci1729
e9dd302a9c feat(helm/cmd): support for retrieving release history 2016-10-05 17:53:55 -06:00
Matt Butcher
e0227c7510 fix(chart): Chart.yaml now has an apiVersion field.
This is to future-proof charts, and also be consistent with repo and
index YAML files.

Closes #1264
2016-10-04 12:18:22 -06:00
Matt Butcher
68dd4c9a66 fix(proto): remove unused fields
Some fields were introduced to Chart metadata after Alpha.4, but are not
going to be used ever. So we made the decision to remove them before we
get stuck with ugliness.

This should not break compatibility, since these fields were not used.
2016-09-28 16:22:41 -06:00
Adam Reese
5a5a44ec17 feat(*): add rollback to a release version
closes #1244
2016-09-28 14:49:53 -07:00
Michelle Noorali
ac88aaf218 feat(*): add helm rollback functionality
This feature allows you to rollback release to the
previous version of release.
resolves #1004
2016-09-27 15:39:23 -07:00