Commit graph

1168 commits

Author SHA1 Message Date
Adam Reese
e458a67f0c
ref(pkg/chart): add validation method to chart
Consolidate validation of Chart.yaml.

Signed-off-by: Adam Reese <adam@reese.io>
2019-04-05 13:40:06 -07:00
Adam Reese
31819e4796
fix(pkg/chartutil): marshal capabilities VersionSet into slice
Marshal capabilities VersionSet into readable value.

Signed-off-by: Adam Reese <adam@reese.io>
2019-03-29 08:49:15 -07:00
Adam Reese
87e789f01f
fix(pkg/chartutil): only include external objects in capabilities
Signed-off-by: Adam Reese <adam@reese.io>
2019-03-28 23:37:32 -07:00
Adam Reese
fe06343b8f
Merge pull request #5512 from adamreese/v3/linter-fixes
ref(pkg/action): refactoring dup code and linter fixes
2019-03-26 13:48:39 -07:00
Adam Reese
295092cd7d
ref(pkg/action): refactoring dup code and linter fixes
Signed-off-by: Adam Reese <adam@reese.io>
2019-03-26 11:11:27 -07:00
Matthew Fisher
bb179bdead
chore(dep): bump kubernetes to 1.14.0
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-03-25 14:01:01 -07:00
Matthew Fisher
0b1caa14a7
Merge pull request #5489 from bacongobbler/list-move-namespaces-field
ref(list): move namespaces field closer to the name
2019-03-22 15:46:12 -07:00
Matthew Fisher
32712201ec
ref(list): move namespaces field closer to the name
Most users want to see the release name and the namespace it was deployed to,
as those are the unique identifiers where the release is stored. I also added
integration tests for `helm list` to better test the command output.

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-03-20 13:43:22 -07:00
Adam Reese
779373a276
Merge pull request #5472 from adamreese/v3/template-name
fix(cmd/template): allow setting release name for template
2019-03-19 09:38:28 -07:00
Sunyk
223148dac9 Remove a trivial TODO comment
Signed-off-by: Sunyk <lentil1016@gmail.com>
2019-03-19 14:04:17 +08:00
Adam Reese
271e4cf111
fix(cmd/template): allow setting release name for template
Signed-off-by: Adam Reese <adam@reese.io>
2019-03-18 22:56:18 -07:00
Adam Reese
14d8e97d2a
fix(*): resolve new govet issues
Signed-off-by: Adam Reese <adam@reese.io>
2019-03-18 12:45:20 -07:00
Matthew Fisher
8f37ab48ac
Merge pull request #5455 from bacongobbler/fix-list
fix(install): fix issue where chart metadata is not being saved on `helm install`
2019-03-15 09:31:27 -07:00
Matthew Fisher
5c2f235b6c
fix(install): fix issue where chart metadata is not being saved on helm install
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-03-15 08:10:21 -07: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
017790d0e3
ref(action): remove ParseShowOutputFormat
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-03-13 12:13:40 -07:00
Matthew Fisher
78bd46075b
fix(action): remove test.go
test.go is a duplicate of release_testing.go

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-03-13 10:17:31 -07:00
Matthew Fisher
f8ed917830
test(cmd): refactor release_testing_test.go
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-03-13 10:16:07 -07:00
Matthew Fisher
f185103b60
ref(action): move AddFlags functions back to cmd
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-03-13 08:58:35 -07:00
Matthew Fisher
2b775d693d
ref(action): remove io.Writers, return string instead
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-03-13 08:33:06 -07:00
Matthew Fisher
6bb9264e89
fix(helm): fix helm status output formatting
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-03-13 08:02:43 -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
21d3a40f3b
feat(tests): replace gometalinter with golangci-lint
Signed-off-by: Adam Reese <adam@reese.io>
2019-03-08 11:45:42 -08:00
Adam Reese
849f27d11f
ref(pkg/engine): make template specific functions private
Make template specific functions private to ensure they not misused and
make unit tests simpler.  We may export the template helpers later if
needed.

This lays the foundation for the new chart pipeline.

Signed-off-by: Adam Reese <adam@reese.io>
2019-03-06 15:45:52 -08:00
Adam Reese
d841a1b1d9
fix(engine): make template rendering thread safe
See https://github.com/helm/helm/pull/4828

