Commit graph

93 commits

Author SHA1 Message Date
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
0f26cc5522 Add --force to upgrade and rollback 2017-05-26 17:04:57 -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
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
8b33e4720b Update release proto 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
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
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
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
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
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
Michelle Noorali
538e8297ef ref(*): add namespace info to failing test msg
* also cleanup comments
2017-02-06 10:39:57 -05: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
Nikolay Mahotkin
1eaec045b2 Rename 'restart' to 'recreate' 2016-12-16 22:13:49 +03: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
Ville Aikas
09e6af461f clean up the formatting, remove unnecessary git_version from version as per discussions with @areese 2016-09-13 22:37:28 -07:00
vaikas-google
4a7352cdc0 adjust proto field numbers 2016-09-12 22:55:20 -07:00
vaikas-google
f8adf7f4d2 Address cr comments 2016-09-12 22:46:51 -07:00