Signed-off-by: Adam Reese <adam@reese.io>
2019-03-05 12:56:39 -08:00
Matthew Fisher
2a82e6cbe6
docs: s,kubernetes/helm,helm/helm,g (#5404)
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-03-05 11:57:39 -08:00
Adam Reese
a1a7d3e824
ref(pkg/helm): refactor out ReleaseStatus
The `ReleaseStatus()` client call returns the same information as
`ReleaseContent()`

Signed-off-by: Adam Reese <adam@reese.io>
2019-02-28 15:48:43 -08:00
Martin Hickey
ef4d2a6e65 Update after review
Review comment:
- https://github.com/helm/helm/pull/5295#pullrequestreview-203519813

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-02-15 11:28:39 +00:00
Martin Hickey
abdaf3ce1b Add chart type
The chart type is added to differentiaite between an application chart
and a library chart. Library charts can be used as dependencies but are
not installable.

Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-02-15 09:10:41 +00:00
Adam Reese
e51a9b90c9
Merge pull request #5284 from adamreese/v3/make-format
feat(Makefile): add formatting target
2019-02-14 23:40:50 -08:00
Martin Hickey
45fb4b1c44 Fix linter warnings
Signed-off-by: Martin Hickey <martin.hickey@ie.ibm.com>
2019-02-12 18:18:33 +00:00
Adam Reese
f791421fab
feat(Makefile): add formatting target
Signed-off-by: Adam Reese <adam@reese.io>
2019-02-08 12:24:47 -08:00
Josh Dolitsky
16b59bfe5b
Helm 3: fix "latest" tag bug (#5279)
* add extra ref parsing, validation

Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>

* add fix for missing locator

Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>

* add repo and tag fields for clarity

Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>

* small refector

Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
2019-02-08 14:17:42 -06:00
Josh Dolitsky
a32f8ebb37
Helm 3: initial registry support (#5243)
* initial registry support

Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>

* fix dependency mess

Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>

* add extra chart command output

Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>

* sanitize registry path (windows fix)

Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>

* store all sha256 blobs in same dir

Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>

* switch to use chartutil.SaveDir

Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>

* populate chart command long descriptions

Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>

* remove test cache dir in teardown

Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>

* add long description of chart export

Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>

* clean up table rows code

Signed-off-by: Josh Dolitsky <jdolitsky@gmail.com>
2019-02-06 18:32:56 -06:00
Adam Reese
28d8c7b277
ref(*): remove references to chart 'engine'
Signed-off-by: Adam Reese <adam@reese.io>
2019-02-04 16:08:14 -08:00
Matthew Fisher
95c865513f
fix appveyor builds (#4934)
Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
2019-01-31 21:31:09 -08:00
Martin Hickey
86d8596763 Feature(Plugins): Enable platform specific commands (#5176)
* Add logic for platform specific commands to plugins
* Add plugins doc updated to incorporate platform specific commands
* Add condition for os match:  If OS matches and there is no more specific match, the command
will be executed
2019-01-16 21:52:58 -08:00
Adam Reese
d94707db86
ref(*): remove helmVersion chart constraint
* Remove helmVersion constraint from charts
* Guard compile time set variables behind `internal/`
* Allow configuration of UserAgent for HTTPGetter

Signed-off-by: Adam Reese <adam@reese.io>
2019-01-08 13:37:55 -08:00
Matt Butcher
f3bfae5ea7
fix: fix a number of style errors (#5136)
This fixes a dozen or so style errors, almost all of which were just missing comments.

I left several which are fixed in other outstanding PRs, or which belong to code that is about to be removed.

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2019-01-07 21:40:24 -07:00
Matt Butcher
425f7a6f6c
feat: add 'pkg/action' for list operations (#5077)
* feat: add pkg/action to encapsulate action logic

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

* feat: replace client/server internals with action package

While we removed Tiller, we left the internal client/server architecture mostly intact. This replaces that architecture with the `pkg/action` package.

This implements the action package for list, but nothing else.

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

* feat: Add install and refactor some tests

This adds install to the action package, and then fixes up a lot of testing.

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

* fix: Move a bunch of sorters to the releaseutils package

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

* fix: updated APIs and fixed a failed test

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

* Use var for timestamper, instead of adding as a struct field

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2019-01-07 17:45:14 -07:00
derkoe
6e1b45888a feat(cmd/helm): re-add --history-max option to v3
Since there is no tiller anymore this option make most sense with the
'helm upgrade' commando.
Origininally this was added in PR #2636 implementing the feature #2081.

Signed-off-by: Christian Koeberl <christian.koeberl@gmail.com>
2018-12-17 11:15:55 +01:00
Adam Reese
2b81eea1e2
ref(*): replace byte array with map for Release config
Signed-off-by: Adam Reese <adam@reese.io>
2018-12-04 15:57:24 -08:00
Adam Reese
6fc8c9e079
ref(pkg/chartutil): simplify chart dependency unit tests
- simplify unit tests
- refactor typed errors
- unexport internal functions

Signed-off-by: Adam Reese <adam@reese.io>
2018-11-29 10:30:52 -08:00
Adam Reese
825b15c763
Merge pull request #4972 from adamreese/ref/chart-dependencies
ref(pkg/chart): rename Requirements to Dependencies
2018-11-28 10:55:08 -08:00
Adam Reese
85aef0d3d7
ref(pkg/chart): rename Requirements to Dependencies
Signed-off-by: Adam Reese <adam@reese.io>
2018-11-28 10:20:33 -08:00
roc
79f88dfc5e ref(url) update helm's github url (#4962)
https://github.com/kubernetes/helm -> https://github.com/helm/helm
https://github.com/kubernetes/charts -> https://github.com/helm/charts

Signed-off-by: Roc Chan <roc@imroc.io>
2018-11-28 10:08:38 -08:00
roc
212d326a34 ref(pkg/repo): rename RepoFile to File
To resolve the linter warning: name start with package name.

Signed-off-by: Roc <roc@imroc.io>
2018-11-20 19:58:35 +08:00
Adam Reese
9e1e26f01e
ref(pkg/chartutil): attempt to make requirements processing readable
Signed-off-by: Adam Reese <adam@reese.io>
2018-11-14 12:41:14 -08:00
Adam Reese
f5b6ff2832
ref(pkg/chart): rename files to be consistent with types
Signed-off-by: Adam Reese <adam@reese.io>
2018-11-14 11:05:14 -08:00
Matt Butcher
7061716406
ref: require name by default on 'helm install' (#4858)
This is described in the official Helm 3 proposal: https://github.com/helm/community/blob/master/helm-v3/000-helm-v3.md

Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
2018-10-31 16:15:08 -06:00